cat /home/soa/.puppet/hiera.yaml
cat /home/soa/common.yaml
To test if hiera is working:
this should print:
:hierarchy:
- common
:backends:
- yaml
:yaml:
:datadir: '/home/soa'
cat /home/soa/common.yaml
install_cleanssbatchorder : true
To test if hiera is working:
puppet apply -e "if hiera('install_cleanssbatchorder', false) { notify { 'pippo':}} "
this should print:
notice: pippo
notice: /Stage[main]//Notify[pippo]/message: defined 'message' as 'pippo'
notice: Finished catalog run in 0.02 seconds