evertrue / zookeeper-cookbook

Chef cookbook for installing and managing Zookeeper.
https://supermarket.chef.io/cookbooks/zookeeper
Apache License 2.0
81 stars 117 forks source link

cluster config support #160

Closed ghost closed 8 years ago

ghost commented 8 years ago

Can you add cluster mode in the config resource:

cluster = {
  clientPort: 2181,
  dataDir: "#{node["zookeper"]["data_dir"]}",
  tickTime: 2000,
  server:server.1=serverip1:2888:3888,
  server:server.2=serverip2:2888:3888,
  server:server.3=serverip3:2888:3888,
  autopurge: {
    snapRetainCount: 1,
    purgeInterval: 1
  }
}

Is this supported, if so what is the correct syntax!? thanks

jeffbyrnes commented 8 years ago

@RaidRohana take a look at my comment on #155 about how to use the attributes to set this up.