X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Ftemplates%2Fbacula-sd.conf.erb;h=7e7176f2465398496dc91d08ddef8ce96dc89bf6;hb=dbcdb9d9a519274894d87ed1f4dd9b5393da06b1;hp=07b839302409fa997cb0c6b29ade60a262054ec0;hpb=2b86e88b1cdbc434dfef58fa78c86361a3c1a279;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/templates/bacula-sd.conf.erb b/modules/bacula/templates/bacula-sd.conf.erb index 07b839302..7e7176f24 100644 --- a/modules/bacula/templates/bacula-sd.conf.erb +++ b/modules/bacula/templates/bacula-sd.conf.erb @@ -10,7 +10,7 @@ Storage { # bacula, on Debian 9 (stretch), does not resolve a single name # to both v4 and v6 addresses. Se we can't just say # ip = { addr = }. Boo. - <%- if scope.lookupvar('site::nodeinfo')['misc']['has_v4_ldap'] -%> + <%- if scope.lookupvar('deprecated::nodeinfo')['misc']['has_v4_ldap'] -%> ipv4 = { # use the hostname rather than the IP address from LDAP, # as /etc/hosts might have a better answer in case of natted hosts. @@ -18,7 +18,7 @@ Storage { port = <%= @bacula_storage_port %> } <%- end -%> - <%- if scope.lookupvar('site::nodeinfo')['misc']['has_v6_ldap'] -%> + <%- if scope.lookupvar('deprecated::nodeinfo')['misc']['has_v6_ldap'] -%> ipv6 = { addr = <%= @bacula_storage_address %> port = <%= @bacula_storage_port %>