All, I am getting the following problem with facter on 5 of my nodes,
Fact resolution fact='enviro', resolution='<anonymous>' resolved to an invalid value: Expected (?-mix:xxx(vs|sv).{2,7}\d{1,2}) to be one of [Integer, Float, TrueClass, FalseClass, NilClass, String, Array, Hash], but was Regexp, this seems to only happen to one application running on rhel 5.8 puppet agent 3.5.1 facter 2.0.1
here is my fact
Facter.add(:enviro) do
setcode do
hostname = Facter.value('hostname')
if ( hostname =~ /^.{5}d{1}/i )
enviro="dev"
enviro
elsif (hostname =~ /^.{5}q{1}/i )
enviro="qa"
enviro
elsif (hostname =~ /^.{4,5}u{1}/i )
enviro="uat"
enviro
elsif (hostname =~ /^.{5}p{1}/i )
enviro="prod"
enviro
elsif (hostname =~ /^.{5}xxx/i )
enviro="prod"
enviro
else
enviro="unclassified"
enviro
end
end
end
~