summaryrefslogtreecommitdiffstats
path: root/roles/bacula-sd/templates
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
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')
-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
@@ -22,7 +22,7 @@ Storage { # define myself
#
# 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"