From eb5ecc4fcad6bd4f75e38683ae12a8dba4382c0b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Jun 2020 15:20:59 -0300 Subject: Hiera: use facts variable --- config/hiera.yaml | 18 +++++++++--------- 1 file 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" -- cgit v1.2.3