kolla-ansible/ansible/roles/zookeeper/templates/zookeeper.json.j2
Doug Szumski f87b238db5 Add support for deploying ZooKeeper
This picks up the abandoned review:
https://review.openstack.org/#/c/412423

Co-Authored-By: Sam Yaple <sam@yaple.net>
Partially-Implements: blueprint monasca-roles
Change-Id: Idc01afcb125271181ee5e15d327d0929f07b49e9
2018-03-23 16:58:51 +00:00

30 lines
830 B
Django/Jinja

{
"command": "/opt/zookeeper/bin/zkServer.sh start-foreground /etc/zookeeper/conf/zoo.cfg",
"config_files": [
{
"source": "{{ container_config_directory }}/myid",
"dest": "/var/lib/zookeeper/data/myid",
"owner": "zookeeper",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/zookeeper.cfg",
"dest": "/etc/zookeeper/conf/zoo.cfg",
"owner": "zookeeper",
"perm": "0600"
}
],
"permissions": [
{
"path": "/var/lib/zookeeper",
"owner": "zookeeper:zookeeper",
"recurse": true
},
{
"path": "/var/log/kolla/zookeeper",
"owner": "zookeeper:zookeeper",
"recurse": true
}
]
}