From: Héctor Orón Martínez Date: Wed, 31 Jan 2018 16:11:33 +0000 (+0100) Subject: systemd: create unexistent .d directory v2 X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=6e1fd1daa86aca513cd272f100ccc5ce558b5688;p=mirror%2Fdsa-puppet.git systemd: create unexistent .d directory v2 Signed-off-by: Héctor Orón Martínez --- diff --git a/modules/systemd/manifests/init.pp b/modules/systemd/manifests/init.pp index 47af70520..d5b896d31 100644 --- a/modules/systemd/manifests/init.pp +++ b/modules/systemd/manifests/init.pp @@ -7,8 +7,10 @@ class systemd { systemd::mask { 'sys-kernel-debug.mount': } if $::hostname == 'godard' { + exec {'mkdir -p /etc/systemd/journald.conf.d': + unless => 'test -d /etc/systemd/journald.conf.d', + } file { '/etc/systemd/journald.conf.d/persistency.conf': - command => 'mkdir -p /etc/systemd/journald.conf.d/', source => 'puppet:///modules/systemd/persistency.conf', } }