Hi all,

I'm playing with a new setup of puppet 3.2.3 and hiera 1.2.0 on an EL6 
server.

The puppet config is stored in a git repo (as per 
https://puppetlabs.com/blog/git-workflow-and-puppet-environments/*)*

I want to use a separate hiera.yaml file per environment, so in the 
puppet.conf, I have the following:

[master]
    hiera_config = /vagrant/puppetenv/*$environment*/hiera.yaml

    manifest   = /vagrant/puppetenv/$environment/manifests/site.pp
    modulepath = /vagrant/puppetenv/$environment/modules


For some reason, puppet keeps trying to look for the hiera.yaml file at: 
/vagrant/puppetent/*production*/hiera.yaml (confirmed via strace), 
regardless of which environment I use on the agent.
So it seems to be ignoring the $environment portion of the path.

I noticed there is a bug raised which seems related to this 
http://projects.puppetlabs.com/issues/11784

I know I could use a single hiera.yaml file across all environments, but 
this then makes hiera backend/hierarchy changes more difficult.

Is anybody able to clarify whether this should actually work or not?  The 
linked bug suggests that it will and/or it won't and/or it might. /confused

Thanks

James

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to