Viktor Jevdokimov
2014-May-13 14:34 UTC
[Puppet Users] Facter resolved to an invalid value
On some CentOS servers we started to receive an error:
Fact resolution fact='env', resolution='<anonymous>'
resolved to an invalid
value: Expected prod to be one of [Integer, Float, TrueClass, FalseClass,
NilClass, String, Array, Hash], but was Symbol
Custom fact script:
Facter.add('env') do
setcode do
case Facter.value(:ipaddress)
when /^172.22.1.*$/
:dev
when /^10.1.2.*$/
:prod
else
:default
end
end
end
Happened after IP address was changed on the server, machine was restarted.
Have not idea what to fix.
Best regards,
Viktor
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/41083f1e-3e9c-4e75-9e96-a4e6edcd5262%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.