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- 2.13.1
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.1
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.1
- 1.3.3
- 1.3.1
- 1.2.3
- 1.2.1
- 1.1.0
- 0.1.0
Installs/Configures zookeeper
cookbook 'zookeeper', '= 2.3.0', :supermarket
knife supermarket install zookeeper
knife supermarket download zookeeper
Table of Contents
Zookeeper
Zookeeper is a coordination and discovery
service maintained by the Apache Software Foundation.
This cookbook focuses on deploying Zookeeper via Chef.
Usage
This cookbook is primarily a library cookbook. It implements a zookeeper
resource to handle the installation and configuration of Zookeeper. It ships
with a default recipe for backwards compatibility pre-LWRP which will work
fine, but is really just an example.
Use the "install" recipe to install the binaries, but perform no further actions.
Resources
This cookbook ships with one resource, with future plans for two more covering
service management and configuration rendering.
zookeeper
The zookeeper
resource is responsible for installing and (eventually)
uninstalling Zookeeper from a node.
Actions: :install
, :uninstall
Parameters:
* version
: Version of Zookeeper to install (name attribute)
* user
: The user who will eventually run Zookeeper (default: 'zookeeper'
)
* mirror
: The mirror to obtain Zookeeper from (required)
* checksum
: Checksum for the Zookeeper download file
* install_dir
: Which directory to install Zookeeper to (default:
`'/opt/zookeeper')
Example:
ruby
zookeeper '3.4.6' do
user 'zookeeper'
mirror 'http://www.poolsaboveground.com/apache/zookeeper'
checksum '01b3938547cd620dc4c93efe07c0360411f4a66962a70500b163b59014046994'
action :install
end
zookeeper_config
This resource renders a Zookeeper configuration file. Period-delimited
parameters can be specified either as a flat hash, or by embeddeding each
sub-section within a separate hash. See the example below for an example.
Actions: :render
, :delete
Parameters:
* user
: The user to give ownership of the file to (default: zookeeper
)
* config
: Hash of configuration parameters to add to the file
* path
: Path to write the configuration file to.
Example:
``` ruby
config_hash = {
clientPort: 2181,
dataDir: '/mnt/zk',
tickTime: 2000,
autopurge: {
snapRetainCount: 1,
purgeInterval: 1
}
}
zookeeper_config '/opt/zookeeper/zookeeper-3.4.6/conf/zoo.cfg' do
config config_hash
user 'zookeeper'
action :render
end
```
discover_zookeepers
This cookbook comes with a library to help your other cookbooks discovery the members of your ZooKeeper ensemble.
Call it with the host of (one) of your exhibitors. We use round-robin dns so it would look like
> discover_zookeepers("http://exhibitor.example.com:8080")
{"servers":["10.0.1.0","10.0.1.1","10.0.1.2"],"port":2181}
for details on the response format, see https://github.com/Netflix/exhibitor/wiki/REST-Entities under Servers
Errata
- Version 1.4.7 on the community site is in fact version 1.4.8.
Author and License
Simple Finance ops@simple.com
Apache License, Version 2.0
CHANGELOG for zookeeper
This file is used to list changes made in each version of zookeeper.
2.3.0
- Split out installation to a separate recipe (contributed by @Gazzonyx)
2.2.1
- Set minimum build-essential version for RHEL support (contributed by @Gazzonyx)
2.2.0
- Upstart support (contributed by @solarce)
2.1.1
- Added a service recipe which can be run and activated using new service_style attribute.
2.1.0
- A basic configuration is rendered by default.
- Clarify some points in the README about zookeeper_config
2.0.0
- Exhibitor cookbook factored out (contributed by @wolf31o2)
- Zookeeper recipe rewritten as LWRP
- Documentation updated slightly
- Tested and verified and (hopefully) as backwards-compatible as possible
- Being a full version bump, there are no backwards-compatibility promises
- TODO
- Better documentation
-
zookeeper_service
resource -
zookeeper_config
resource - Better tests
- Swap out "community" Java
1.7.4
- Force build-essential to run at compile time (contributed by @davidgiesberg)
1.7.3
- Bugfix for attribute access (fixes 1.7.2 bug)
1.7.2
- Move ZK download location calculation to recipe to eliminate ordering bug
1.7.1
- Test-kitchen support added
- Patch installed to support CentOS platform
1.7.0
- Switched to Runit for process supervision (contributed by @gansbrest)
- DEPRECATION WARNING: Upstart is no longer supported and has been removed
- Re-add check-local-zk.py script but punt on utilizing it
- This means we recommend staying on 1.6.1 or below if you use Upstart
- In the meantime, we are working on a strategy to integrate this functionality into the Runit script, to support dependent services
1.6.0
- Attribute overrides to defaultconfig should now work (contributed by @trane)
1.5.1
- Add correct (Apache v2) license to metadta.rb (#61)
1.5.0
- Add logic to download existing exhibitor jar
1.4.10
- changes: Skip S3 credentials file if AWS credentials are not provided
OpsWorks related changes
- Moved property files from inaccessible chef dir to exhibitor install dir.
- Logged output to syslog.
- Added option to set exhibitor/amazon log level
1.4.9
- Added: s3credentials template to assist with --configtype s3
1.4.8
- Added config hook and default for servers-spec setting
- bugfix: cache permission denied error on exhibitor jar move
- bugfix: ZooKeeper install tar cache EACCES error
1.4.7
- bugfix: zk_connect_str actually returned when chroot passed.
- forward zk port in vagrant
1.4.4
- fix for backwards compatibility with ruby 1.8.7
0.1.0:
- Initial release of zookeeper