2 class bacula::director inherits bacula {
5 'bacula-director-pgsql',
12 service { 'bacula-director':
16 require => Package['bacula-director-pgsql']
18 dsa_systemd::override { 'bacula-director':
25 exec { 'bacula-director reload':
26 path => '/usr/bin:/usr/sbin:/bin:/sbin',
27 command => 'service bacula-director reload',
31 file { '/etc/bacula/conf.d':
38 source => 'puppet:///files/empty/',
39 notify => Exec['bacula-director reload']
42 file { '/etc/bacula/bacula-dir.conf':
43 content => template('bacula/bacula-dir.conf.erb'),
46 require => Package['bacula-director-pgsql'],
47 notify => Exec['bacula-director reload']
50 file { '/etc/bacula/conf.d/empty.conf':
54 require => Package['bacula-director-pgsql'],
55 notify => Exec['bacula-director reload']
60 package { 'bacula-console':
64 file { '/etc/bacula/bconsole.conf':
65 content => template('bacula/bconsole.conf.erb'),
68 require => Package['bacula-console']
71 package { 'python3-psycopg2': ensure => installed }
72 file { '/etc/bacula/scripts/volume-purge-action':
74 source => 'puppet:///modules/bacula/volume-purge-action',
77 file { '/etc/bacula/scripts/volumes-delete-old':
79 source => 'puppet:///modules/bacula/volumes-delete-old',
82 file { '/etc/bacula/storages-list.d':
89 source => 'puppet:///files/empty/',
91 file { '/usr/local/sbin/dsa-bacula-scheduler':
92 source => 'puppet:///modules/bacula/dsa-bacula-scheduler',
96 file { "/etc/cron.d/puppet-bacula-stuff": ensure => absent, }
97 concat::fragment { 'dsa-puppet-stuff--bacula-director':
98 target => '/etc/cron.d/dsa-puppet-stuff',
100 @daily root chronic /etc/bacula/scripts/volume-purge-action -v
101 @daily root chronic /etc/bacula/scripts/volumes-delete-old -v
102 */3 * * * * root sleep $(( $RANDOM \% 60 )); flock -w 0 -e /usr/local/sbin/dsa-bacula-scheduler /usr/local/sbin/dsa-bacula-scheduler
106 concat { $bacula::bacula_dsa_client_list:
108 concat::fragment { 'bacula-dsa-client-list::header' :
109 target => $bacula::bacula_dsa_client_list,
113 Concat::Fragment <<| tag == $bacula::tag_bacula_dsa_client_list |>>