From 881a59ac62684028a7f4cb358e3592efc3ae99a9 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 30 Dec 2012 15:45:45 +0100 Subject: Move external class inclusion after sanity checks. --- manifests/tlspolicy_snippet.pp | 4 ++-- 1 file 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", -- cgit v1.2.3