And a bit more stable keys, as well as limiting the access to the director a bit
[mirror/dsa-puppet.git] / modules / bacula / manifests / bacula.pp
index 3cf9b67..9dde19d 100644 (file)
@@ -22,9 +22,9 @@ class bacula {
 
   $bacula_director_secret   = hmac("/etc/puppet/secret", "bacula-dir-$hostname")
   $bacula_db_secret         = hmac("/etc/puppet/secret", "bacula-db-$hostname")
-  $bacula_storage_secret    = hmac("/etc/puppet/secret", "bacula-sd-$hostname")
+  $bacula_storage_secret    = hmac("/etc/puppet/secret", "bacula-sd-$bacula_storage_name")
   $bacula_client_secret     = hmac("/etc/puppet/secret", "bacula-fd-$hostname")
-  $bacula_monitor_secret    = hmac("/etc/puppet/secret", "bacula-monitor-$hostname")
+  $bacula_monitor_secret    = hmac("/etc/puppet/secret", "bacula-monitor-$bacula_director_name")
 
   package {
     "bacula-console": ensure => installed;