ansible-role-bareos/templates/server-storage.conf.j2

17 lines
476 B
Text
Raw Normal View History

2021-09-12 09:55:41 +00:00
# {{ 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 %}