From: Stephen Gran Date: Tue, 22 Sep 2009 23:45:39 +0000 (+0100) Subject: put the constraint in the right fact, Steve X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9a42179a031f740c7ada9f6c8e83e8afd4ceb09e;p=mirror%2Fdsa-puppet.git put the constraint in the right fact, Steve Signed-off-by: Stephen Gran --- diff --git a/facts/hosts.rb b/facts/hosts.rb index 69c15acd2..b55c43b1a 100644 --- a/facts/hosts.rb +++ b/facts/hosts.rb @@ -1,5 +1,4 @@ Facter.add("brokenhosts") do - confine :kernel => :linux brokenhosts = "true" if FileTest.exist?("/etc/hosts") IO.foreach("/etc/hosts") do |x| diff --git a/facts/services.rb b/facts/services.rb index 6c40cf09a..d52f09c8d 100644 --- a/facts/services.rb +++ b/facts/services.rb @@ -1,4 +1,5 @@ ["bugs","qa"].each do |service| + confine :kernel => :linux Facter.add(service + "_host") do service_name = "#{service}." + Facter.domain active = false