1 class bacula::storage inherits bacula {
13 exec { 'bacula-sd restart-when-idle':
14 path => '/usr/bin:/usr/sbin:/bin:/sbin',
15 command => 'sh -c "setsid /usr/local/sbin/bacula-idle-restart sd &"',
17 subscribe => File[$bacula_ssl_server_cert],
18 require => File['/usr/local/sbin/bacula-idle-restart'],
22 file { '/etc/bacula/bacula-sd.conf':
23 content => template('bacula/bacula-sd.conf.erb'),
26 notify => Exec['bacula-sd restart-when-idle']
29 file { '/etc/bacula/storage-conf.d':
36 source => 'puppet:///files/empty/',
37 notify => Exec['bacula-sd restart-when-idle']
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 5.153.231.125 5.153.231.126) 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 restart-when-idle']
61 file { "${bacula_backup_path}/Catalog":
69 Bacula::Storage-per-Node<<| |>>