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, new-master, 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 file { '/etc/bacula/bacula-fd.conf':
20 content => template('bacula/bacula-fd.conf.erb'),
24 require => Package['bacula-fd'],
25 notify => Service['bacula-fd'],
27 file { '/usr/local/sbin/postbaculajob':
29 source => 'puppet:///modules/bacula/postbaculajob',
31 file { '/etc/default/bacula-fd':
32 content => template('bacula/default.bacula-fd.erb'),
36 require => Package['bacula-fd'],
37 notify => Service['bacula-fd'],
39 if $::lsbmajdistrelease < 7 {
40 file { '/etc/apt/preferences.d/dsa-bacula-client':
41 content => template('bacula/apt.preferences.bacula-client.erb'),
47 file { '/etc/apt/preferences.d/dsa-bacula-client':
52 @ferm::rule { 'dsa-bacula-fd-v4':
54 description => 'Allow bacula access from storage and director',
55 rule => "proto tcp mod state state (NEW) dport (bacula-fd) saddr (${bacula_director_ip}) ACCEPT",
58 #@ferm::rule { 'dsa-bacula-fd-v6':
60 # description => 'Allow bacula access from storage and director',
61 # rule => "proto tcp mod state state (NEW) dport (bacula-fd) saddr (${bacula_director_ip6}) ACCEPT",