if $::hostname in [berlioz, biber, draghi] {
include bacula::client
- @@bacula::node { $::fqdn: }
}
if $::hostname == 'beethoven' {
notify => Service['bacula-director']
}
- Bacula::Node<<| |>>
-
file { '/etc/bacula/bacula-dir.conf':
content => template('bacula/bacula-dir.conf.erb'),
mode => '0440',
description => 'Allow bacula access from localhost',
rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr (${bacula_director_address} localhost) ACCEPT",
}
+
+ $clients = ['berlioz.debian.org', 'biber.debian.org', 'draghi.debian.org']
+ bacula::node { $clients: }
+
}