$service_ensure = $ensure ? { 'present' => 'running', 'absent' => 'stopped' }
$service_enable = $ensure ? { 'present' => true, 'absent' => false }
$reverse_ensure = $ensure ? { 'present' => 'absent', 'absent' => 'present' }
+ $directory_ensure = $ensure ? { 'present' => 'directory', 'absent' => 'absent' }
$client = $::fqdn
file { '/etc/bacula/fd-conf.d':
- ensure => directory,
+ ensure => $directory_ensure,
mode => '0755',
group => bacula,
purge => true,
require => Package['bacula-fd'],
notify => Exec['bacula-fd restart-when-idle'],
}
+ file { '/etc/bacula/conf.d/empty.conf':
+ ensure => $ensure,
+ content => '',
+ mode => '0440',
+ group => bacula,
+ require => Package['bacula-director-pgsql'],
+ notify => Exec['bacula-director reload']
+ }
file { '/usr/local/sbin/bacula-backup-dirs':
ensure => $ensure,
mode => '0775',