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

How can I pass the hiera_config argument to my beaker acceptance test?

$
0
0
I am trying to run puppet apply with hiera argument. So far, I have my **spec_helper_acceptance.rb** with this code. hosts.each do |host| on host, puppet('module', 'install', 'puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] } scp_to(host,'./data','/tmp/data' ) host[:hieradatadir] = '/tmp/data' write_hiera_config_on(host,['common','%{osfamily}']) end I would like call the apply_manifest function and to pass the hiera_config location apply_manifest(pp,{:hiera_config => '/etc/puppetlabs/puppet/hiera.yaml', :catch_failures => true}) But it seems that the hiera_config configuration attribute is not supported. https://www.rubydoc.info/github/puppetlabs/beaker-puppet/Beaker/DSL/Helpers/PuppetHelpers#apply_manifest-instance_method

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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