Ask Your Question
0

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

asked 2018-08-27 08:03:18 -0600

louis gravatar image

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/puppe...

edit retag flag offensive close merge delete

Comments

https://github.com/puppetlabs/beaker-puppet/pull/63

louis gravatar imagelouis ( 2018-08-27 10:27:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-11 12:49:43 -0600

louis gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-08-27 08:03:18 -0600

Seen: 25 times

Last updated: Sep 11