Ask Your Question

Revision history [back]

Hiera not working for puppet version 5

Hello ,

I recently upgraded puppet version 3 to version 5. all is working fine with new version by my hiera configurations for puppet 5 is not working. i think even the hiera.yaml is not getting read. please advise what should i do here. below are the configurations for my setup.

1) Hiera.yaml

cat /etc/puppetlabs/puppet/hiera.yaml
version: 5
defaults:
datadir: /etc/puppetlabs/code/hieradata/
data_hash: yaml_data
hierarchy:
- name: "Test"
path: "nodes/%{environment}/%{trusted.certname}.yaml"

2) And my Environment YAML files are kept at

cat /etc/puppetlabs/code/hieradata/nodes/staging/puppetaws.demo.com.yaml
demo::configuration::phpini::memory_limit: "32"

But nothing is getting changed on my remote machine when I run the puppet command

/opt/puppetlabs/bin/puppet agent

please suggest what i am doing wrong here.

Thanks & Regards

Sushil.R