Merge pull request #37 from SUNET/jocar-add-eyaml-to-hiera
Add support for eyaml in Hiera
This commit is contained in:
commit
abe0d28854
|
@ -1,21 +1,27 @@
|
||||||
|
# Hiera version 5 configuration
|
||||||
|
#
|
||||||
---
|
---
|
||||||
:backends:
|
version: 5
|
||||||
- yaml
|
defaults:
|
||||||
- gpg
|
datadir: /etc/hiera/data
|
||||||
|
data_hash: yaml_data
|
||||||
|
|
||||||
:logger: console
|
hierarchy:
|
||||||
|
- name: "Per-node data"
|
||||||
|
path: "local.yaml"
|
||||||
|
|
||||||
:hierarchy:
|
- name: "Per-group data"
|
||||||
- "%{env}/%{location}/%{calling_module}"
|
path: "group.yaml"
|
||||||
- "%{env}/%{calling_module}"
|
|
||||||
- local
|
|
||||||
- secrets.yaml
|
|
||||||
- common
|
|
||||||
|
|
||||||
|
- name: "Per-host secrets"
|
||||||
|
path: "local.eyaml"
|
||||||
|
lookup_key: eyaml_lookup_key
|
||||||
|
options:
|
||||||
|
pkcs7_private_key: /etc/hiera/eyaml/private_key.pkcs7.pem
|
||||||
|
pkcs7_public_key: /etc/hiera/eyaml/public_certkey.pkcs7.pem
|
||||||
|
|
||||||
:yaml:
|
- name: "Overrides per distribution"
|
||||||
:datadir: /etc/hiera/data
|
path: "dist_%{::lsbdistcodename}_override.yaml"
|
||||||
|
|
||||||
:gpg:
|
- name: "Data common to whole environment"
|
||||||
:datadir: /etc/hiera/data
|
path: "common.yaml"
|
||||||
:key_dir: /etc/hiera/gpg
|
|
Loading…
Reference in a new issue