Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Have a default hiera config that all the environments can inherit from#74

Open
davidoae wants to merge 4 commits intooaeproject:masterfrom
davidoae:addDefaultHiera
Open

Have a default hiera config that all the environments can inherit from#74
davidoae wants to merge 4 commits intooaeproject:masterfrom
davidoae:addDefaultHiera

Conversation

@davidoae
Copy link
Contributor

@davidoae davidoae commented Jun 5, 2015

It'd be useful if we could specify a default hiera config file that includes all the common set of options.

This can probably be achieved by adding a line in the hiera directory

:backends:
  - json
:json:
  :datadir: /etc/puppet/puppet-hilary/environments/%{::environment}/hiera
:hierarchy:
  - %{::clientcert}_hiera_secure
  - %{::clientcert}
  - %{nodetype}_hiera_secure
  - %{nodetype}
  - common_hiera_secure
  - common
  - default

Then we would add a symlink in each environment/hiera called default that is symlinked to a single file that contains all the common set of values.

@simong
Copy link
Contributor Author

simong commented Mar 12, 2015

Assigning to @davidoae.

Note that there might be a better way to do this using Puppet's directory environments.

@mrvisser
Copy link
Contributor

Would probably be good to rename common to environment or something then too

@davidoae
Copy link
Contributor

davidoae commented Jun 5, 2015

Changing to directory environments means restructuring the manifests, seems to be a fairly large task so I've not done it for now.
I don't think 'environment' is a good replacement for 'common' as it's a term puppet uses allot.
Maybe 'base'? TBH I think common is okay.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants