diff options
author | Dan Prince <dprince@redhat.com> | 2016-09-29 14:41:23 -0400 |
---|---|---|
committer | Dan Prince <dprince@redhat.com> | 2016-10-05 21:29:02 -0400 |
commit | 40a4ed0841789b8980e3161bd18490fb8b4bca7e (patch) | |
tree | 3b56e6accfdfb162c195e62bd0623a38e805b643 /hot/software-config/elements/heat-config-hiera/install.d/50-heat-config-hook-hiera | |
parent | 7c5aae183aabb3129fc90c60ccdaf5c1f17dd6ba (diff) | |
download | heat-templates-40a4ed0841789b8980e3161bd18490fb8b4bca7e.tar.gz |
A hook which writes hiera datafiles.
This patch creates a hook that writes hiera.yaml and datafiles
to disk. This approach works well for users (like TripleO)
who prefer to maintain Hiera in a more composable manner with
Heat structured config resources rather than specifying all
the Hiera values for each puppet config resource.
Partial-bug: #1596373
Change-Id: I21639f6aadabf9e49f40d1bb0b1d0edcfc4dbc5e
Diffstat (limited to 'hot/software-config/elements/heat-config-hiera/install.d/50-heat-config-hook-hiera')
-rwxr-xr-x | hot/software-config/elements/heat-config-hiera/install.d/50-heat-config-hook-hiera | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hot/software-config/elements/heat-config-hiera/install.d/50-heat-config-hook-hiera b/hot/software-config/elements/heat-config-hiera/install.d/50-heat-config-hook-hiera new file mode 100755 index 0000000..067e439 --- /dev/null +++ b/hot/software-config/elements/heat-config-hiera/install.d/50-heat-config-hook-hiera @@ -0,0 +1,9 @@ +#!/bin/bash +set -x + +SCRIPTDIR=$(dirname $0) + +install-packages hiera +install -D -g root -o root -m 0755 ${SCRIPTDIR}/hook-hiera.py /var/lib/heat-config/hooks/hiera + +ln -f -s /etc/puppet/hiera.yaml /etc/hiera.yaml |