From 6e1fd1daa86aca513cd272f100ccc5ce558b5688 Mon Sep 17 00:00:00 2001 From: =?utf8?q?H=C3=A9ctor=20Or=C3=B3n=20Mart=C3=ADnez?= Date: Wed, 31 Jan 2018 17:11:33 +0100 Subject: [PATCH] systemd: create unexistent .d directory v2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Héctor Orón Martínez --- modules/systemd/manifests/init.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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', } } -- 2.20.1