From 8255eecc9b2b3ffb9df96a75305d5d4c28187b1f Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Thu, 25 Feb 2016 22:39:30 +0100 Subject: [PATCH] Fix hiera paths when configuring puppet The path to hiera was wrong, as long with the subdirectories Change-Id: I66873aa63fe6bb4ab68b5be7ae14a06479c5bfbc --- defaults/main.yml | 2 +- templates/hiera.yaml.j2 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 9f751a1..622135b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,5 +12,5 @@ puppet_data_binding_terminus: hiera puppet_reports: store puppet_basemodulepath: '$confdir/modules:/usr/share/puppet/modules' puppet_environmentpath: '$confdir/environments' -puppet_hiera_datadir: '/etc/puppet/hieradata' +puppet_hiera_datadir: '/opt/system-config/' puppet_environment: production diff --git a/templates/hiera.yaml.j2 b/templates/hiera.yaml.j2 index 24601bb..f2f9b13 100644 --- a/templates/hiera.yaml.j2 +++ b/templates/hiera.yaml.j2 @@ -5,9 +5,9 @@ - "hieradata/%{::environment}/group/%{group}" # no :: because group is set at nodescope - "hieradata/%{::environment}/common" # Use public hieradata second, also be environmentally aware - - "%{::environment}/fqdn/%{::fqdn}" - - "%{::environment}/group/%{group}" # no :: because group is set at nodescope - - "%{::environment}/common" + - "%{::environment}/hiera/fqdn/%{::fqdn}" + - "%{::environment}/hiera/group/%{group}" # no :: because group is set at nodescope + - "%{::environment}/hiera/common" :backends: - yaml :yaml: