I have a Problem with puppetdb and my structured facts (hashes).
Hashes will stringified through my puppetdb.
Ubuntu 14.04
puppetserver = 3.8.7
facter = 2.4.4
puppetdb = 2.3.8-1
In my puppet.conf on the clients and server i have included:
stringify_facts = false
In my site.pp i have following entry:
if is_hash($::os) {
notify {'hash':}
notify {$os['family']:}
}
if is_string($::os) {
notify {'string':}
notify {$os['family']:}
}
If in my puppet.conf on the Server:
storeconfigs = true
storeconfigs_backend = puppetdb
and the puppetdb is running.
I get the following message on the Client puppetrun:
os is not a hash or Array when accesssing it with family.
If i changed my site.pp to only:
if is_string($::os) {
notify {'os is a string':}
}
Then i get the message -> 'os is a string'
If i change the puppet.conf on my server to:
storeconfigs = false
storeconfigs_backend = puppetdb
then all is ok. os fact will identified as a hash.
Has anyone a idea? Please help :) Taner