summaryrefslogtreecommitdiff
path: root/manifests/tlspolicy_snippet.pp
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2018-11-06 18:43:45 +0100
committerkwadronaut <kwadronaut@leap.se>2018-11-06 18:44:28 +0100
commite14722271a7700945874b72daed79240fbadaa4a (patch)
treef8edee79945fcd2d93d624878579725f12258d33 /manifests/tlspolicy_snippet.pp
parent6550524550debe1eaadf99e8adb7c568ae8797b1 (diff)
parent6743a08b90a118130edd3e59449c5b389fb1796e (diff)
Merge remote-tracking branch 'shared/master'
Diffstat (limited to 'manifests/tlspolicy_snippet.pp')
-rw-r--r--manifests/tlspolicy_snippet.pp8
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",
}