system-config/modules/openstack_project/files/puppet/hiera.yaml
Spencer Krum 4251332e97 Manage hiera.yaml on all hosts
When puppet apply runs on a host, it will need a hiera.yaml to inform
lookups with. Manage that in base.pp.

Change-Id: I61603bf2f8e1c11640c744a20377790cd217356d
2015-10-27 20:13:24 -07:00

30 lines
1.2 KiB
YAML

---
:hierarchy:
# Use private hieradata first
- "hieradata/%{::environment}/fqdn/%{::fqdn}"
- "hieradata/%{::environment}/group/%{group}" # no :: because group is set at nodescope
- "hieradata/%{::environment}/common"
# Use public hieradata second, also be environmentally aware
- "%{::environment}/hiera/fqdn/%{::fqdn}"
- "%{::environment}/hiera/group/%{group}" # no :: because group is set at nodescope
- "%{::environment}/hiera/common"
:backends:
- yaml
:yaml:
:datadir: "/opt/system-config/"
# File directory structure:
# Secret data:
# /opt/system-config/hieradata/
# /opt/system-config/hieradata/production
# /opt/system-config/hieradata/production/fqdn/afs01.openstack.org.yaml #highest priority
# /opt/system-config/hieradata/production/group/afs.yaml #middle priority
# /opt/system-config/hieradata/production/common.yaml #lowest priority
# Public data
# /opt/system-config/production
# /opt/system-config/production/hiera/fqdn/afs01.openstack.org.yaml #highest priority
# /opt/system-config/production/hiera/group/afs.yaml #middle priority
# /opt/system-config/production/hiera/common.yaml #lowest priority