From: Peter Palfrader Date: Wed, 25 Sep 2019 06:46:35 +0000 (+0200) Subject: Create an empty file in the FD's conf.d dir X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=34907b08834c0813071032038488f20f8fede0ce;p=mirror%2Fdsa-puppet.git Create an empty file in the FD's conf.d dir --- diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index 8f5604595..147c78f82 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -19,11 +19,12 @@ class bacula::client( $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, @@ -101,6 +102,14 @@ class bacula::client( 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',