1 class bacula::client inherits bacula {
2 @@bacula::storage-per-node { $::fqdn: }
4 if $::hostname in [beethoven, berlioz, biber, diabelli, dinis, draghi, geo3, schumann, soler, widor, wolkenstein] {
5 @@bacula::node { $::fqdn: }
8 package { ['bacula-fd']:
12 service { 'bacula-fd':
16 require => Package['bacula-fd']
20 '/etc/bacula/bacula-fd.conf':
21 content => template('bacula/bacula-fd.conf.erb'),
25 require => Package['bacula-fd'],
26 notify => Service['bacula-fd'],
28 '/usr/local/sbin/postbaculajob':
30 source => 'puppet:///modules/bacula/postbaculajob',
32 '/etc/default/bacula-fd':
33 content => template('bacula/default.bacula-fd.erb'),
37 require => Package['bacula-fd'],
38 notify => Service['bacula-fd'],
40 '/etc/apt/preferences.d/dsa-bacula-client':
41 content => template('bacula/apt.preferences.bacula-client.erb'),
49 @ferm::rule { 'dsa-bacula-fd-v4':
51 description => 'Allow bacula access from storage and director',
52 rule => "proto tcp mod state state (NEW) dport (bacula-fd) saddr (${bacula_director_ip}) ACCEPT",
55 #@ferm::rule { 'dsa-bacula-fd-v6':
57 # description => 'Allow bacula access from storage and director',
58 # rule => "proto tcp mod state state (NEW) dport (bacula-fd) saddr (${bacula_director_ip6}) ACCEPT",