Add daily Zookeeper data cleanup

This commit is contained in:
Joshua Boniface 2019-08-26 11:09:23 -04:00
parent ef9673de02
commit 7f5a7e48f8
2 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,12 @@
- zoo.cfg
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
template:
src: zookeeper/zookeeper.service.j2

View File

@ -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