Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

hiera_hash fails to fetch values from hieradata when using same variable name - is this a bug?

$
0
0
php7web.pp: class profile::php7web ( $apache_vhosts_defaults = hiera_hash('profile::php7web::apache_vhosts_defaults'), ) { notify { "$apache_vhosts_defaults": } } common.yaml: profile::php7web::apache_vhosts_defaults: port: 80 dev.yaml: profile::php7web::apache_vhosts_defaults: setenv: ['SYMFONY_ENV dev'] The output is: setenv: { ['SYMFONY_ENV dev'] } . However, if I change php7web.pp to: class profile::php7web ( $fff = hiera_hash('profile::php7web::apache_vhosts_defaults'), ) { notify { "$fff": } } The output is: { port: 80, setenv: ['SYMFONY_ENV dev'] }

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>