and use fqdn in hkdf
authorPeter Palfrader <peter@palfrader.org>
Tue, 24 Sep 2019 21:04:55 +0000 (23:04 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 24 Sep 2019 21:04:55 +0000 (23:04 +0200)
modules/bacula/manifests/director.pp

index 8c97916..a1a4e94 100644 (file)
@@ -18,7 +18,7 @@ class bacula::director(
 ) inherits bacula {
 
   # used by e.g. bconsole
-  $director_secret = hkdf('/etc/puppet/secret', "bacula-dir-${::hostname}")
+  $director_secret = hkdf('/etc/puppet/secret', "bacula-dir-${::fqdn}")
   # the RestoreFiles Job needs a Pool.  Any valid pool.
   $some_pool_name = "poolfull-${pool_name}-${bacula::bacula_director_address}"