aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-12-30 15:45:45 +0100
committerintrigeri <intrigeri@boum.org>2012-12-30 16:06:30 +0100
commit881a59ac62684028a7f4cb358e3592efc3ae99a9 (patch)
tree63d647ddfd2450ac67910fbef869a4335229b396
parentda8b03fcb0c51ff7b2305d8f80b678afc0830d67 (diff)
downloadpuppet-postfix-881a59ac62684028a7f4cb358e3592efc3ae99a9.tar.gz
puppet-postfix-881a59ac62684028a7f4cb358e3592efc3ae99a9.tar.bz2
Move external class inclusion after sanity checks.
-rw-r--r--manifests/tlspolicy_snippet.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/tlspolicy_snippet.pp b/manifests/tlspolicy_snippet.pp
index 64c3e5e..701528b 100644
--- a/manifests/tlspolicy_snippet.pp
+++ b/manifests/tlspolicy_snippet.pp
@@ -29,12 +29,12 @@ 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.")
}
+ include postfix::tlspolicy
+
concat::fragment { "postfix_tlspolicy_${name}":
ensure => "$ensure",
content => "${name} ${value}\n",