hiera.yaml kommer

This commit is contained in:
Gloria Treider 2020-10-02 17:09:02 +02:00
parent a67a49e01b
commit 0a7983f17c

View File

@ -1,12 +1,21 @@
--- ---
version: 5 version: 5
defaults: defaults: # Used for any hierarchy level that omits these keys.
datadir: "data" datadir: data # This path is relative to hiera.yaml's directory.
data_hash: yaml_data # Use the built-in YAML backend.
hierarchy: hierarchy:
- name: "Yaml backend" - name: "osfamily/major release"
data_hash: yaml_data
paths: paths:
- "nodes/%{trusted.certname}.yaml" # Used to distinguish between Debian and Ubuntu
- "common.yaml" - "os/%{facts.os.name}/%{facts.os.release.major}.yaml"
- "os/%{facts.os.family}/%{facts.os.release.major}.yaml"
# Used for Solaris
- "os/%{facts.os.family}/%{facts.kernelrelease}.yaml"
- name: "osfamily"
paths:
- "os/%{facts.os.name}.yaml"
- "os/%{facts.os.family}.yaml"
- name: 'common'
path: 'common.yaml'