class bacula::director inherits bacula {
ensure_packages ( [
- 'bacula-director-pgsql',
- 'bacula-common',
- 'bacula-common-pgsql'
+ 'bacula-director-pgsql',
+ 'bacula-common',
+ 'bacula-common-pgsql'
], {
ensure => 'installed',
})
package { 'python3-psycopg2': ensure => installed }
file { '/etc/bacula/scripts/volume-purge-action':
- mode => '0555',
- source => 'puppet:///modules/bacula/volume-purge-action',
+ mode => '0555',
+ source => 'puppet:///modules/bacula/volume-purge-action',
;
}
file { '/etc/bacula/scripts/volumes-delete-old':
- mode => '0555',
- source => 'puppet:///modules/bacula/volumes-delete-old',
+ mode => '0555',
+ source => 'puppet:///modules/bacula/volumes-delete-old',
;
}
file { '/etc/bacula/storages-list.d':
source => 'puppet:///files/empty/',
}
file { '/usr/local/sbin/dsa-bacula-scheduler':
- source => 'puppet:///modules/bacula/dsa-bacula-scheduler',
- mode => '0555',
+ source => 'puppet:///modules/bacula/dsa-bacula-scheduler',
+ mode => '0555',
}
- file { "/etc/cron.d/puppet-bacula-stuff": ensure => absent, }
+ file { '/etc/cron.d/puppet-bacula-stuff': ensure => absent, }
concat::fragment { 'puppet-crontab--bacula-director':
- target => '/etc/cron.d/puppet-crontab',
- content => @(EOF)
+ target => '/etc/cron.d/puppet-crontab',
+ content => @(EOF)
@daily root chronic /etc/bacula/scripts/volume-purge-action -v
@daily root chronic /etc/bacula/scripts/volumes-delete-old -v
*/3 * * * * root sleep $(( $RANDOM \% 60 )); flock -w 0 -e /usr/local/sbin/dsa-bacula-scheduler /usr/local/sbin/dsa-bacula-scheduler
concat { $bacula::bacula_dsa_client_list:
}
concat::fragment { 'bacula-dsa-client-list::header' :
- target => $bacula::bacula_dsa_client_list,
- content => "",
- order => '00',
+ target => $bacula::bacula_dsa_client_list,
+ content => '',
+ order => '00',
}
Concat::Fragment <<| tag == $bacula::tag_bacula_dsa_client_list |>>
}