From 6743a08b90a118130edd3e59449c5b389fb1796e Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 9 Jan 2018 21:26:22 +0000 Subject: Remove obsolete ensure parameter for concat::fragment. Recent versions of the concat module error out when one passes an ensure parameter. --- manifests/tlspolicy_snippet.pp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'manifests/tlspolicy_snippet.pp') diff --git a/manifests/tlspolicy_snippet.pp b/manifests/tlspolicy_snippet.pp index b63f812..77fc457 100644 --- a/manifests/tlspolicy_snippet.pp +++ b/manifests/tlspolicy_snippet.pp @@ -7,7 +7,6 @@ See the postfix::tlspolicy class for details. Parameters: - *name*: name of destination domain Postfix will lookup. See TLS_README. - *value*: right-hand part of the tls_policy map -- *ensure*: present/absent, defaults to present. Requires: - Class["postfix"] @@ -28,16 +27,15 @@ Example usage: */ -define postfix::tlspolicy_snippet ($ensure="present", $value = false) { +define postfix::tlspolicy_snippet ($value = false) { - if ($value == false) and ($ensure == "present") { - fail("The value parameter must be set when using the postfix::tlspolicy_snippet define with ensure=present.") + if $value == false { + fail("The value parameter must be set when using the postfix::tlspolicy_snippet define.") } include postfix::tlspolicy concat::fragment { "postfix_tlspolicy_${name}": - ensure => "$ensure", content => "${name} ${value}\n", target => "$postfix::tlspolicy::postfix_merged_tlspolicy", } -- cgit v1.2.3