diff --git a/manifests/systemd_journal/base_config.pp b/manifests/systemd_journal/base_config.pp index 576b0bf..2e2b8bb 100644 --- a/manifests/systemd_journal/base_config.pp +++ b/manifests/systemd_journal/base_config.pp @@ -1,16 +1,17 @@ # Manage systemd-journald base configuration class profile::systemd_journal::base_config { file {'/var/log/journal': ensure => 'directory', owner => 'root', group => 'systemd-journal', mode => '2755', notify => Exec['systemd_journal-tmpdir'], } exec {'systemd_journal-tmpdir': - command => 'systemd-tmpfiles --create --prefix /var/log/journal', - path => ['/sbin', '/usr/sbin', '/bin', '/usr/bin'], - refreshonly => true, + command => 'systemd-tmpfiles --create --prefix /var/log/journal', + path => ['/sbin', '/usr/sbin', '/bin', '/usr/bin'], + require => File['/var/log/journal'], + unless => 'getfacl -csp /var/log/journal | grep -Eq group:adm:r-x', } }