--- /dev/null
+#
+# bacula director node
+#
+class roles::bacula::director(
+) {
+ include bacula::director
+
+ $pg_server = lookup('bacula::director::db_address')
+ $pg_port = lookup('bacula::director::db_port')
+
+ @@postgres::cluster::hba_entry { 'bacula-sd':
+ tag => "postgres::cluster::${pg_port}::hba::${pg_server}",
+ pg_port => $pg_port,
+ database => 'bacula',
+ user => ['bacula', 'bacula-dinis-reader', 'nagios'],
+ address => $base::public_addresses,
+ }
+}
pg_port => $pg_port,
manage_hba => true,
}
- postgres::cluster::hba_entry { 'bacula-dir':
- pg_version => $pg_version,
- pg_cluster => $pg_cluster,
- pg_port => $pg_port,
- database => 'bacula',
- user => ['bacula', 'bacula-dinis-reader', 'nagios'],
- address => ['82.195.75.77', '2001:41b8:202:deb::311:77'],
- }
}