system-config/modules/openstack_project/files/puppetmaster/hiera.yaml
Spencer Krum 488231e444 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
2015-04-08 01:54:36 -07:00

17 lines
504 B
YAML

---
:hierarchy:
- 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