]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Move external class inclusion after sanity checks.
authorintrigeri <intrigeri@boum.org>
Sun, 30 Dec 2012 14:45:45 +0000 (15:45 +0100)
committerintrigeri <intrigeri@boum.org>
Sun, 30 Dec 2012 15:06:30 +0000 (16:06 +0100)
manifests/tlspolicy_snippet.pp

index 64c3e5ee948d715d6eb951aabbf3dcf345ca8558..701528bca1073f5ed3b651849dc27cf2bd9d6b32 100644 (file)
@@ -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",