1 class bacula::client inherits bacula {
2 @@bacula::storage-per-node { $::fqdn: }
4 if $::hostname in [beethoven, berlioz, biber, diabelli, dinis, draghi, geo3, kaufmann, lully, master, picconi, pejacevic, reger, schumann, soler, vento, vieuxtemps, wilder, wolkenstein] {
5 @@bacula::node { $::fqdn: }
8 package { ['bacula-fd']:
12 service { 'bacula-fd':
16 require => Package['bacula-fd']
19 exec { 'bacula-fd restart-when-idle':
20 path => '/usr/bin:/usr/sbin:/bin:/sbin',
21 command => 'sh -c "setsid /usr/local/sbin/bacula-idle-restart fd &"',
23 subscribe => File['/etc/ssl/debian/certs/thishost.crt'],
24 require => File['/usr/local/sbin/bacula-idle-restart'],
27 file { '/etc/bacula/bacula-fd.conf':
28 content => template('bacula/bacula-fd.conf.erb'),
32 require => Package['bacula-fd'],
33 notify => Service['bacula-fd'],
35 file { '/usr/local/sbin/postbaculajob':
37 source => 'puppet:///modules/bacula/postbaculajob',
39 file { '/etc/default/bacula-fd':
40 content => template('bacula/default.bacula-fd.erb'),
44 require => Package['bacula-fd'],
45 notify => Service['bacula-fd'],
47 if $::lsbmajdistrelease < 7 {
48 file { '/etc/apt/preferences.d/dsa-bacula-client':
49 content => template('bacula/apt.preferences.bacula-client.erb'),
55 file { '/etc/apt/preferences.d/dsa-bacula-client':
60 @ferm::rule { 'dsa-bacula-fd-v4':
62 description => 'Allow bacula access from storage and director',
63 rule => "proto tcp mod state state (NEW) dport (bacula-fd) saddr (${bacula_director_ip}) ACCEPT",
66 #@ferm::rule { 'dsa-bacula-fd-v6':
68 # description => 'Allow bacula access from storage and director',
69 # rule => "proto tcp mod state state (NEW) dport (bacula-fd) saddr (${bacula_director_ip6}) ACCEPT",