add setup of backup monitoring
This commit is contained in:
@@ -19,6 +19,7 @@ Role Variables
|
|||||||
* burp_password - group_names[0]}}/{{ inventory_hostname }}_burp_password
|
* burp_password - group_names[0]}}/{{ inventory_hostname }}_burp_password
|
||||||
* burp_encryption_password - group_names[0]}}/{{ inventory_hostname }}_burp_encryption_password
|
* burp_encryption_password - group_names[0]}}/{{ inventory_hostname }}_burp_encryption_password
|
||||||
* burp_retention: default [ 7 ]
|
* burp_retention: default [ 7 ]
|
||||||
|
* burp_watch - wether we monitor backup status - default true
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|||||||
@@ -5,4 +5,5 @@ burp_packages:
|
|||||||
burp_cname: "{{ ansible_hostname }}"
|
burp_cname: "{{ ansible_hostname }}"
|
||||||
burp_retention:
|
burp_retention:
|
||||||
- 7
|
- 7
|
||||||
|
burp_watch: true
|
||||||
burp_server_directory: "/srv/Backups/{{ group_name[0] | lower }}/{{ inventory_hostname }}/"
|
burp_server_directory: "/srv/Backups/{{ group_name[0] | lower }}/{{ inventory_hostname }}/"
|
||||||
|
|||||||
@@ -82,3 +82,13 @@
|
|||||||
src: notify_script
|
src: notify_script
|
||||||
dest: /usr/share/burp/scripts/notify_script
|
dest: /usr/share/burp/scripts/notify_script
|
||||||
mode: 0755
|
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 }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user