From 35058651fcf1fa1132f97a2dbaeab6fe0c4572ae Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 18 Jun 2023 17:31:59 +1000 Subject: [PATCH] Updated environment setup * moved site.pp to manifests/site.pp * created hiera.yaml file * created hieradata/nodes directory, included in hiera.yaml --- environment.conf | 2 +- hiera.yaml | 8 ++++++++ site.pp => manifests/site.pp | 0 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 hiera.yaml rename site.pp => manifests/site.pp (100%) diff --git a/environment.conf b/environment.conf index 2a7a21c..4569646 100644 --- a/environment.conf +++ b/environment.conf @@ -1,2 +1,2 @@ -manifest = site.pp +manifest = manifests/site.pp modulepath = external_modules:site diff --git a/hiera.yaml b/hiera.yaml new file mode 100644 index 0000000..c5cad1d --- /dev/null +++ b/hiera.yaml @@ -0,0 +1,8 @@ +--- +version: 5 +defaults: + datadir: "hieradata" + data_hash: "yaml_data" +hierarchy: + - path: "nodes/%{trusted.certname}.yaml" # Node-specific data, overrides other levels. + - path: "common.yaml" # Common data shared across nodes. diff --git a/site.pp b/manifests/site.pp similarity index 100% rename from site.pp rename to manifests/site.pp