Don't hardcode bacula director host name
authorJulien Cristau <jcristau@debian.org>
Sun, 29 Sep 2019 14:05:41 +0000 (16:05 +0200)
committerJulien Cristau <jcristau@debian.org>
Sun, 29 Sep 2019 14:05:41 +0000 (16:05 +0200)
modules/roles/manifests/bacula/director.pp

index e142e81..91b198d 100644 (file)
@@ -12,7 +12,7 @@ class roles::bacula::director(
     tag      => "postgres::cluster::${pg_port}::hba::${pg_server}",
     pg_port  => $pg_port,
     database => 'bacula',
-    user     => ['bacula', 'bacula-dinis-reader', 'nagios'],
+    user     => ['bacula', 'bacula-${::hostname}-reader', 'nagios'],
     address  => $base::public_addresses,
   }
 }