summaryrefslogtreecommitdiff
path: root/manifests/tlspolicy_snippet.pp
diff options
context:
space:
mode:
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",
}