aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-06-18 15:20:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-06-18 15:20:59 -0300
commiteb5ecc4fcad6bd4f75e38683ae12a8dba4382c0b (patch)
treea043a9c3caac740cf61313d04d9d84280a44f30f
parent319b960e0a093dd2909bf1d06b6ef1bf17b94aca (diff)
downloadpuppet-bootstrap-eb5ecc4fcad6bd4f75e38683ae12a8dba4382c0b.tar.gz
puppet-bootstrap-eb5ecc4fcad6bd4f75e38683ae12a8dba4382c0b.tar.bz2
Hiera: use facts variable
-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"