On 2014-05-13 16:34, Viktor Jevdokimov wrote:
> 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
The error message is fairly self-explanatory, no? Facter needs facts to
return strings, booleans, arrays or hashes. Your fact returns Ruby
symbols, which Facter doesn't like. Change :dev, :prod and :default to
"dev", "prod" and "default" and it should work.
HTH Andreas