From: intrigeri Date: Sun, 30 Dec 2012 14:45:45 +0000 (+0100) Subject: Move external class inclusion after sanity checks. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=881a59ac62684028a7f4cb358e3592efc3ae99a9;p=puppet-postfix.git Move external class inclusion after sanity checks. --- 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",