Hey John,

After changing 'stringify_facts' to false on both master and client, things 
are working as expected.

Thank you again for the insight; not sure how I missed that one.

Cheers,

Mike

On Wednesday, February 10, 2016 at 6:12:40 AM UTC-8, jcbollinger wrote:
>
>
>
> On Tuesday, February 9, 2016 at 5:00:12 PM UTC-6, Mike Reed wrote:
>  
>
>>
>> Running 'facter -p' on the client side (assuming we have two video cards 
>> installed), I receive a result of:  video_card_id => ["17c2", "17c2"]
>> This result means to me that I was returned two strings, each of which 
>> are contained within a typical ruby'ish collection.
>>
>> Now, if I try and reference the first item in the collection - like below 
>> - using video_card_id[0] within a puppet manifest, I get an error
>>
>> notify { "Installing driver version: ({$::video_card_id[0]})" : }
>>
>> Error: Could not retrieve catalog from remote server: Error 400 on 
>> SERVER: ::video_card_id is not a hash or array when accessing it with 0.
>> [...]
>>
>
>  
>
>> Both server and client are running:  Puppet 3.6.2/Facter 2.1.0
>>
>>
> Structured facts were a forward-looking feature in Puppet 3.6, not enabled 
> by default.  When they are not enabled, Puppet squashes all fact values to 
> strings.  You must configure both the agent and the master to support 
> structured facts, by setting the stringify_facts configuration option to 
> false.  The docs discuss this 
> <https://docs.puppetlabs.com/puppet/3.6/reference/config_important_settings.html#recommended-and-safe>,
>  
> but they don't say much more than the above.
>
>
> John
>
>

-- 
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/7104fab0-9373-4afe-aea2-3ff32289089e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to