Add daily Zookeeper data cleanup

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:21 -04:00
parent 15a2bf1418
commit 94ef3490ab
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