Ask Your Question

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'

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.

edit retag flag offensive close merge delete


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

1 Answer

Sort by ยป oldest newest most voted

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


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

Seen: 34 times

Last updated: Sep 11