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
↧