Accessing information from our domain name convention.
Parses trusted[certname]
fact for site information.
In your main manifest site.pp
:
$customer = domain::customer()
$site = domain::site()
You can then use the current customer in your heira.yaml
:
hierarchy:
- name: "Eyaml backend"
lookup_key: eyaml_lookup_key
paths:
- "%{customer}/%{site}/%{trusted.hostname}.yaml"
- "%{customer}/%{site}.yaml"
- "%{customer}/common.yaml"
- "%{facts.architecture}.yaml"
- "common.yaml"