1 class bacula::storage inherits bacula {
13 # should wait on -sd to finish current backups, then restart
14 # since it does not support reload and restarting kills running
16 exec { 'bacula-sd reload':
17 path => '/usr/bin:/usr/sbin:/bin:/sbin',
18 command => '/bin/true',
22 file { '/etc/bacula/bacula-sd.conf':
23 content => template('bacula/bacula-sd.conf.erb'),
26 notify => Service['bacula-sd']
29 file { '/etc/bacula/storage-conf.d':
36 source => 'puppet:///files/empty/',
37 notify => Exec['bacula-sd reload']
40 @ferm::rule { 'dsa-bacula-sd-v4':
42 description => 'Allow bacula-sd access from director and clients',
43 rule => 'proto tcp mod state state (NEW) dport (bacula-sd) @subchain \'bacula-sd\' { saddr ($HOST_DEBIAN_V4) ACCEPT; }',
47 @ferm::rule { 'dsa-bacula-sd-v6':
49 description => 'Allow bacula-sd access from director and clients',
50 rule => 'proto tcp mod state state (NEW) dport (bacula-sd) @subchain \'bacula-sd\' { saddr ($HOST_DEBIAN_V6) ACCEPT; }',
54 file { '/etc/bacula/storage-conf.d/empty.conf':
58 notify => Exec['bacula-sd reload']
61 Bacula::Storage-per-Node<<| |>>