From 425ad79683e59603f83e6484a2e32804273d4339 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Fri, 10 Mar 2017 18:19:04 -0500 Subject: implement ensure absent for postfix::config This does not have a special case for "non-standard" settings, since I don't know whether it is needed or not. --- manifests/config.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'manifests') diff --git a/manifests/config.pp b/manifests/config.pp index ce7af9e..a1eb651 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -43,7 +43,9 @@ define postfix::config ($ensure = present, $value, $nonstandard = false) { } absent: { - fail "postfix::config ensure => absent: Not implemented" + exec { "postconf -X ${name}": + unless => "test \"x$(postconf -n ${name})\" = \"x\"", + } } } } -- cgit v1.2.3