Compare commits

..

3 Commits

Author SHA1 Message Date
959891f06f add setup of backup monitoring 2024-04-24 07:39:16 +02:00
b526b3938f fix typo in burp client conf file 2024-04-23 22:19:39 +02:00
c384d71b07 typo in burp client.conf 2024-04-23 22:13:29 +02:00
4 changed files with 13 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ Role Variables
* burp_password - group_names[0]}}/{{ inventory_hostname }}_burp_password
* burp_encryption_password - group_names[0]}}/{{ inventory_hostname }}_burp_encryption_password
* burp_retention: default [ 7 ]
* burp_watch - wether we monitor backup status - default true
Dependencies
------------

View File

@@ -5,4 +5,5 @@ burp_packages:
burp_cname: "{{ ansible_hostname }}"
burp_retention:
- 7
burp_watch: true
burp_server_directory: "/srv/Backups/{{ group_name[0] | lower }}/{{ inventory_hostname }}/"

View File

@@ -82,3 +82,13 @@
src: notify_script
dest: /usr/share/burp/scripts/notify_script
mode: 0755
- name: burp - setup monitoring
when: burp_watch
ansible.builtin.lineinfile:
path: /etc/zabbix/filelist.csv
line: "{{ burp_server_directory }}/{{ ansible_hostname }}/current/timestamp"
state: present
delegate_to: "{{ burp_server }}"

View File

@@ -4,5 +4,5 @@ password={{ burp_password }}
directory={{ burp_server_directory }}
compression=zlib0
{% for k in burp_retention %}
keep {{ k }}
keep={{ k }}
{% endfor %}