From: Stephen Gran Date: Sun, 15 Mar 2009 17:03:24 +0000 (+0000) Subject: Apparently facts can't have '-' in them X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=74f7a7a40aae37e799f2b436d45f2b5ee76ac5d2;p=dsa-puppet.git Apparently facts can't have '-' in them Signed-off-by: Stephen Gran --- diff --git a/facts/software.rb b/facts/software.rb index fc922bb2..fed40d8a 100644 --- a/facts/software.rb +++ b/facts/software.rb @@ -38,7 +38,7 @@ Facter.add("greylistd") do FileTest.exist?("/usr/sbin/greylistd") end end -Facter.add("policyd-weight") do +Facter.add("policydweight") do setcode do FileTest.exist?("/usr/sbin/policyd-weight") end diff --git a/templates/exim-test.erb b/templates/exim-test.erb index fbbe3be0..bae5d01c 100644 --- a/templates/exim-test.erb +++ b/templates/exim-test.erb @@ -16,7 +16,7 @@ HAVE_GREYLIST = 1 # HAVE_GREYLIST is undefined # USE_GREYLISTING is undefined <% end -%> -<% if has_variable?("policyd-weight") && policyd-weight == "true" -%> +<% if has_variable?("policydweight") && policydweight == "true" -%> HAVE_POLICYD = 1 <% else -%> # HAVE_POLICYD is undefined