Team could you please share the script path for changing the value.

On Tuesday, May 13, 2014 at 10:12:44 AM UTC-5, Viktor Jevdokimov wrote:
>
> Thanks!
>
>
> 2014-05-13 17:49 GMT+03:00 David Schmitt <da...@dasz.at <javascript:>>:
>
>> 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
>>>
>>
>> Welcome to facter 2.0
>>
>>
>> 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
>>>
>>
>>
>> change all :XXXX to "XXXX"
>>
>>
>> Regards, David
>>
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Puppet Users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/
>> topic/puppet-users/YwcTswIb1Us/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> puppet-users...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/puppet-users/eed613ba03f0563d641f92386f19c33e%40hosting.edv-bus.at.
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/027de8bf-a699-41fb-9737-60942b2cd684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to