puppet-hiera
puppet-hiera copied to clipboard
Module Parameters Being Converted When Retreived from Hiera Data
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 2018.1.8
- Ruby:
- Distribution:
- Module version: 4.0.0
How to reproduce (e.g Puppet code you use)
Instead of hard coding params via a resource-like declaration, I am attempting to utilize our existing hiera structure with include-like statements.
What are you seeing
The hierarchy entries that utilize fact values are not being literallly translated to the hiera.yaml file that is created.
Ie. This is is the entry in my hiera structure....
#profile::cia::puppet_masters hiera::hiera_version: '5' hiera::hiera_yaml: "/usr/local/src/hiera.yaml" hiera::hiera5_defaults: datadir: "data" data_hash: "yaml_data" hiera::hierarchy:
- name: "Hosts" path: "hosts/%{facts.fqdn}.yaml"
Produces the following result in the hiera.yaml that is created.
- name: "Hosts" path: "hosts/dvtlccm0011.ercot.com.yaml"
What behaviour did you expect instead
I would expect the result to be:
- name: "Hosts" path: "hosts/%{facts.fqdn}.yaml"