-
-
Save gregsymons/56410a35186be7cdedbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[template] | |
src = "zoo.cfg.tmpl" | |
dest = "/var/lib/zookeeper/zoo.cfg" | |
uid = 0 | |
gid = 0 | |
mode = "0644" | |
keys = [ | |
"/servers", | |
"/config" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@master-01:/# /opt/confd/bin/confd -debug=true -backend=etcd -watch=true -prefix=/core-services/zookeeper -confdir=/opt/confd -node http://127.0.0.1:4001 | |
2015-01-03T21:12:09Z master-01 /opt/confd/bin/confd[275]: WARNING Skipping confd config file. | |
2015-01-03T21:12:09Z master-01 /opt/confd/bin/confd[275]: NOTICE Backend set to etcd | |
2015-01-03T21:12:09Z master-01 /opt/confd/bin/confd[275]: NOTICE Starting confd | |
2015-01-03T21:12:09Z master-01 /opt/confd/bin/confd[275]: NOTICE Backend nodes set to http://127.0.0.1:4001 | |
2015-01-03T21:12:09Z master-01 /opt/confd/bin/confd[275]: DEBUG Loading template resources from confdir /opt/confd | |
2015-01-03T21:12:09Z master-01 /opt/confd/bin/confd[275]: DEBUG Loading template resource from /opt/confd/conf.d/zoo.cfg.toml | |
root@master-01:/# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zoo.cfg | |
dataDir=/var/lib/zookeeper | |
clientPort=2181 | |
{{ range lsdir "/servers" }} | |
{{ $server := . }} | |
{{ $host := getv "/servers/$server/host" }} | |
{{ $peerPort := getv "/servers/$server/peerPort" }} | |
{{ $leaderPort := getv "/servers/$server/leaderPort" }} | |
server.{{ $server }}={{ $host }}:{{ $peerPort }}:{{ $leaderPort }} | |
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[template] | |
Src = "zoo.cfg.tmpl" | |
Dest = "/var/lib/zookeeper/zoo.cfg" | |
Uid = 0 | |
Gid = 0 | |
Mode = "0644" | |
Keys = [ | |
"/servers", | |
"/config" | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment