summaryrefslogtreecommitdiffstats
path: root/roles/bacula-sd/templates/etc/bacula/bacula-sd.conf.j2
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-01-22 02:12:24 +0100
committerGuilhem Moulin <guilhem@fripost.org>2020-01-22 02:12:45 +0100
commita092bfd947773281a23419ee0ab62358371b7166 (patch)
treeaab383fa77412bf0d99505d3b55488552137b28d /roles/bacula-sd/templates/etc/bacula/bacula-sd.conf.j2
parenteb0a0a822328e8563ed8af67e4e9cd573d93b31a (diff)
tr/-/_/ in group names.
This avoids [DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default, this will change, but still be user configurable on deprecation. This feature will be removed in version 2.10. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
Diffstat (limited to 'roles/bacula-sd/templates/etc/bacula/bacula-sd.conf.j2')
-rw-r--r--roles/bacula-sd/templates/etc/bacula/bacula-sd.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/bacula-sd/templates/etc/bacula/bacula-sd.conf.j2 b/roles/bacula-sd/templates/etc/bacula/bacula-sd.conf.j2
index 5ffa17c..3cbf7fe 100644
--- a/roles/bacula-sd/templates/etc/bacula/bacula-sd.conf.j2
+++ b/roles/bacula-sd/templates/etc/bacula/bacula-sd.conf.j2
@@ -5,41 +5,41 @@
#
# You may need to change the name of your tape drive
# on the "Archive Device" directive in the Device
# resource. If you change the Name and/or the
# "Media Type" in the Device resource, please ensure
# that dird.conf has corresponding changes.
#
Storage { # define myself
Name = {{ inventory_hostname_short }}-sd
Working Directory = /var/lib/bacula
Pid Directory = /var/run/bacula
Maximum Concurrent Jobs = 20
SDAddress = {{ ipsec[inventory_hostname_short] }}
SDPort = 9103
}
#
# List Directors who are permitted to contact Storage daemon
#
-{% for dir in groups['bacula-dir'] | sort %}
+{% for dir in groups['bacula_dir'] | sort %}
Director {
Name = {{ hostvars[dir].inventory_hostname_short }}-dir
@|"sed -n '/^{{ hostvars[dir].inventory_hostname_short }}-dir\\s/ {s//Password = /p; q}' /etc/bacula/passwords-sd"
}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = {{ hostvars[dir].inventory_hostname_short }}-dir = all
}
{% endfor %}
#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
#