Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
d547c7f607
commit
096a3e0540
69 changed files with 1650 additions and 0 deletions
32
templates/bacula/conf.d/filesets.conf.j2
Normal file
32
templates/bacula/conf.d/filesets.conf.j2
Normal file
|
@ -0,0 +1,32 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
{% for fileset in bacula_filesets %}
|
||||
FileSet {
|
||||
Name = {{ fileset['name'] }}
|
||||
{% if 'include' in fileset %}
|
||||
Include {
|
||||
{% if 'options' in fileset['include'] %}
|
||||
Options {
|
||||
{% if 'signature' in fileset['include']['options'] %}
|
||||
signature = {{ fileset['include']['options']['signature'] }}
|
||||
{% endif %}
|
||||
{% if 'compression' in fileset['include']['options'] %}
|
||||
compression = {{ fileset['include']['options']['compression'] }}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
{% for file in fileset['include']['files'] | default([]) | sort %}
|
||||
File = "{{ file }}"
|
||||
{% endfor %}
|
||||
}
|
||||
{% endif %}
|
||||
{% if 'exclude' in fileset %}
|
||||
Exclude {
|
||||
{% for file in fileset['exclude']['files'] | default([]) | sort %}
|
||||
File = "{{ file }}"
|
||||
{% endfor %}
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue