Skip to content

Instantly share code, notes, and snippets.

@fvoges
Last active August 13, 2018 08:37
Show Gist options
  • Select an option

  • Save fvoges/2806fa183f63b65ef6841a9d14b874f2 to your computer and use it in GitHub Desktop.

Select an option

Save fvoges/2806fa183f63b65ef6841a9d14b874f2 to your computer and use it in GitHub Desktop.
Hiera v5 example config
---
version: 5
defaults:
datadir: data
lookup_key: eyaml_lookup_key
options:
pkcs7_private_key: /etc/puppetlabs/secure/keys/private_key.pkcs7.pem
pkcs7_public_key: /etc/puppetlabs/secure/keys/public_key.pkcs7.pem
hierarchy:
- name: "Classifier Configuration Data"
data_hash: classifier_data
- name: "Node specific data"
path: "nodes/%{trusted.certname}.yaml"
- name: "Application specific data"
paths:
- "applications/%{facts.application}-%{facts.role}-%{facts.app_tier}.yaml"
- "applications/%{facts.application}-%{facts.role}.yaml"
- "applications/%{facts.application}.yaml"
- name: "Location specific data"
paths:
- "Location/%{facts.datacenter}.yaml"
- name: "Common data"
path: "common.yaml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment