ansible-role-bareos/templates/server-storage.conf.j2
2021-09-12 11:55:41 +02:00

16 lines
476 B
Django/Jinja

# {{ ansible_managed }}
{% for storage_name, storage in bareos_server_storages.items() %}
Storage {
Name = "{{ storage_name }}"
Address = "{{ storage.address }}"
Password = "{{ storage.password }}"
Device = "{{ storage.device }}"
MediaType = "{{ storage.media_type|default('File') }}"
{% if 'config' in storage %}
{% for storage_option, storage_value in storage.config.items() %}
{{ storage_option }} = {{ storage_value }}
{% endfor %}
{% endif %}
}
{% endfor %}