You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking to extend this module to setup hiera to use hiera-file.
Firstly I am new to ruby programming, which is causing me to stumble on trying to make this module a little bit more generic. Essentially I am trying to work out a way to take a hash of values which can than be used within the template file to setup a range of hiera backends.
Hi,
I am looking to extend this module to setup hiera to use hiera-file.
Firstly I am new to ruby programming, which is causing me to stumble on trying to make this module a little bit more generic. Essentially I am trying to work out a way to take a hash of values which can than be used within the template file to setup a range of hiera backends.
Here is how I have things setup so far:
I have a yaml file with this hash in it:
I than use hiera within puppet to pull the hash into a variable which the hiera.yaml.erg template will use:
It almost seems to work
As you can see from the generated yaml file, ruby does not prepend a ":" (colon) in front of the keys and it also has indented the first key's.
Does anyone have any ideas on how I can modify the behaviour of the .to_yaml function to prepend a colon and not have it indent?
Thanks,
Peter
The text was updated successfully, but these errors were encountered: