Add daily Zookeeper data cleanup
This commit is contained in:
parent
15a2bf1418
commit
94ef3490ab
|
@ -18,6 +18,12 @@
|
||||||
- zoo.cfg
|
- zoo.cfg
|
||||||
notify: restart zookeeper
|
notify: restart zookeeper
|
||||||
|
|
||||||
|
- name: install daily vacuum script
|
||||||
|
template:
|
||||||
|
src: zookeeper/zookeeper-vacuum.j2
|
||||||
|
dest: /etc/cron.daily/zookeeper-vacuum
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: install systemd unit file
|
- name: install systemd unit file
|
||||||
template:
|
template:
|
||||||
src: zookeeper/zookeeper.service.j2
|
src: zookeeper/zookeeper.service.j2
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Daily vaccuum script for PVC Zookeeper cluster
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
/usr/share/zookeeper/bin/zkCleanup.sh /var/lib/zookeeper -n 14
|
Loading…
Reference in New Issue