set retention from var
This commit is contained in:
@@ -12,12 +12,13 @@ Role Variables
|
|||||||
--------------
|
--------------
|
||||||
|
|
||||||
* burp_folders: list of folders to backup [ /etc, /root, /home ]
|
* burp_folders: list of folders to backup [ /etc, /root, /home ]
|
||||||
* burp_server_directory: where to store backup on server - default to "/srv/Backups/opendoor/"
|
* burp_server_directory: "/srv/Backups/{{ group_name[0] | lower }}/{{ inventory_hostname }}/"
|
||||||
* burp_server: default guillotine.opendoor.fr
|
* burp_server: default guillotine.opendoor.fr
|
||||||
* burp_packages: name of burp package to install
|
* burp_packages: name of burp package to install
|
||||||
* burp_cname: name of burp client - {{ ansible_hostname }}
|
* burp_cname: name of burp client - {{ ansible_hostname }}
|
||||||
* 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 ]
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
burp_packages:
|
burp_packages:
|
||||||
burp
|
burp
|
||||||
burp_cname: "{{ ansible_hostname }}"
|
burp_cname: "{{ ansible_hostname }}"
|
||||||
|
burp_retention:
|
||||||
|
- 7
|
||||||
|
burp_server_directory: "/srv/Backups/{{ group_name[0] | lower }}/{{ inventory_hostname }}/"
|
||||||
|
|||||||
@@ -3,3 +3,6 @@
|
|||||||
password={{ burp_password }}
|
password={{ burp_password }}
|
||||||
directory={{ burp_server_directory }}
|
directory={{ burp_server_directory }}
|
||||||
compression=zlib0
|
compression=zlib0
|
||||||
|
{% for k in burp_retention %}
|
||||||
|
keep {{ k }}
|
||||||
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user