Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 257

update hash in puppet manifest

$
0
0
Hello, I am using a puppet agent 3.7.1 as part of our deployment process. We also use hiera to store our configuration data. Somewhere in one of my manifest I call hiera_hash to merge my configuration dictionary. My problem is that I need to "enrich" the returned hash and add some data to it. I understand that variables are immutable in puppet, so I can't just go my_hash[new_key] = new_value What options do I have if I want to update my hash ?(stdlib is not an option for me...the redtape in the place I work makes it very hard to install anything that does not come out of the box) Thanks,

Viewing all articles
Browse latest Browse all 257