aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/hiera.yaml18
1 files changed, 9 insertions, 9 deletions
diff --git a/config/hiera.yaml b/config/hiera.yaml
index c52eeb3..14e393d 100644
--- a/config/hiera.yaml
+++ b/config/hiera.yaml
@@ -11,7 +11,7 @@ hierarchy:
# We also recommend to leave only encrypted data in your hiera config.
#
- name: "encrypted secrets"
- path: "secrets/node/%{::fqdn}.yaml"
+ path: "secrets/node/%{facts.fqdn}.yaml"
lookup_key: eyaml_lookup_key
options:
# If using the pkcs7 encryptor (default)
@@ -20,19 +20,19 @@ hierarchy:
- name: "regular secrets"
paths:
- - "secrets/role/%{::role}.yaml"
- - "secrets/location/%{::location}.yaml"
- - "secrets/domain/%{::domain}.yaml"
+ - "secrets/role/%{facts.role}.yaml"
+ - "secrets/location/%{facts.location}.yaml"
+ - "secrets/domain/%{facts.domain}.yaml"
#
# All other stuff goes in regular YAML files.
#
- name: "public"
paths:
- - "node/%{::fqdn}.yaml"
- - "role/%{::role}.yaml"
- - "virtual/%{::virtual}.yaml"
- - "location/%{::location}.yaml"
- - "domain/%{::domain}.yaml"
+ - "node/%{facts.fqdn}.yaml"
+ - "role/%{facts.role}.yaml"
+ - "virtual/%{facts.virtual}.yaml"
+ - "location/%{facts.location}.yaml"
+ - "domain/%{facts.domain}.yaml"
- "compiled.yaml"
- "common.yaml"