Setup hiera lookups to do common,group,fqdn

Before we start having ansible copy smaller hiera files around, we
need to be able to split common.yaml into smaller files and continue to
use our current structure. Configure hiera to look at group and fqdn
files in addition to common.

Change-Id: I32bf69f80c748668ca218a7a326c5737ec81fa7f
This commit is contained in:
Spencer Krum 2015-03-16 12:56:35 -07:00
parent 88aa79beb0
commit 488231e444

View File

@ -1,8 +1,16 @@
---
:hierarchy:
- "%{::operatingsystem}"
- fqdn/"%{::fqdn}"
- group/"%{group}" # no :: because group is set at nodescope
- common
:backends:
- yaml
:yaml:
:datadir: "/etc/puppet/hieradata/%{environment}"
# File directory structure
# /etc/puppet/hieradata/production/
# /etc/puppet/hieradata/production/fqdn/afs01.openstack.org.yaml #highest priority
# /etc/puppet/hieradata/production/group/afs.yaml #middle priority
# /etc/puppet/hieradata/production/common.yaml #lowest priority