---
classes:
- - bacula::storage
+ - roles::bacula::storage
- postgres::backup_server
- profile::ipsec::fasolo_storace
--- /dev/null
+#
+# bacula storage node
+#
+class roles::bacula::storage(
+) {
+ include bacula::storage
+
+ $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-${::hostname}-reader",
+ address => $base::public_addresses,
+ }
+}
user => ['bacula', 'bacula-dinis-reader', 'nagios'],
address => ['82.195.75.77', '2001:41b8:202:deb::311:77'],
}
- postgres::cluster::hba_entry { 'bacula-sd':
- pg_version => $pg_version,
- pg_cluster => $pg_cluster,
- pg_port => $pg_port,
- database => 'bacula',
- user => 'bacula-storace-reader',
- address => ['93.94.130.161', '2a02:158:380:280::161'],
- }
}