diff options
author | kwadronaut <kwadronaut@leap.se> | 2018-11-06 18:43:45 +0100 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2018-11-06 18:44:28 +0100 |
commit | e14722271a7700945874b72daed79240fbadaa4a (patch) | |
tree | f8edee79945fcd2d93d624878579725f12258d33 /manifests/tlspolicy_snippet.pp | |
parent | 6550524550debe1eaadf99e8adb7c568ae8797b1 (diff) | |
parent | 6743a08b90a118130edd3e59449c5b389fb1796e (diff) |
Merge remote-tracking branch 'shared/master'
Diffstat (limited to 'manifests/tlspolicy_snippet.pp')
-rw-r--r-- | manifests/tlspolicy_snippet.pp | 8 |
1 files changed, 3 insertions, 5 deletions
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", } |