diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-06-18 15:20:59 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-06-18 15:20:59 -0300 |
commit | eb5ecc4fcad6bd4f75e38683ae12a8dba4382c0b (patch) | |
tree | a043a9c3caac740cf61313d04d9d84280a44f30f | |
parent | 319b960e0a093dd2909bf1d06b6ef1bf17b94aca (diff) | |
download | puppet-bootstrap-eb5ecc4fcad6bd4f75e38683ae12a8dba4382c0b.tar.gz puppet-bootstrap-eb5ecc4fcad6bd4f75e38683ae12a8dba4382c0b.tar.bz2 |
Hiera: use facts variable
-rw-r--r-- | config/hiera.yaml | 18 |
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" |