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

Evaluation Error while using the Hiera hash

$
0
0
Hi, I have the following values in my hiera yaml file: test::config_php::php_modules : -'soap' -'mcrypt' -'pdo' -'mbstring' -'php-process' -'pecl-memcache' -'devel' -'php-gd' -'pear' -'mysql' -'xml' and following is my test class: class test::config_php ( $php_version, $php_modules = hiera_hash('php_modules', {}), $module_name, ){ class { 'php': version => $php_version, } $php_modules.each |String $php_module| { php::module { $php_module: } } } While running my puppet manifests I get the following error: Error: Evaluation Error: Error while evaluating a Function Call, create_resources(): second argument must be a hash at /tmp/vagrant-puppet/modules-f38a037289f9864906c44863800dbacf/ssh/manifests/init.pp:46:3 on node testdays-1a.vagrant.loc.vag I am quite confused on what exactly am I doing wrong. My puppet version is 3.6.2 and I also have *parser = future* I would really appreciate any help here.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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