Quantcast
Channel: Java mon amour
Viewing all articles
Browse latest Browse all 1121

Puppet: quick hiera setup

$
0
0
cat /home/soa/.puppet/hiera.yaml


: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

Viewing all articles
Browse latest Browse all 1121

Trending Articles