ensure => $service_ensure,
enable => $service_enable,
hasstatus => true,
- require => Package['bacula-fd']
}
exec { 'bacula-fd restart-when-idle':
mode => '0640',
owner => root,
group => bacula,
- require => Package['bacula-fd'],
notify => Exec['bacula-fd restart-when-idle'],
}
file { '/etc/bacula/fd-conf.d/empty.conf':
content => '',
mode => '0440',
group => bacula,
- require => Package['bacula-director-pgsql'],
notify => Exec['bacula-director reload']
}
file { '/usr/local/sbin/bacula-backup-dirs':
mode => '0400',
owner => root,
group => root,
- require => Package['bacula-fd'],
notify => Service['bacula-fd'],
}
if (versioncmp($::lsbmajdistrelease, '9') >= 0 and $facts['systemd']) {