aboutsummaryrefslogtreecommitdiff
path: root/manifests/tlspolicy_snippet.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-21 18:25:46 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-21 18:25:46 -0200
commit7cc8c05c571d18b9a39eb5643dd9af26d31005ff (patch)
tree00932722b7f819681d69777d97f20d8e27cd7b22 /manifests/tlspolicy_snippet.pp
parent74b5b00bbd18c1ead3a6425530666817e50ffb96 (diff)
parent881a59ac62684028a7f4cb358e3592efc3ae99a9 (diff)
downloadpuppet-postfix-7cc8c05c571d18b9a39eb5643dd9af26d31005ff.tar.gz
puppet-postfix-7cc8c05c571d18b9a39eb5643dd9af26d31005ff.tar.bz2
Merge branch 'master' of ssh://labs.riseup.net/shared-postfix
Conflicts: manifests/definitions/header_checks_snippet.pp manifests/header_checks.pp manifests/header_checks_snippet.pp manifests/init.pp manifests/tlspolicy.pp manifests/virtual_regexp_snippet.pp
Diffstat (limited to 'manifests/tlspolicy_snippet.pp')
-rw-r--r--manifests/tlspolicy_snippet.pp13
1 files changed, 5 insertions, 8 deletions
diff --git a/manifests/tlspolicy_snippet.pp b/manifests/tlspolicy_snippet.pp
index 2596dbc..701528b 100644
--- a/manifests/tlspolicy_snippet.pp
+++ b/manifests/tlspolicy_snippet.pp
@@ -1,7 +1,7 @@
/*
== Definition: postfix::tlspolicy_snippet
-Adds a TLS policy snippets to /etc/postfix/tls_policy.d/.
+Adds a TLS policy snippets to /etc/postfix/tls_policy.
See the postfix::tlspolicy class for details.
Parameters:
@@ -29,19 +29,16 @@ Example usage:
define postfix::tlspolicy_snippet ($ensure="present", $value = false) {
- include postfix::tlspolicy
-
if ($value == false) and ($ensure == "present") {
fail("The value parameter must be set when using the postfix::tlspolicy_snippet define with ensure=present.")
}
- file { "${postfix::tlspolicy::postfix_tlspolicy_snippets_dir}/${name}":
+ include postfix::tlspolicy
+
+ concat::fragment { "postfix_tlspolicy_${name}":
ensure => "$ensure",
content => "${name} ${value}\n",
- mode => 600,
- owner => root,
- group => 0,
- notify => Exec["concat_${postfix::tlspolicy::postfix_merged_tlspolicy}"],
+ target => "$postfix::tlspolicy::postfix_merged_tlspolicy",
}
}