]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Use more stable secrets for director and storage
authorTollef Fog Heen <tfheen@err.no>
Sat, 16 Jun 2012 10:31:05 +0000 (12:31 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 16 Jun 2012 10:31:05 +0000 (12:31 +0200)
modules/bacula/manifests/bacula.pp

index 3cf9b6742f335ab0a0a7d0e5fc536af1f010038c..b998de2eb3ea36670635ee84f03428ffe4de25f7 100644 (file)
@@ -20,9 +20,9 @@ class bacula {
 
   $bacula_backup_path       = "/srv/backup.debian.org/bacula"
 
-  $bacula_director_secret   = hmac("/etc/puppet/secret", "bacula-dir-$hostname")
+  $bacula_director_secret   = hmac("/etc/puppet/secret", "bacula-dir-$bacula_director_name")
   $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")