Files
heat-templates/hot/software-config/elements/heat-config-script/install.d/50-heat-config-hook-script
Steve Baker 12090cd6de Software config hook to provision using shell scripts
Deployment input values are mapped to shell environment variables.
Scripts can write output values to $heat_outputs_path.{output_name}
These output values will be signalled back to heat, making these
values available to the stack, and placing that deployment resource in a
COMPLETE state.

The example template demonstrates deploying a single config with more
that one deployment resource, each with different input values.

The only reason this is the first hook to be authored is because
a script is a "configuration tool" which requires no tooling to
set up.

Closes-Bug: #1279064

Change-Id: Ib297957ad0f89e34b7930ba97886116bff1e313c
2014-04-29 09:40:08 +12:00

7 lines
142 B
Bash
Executable File

#!/bin/bash
set -x
SCRIPTDIR=$(dirname $0)
install -D -g root -o root -m 0755 ${SCRIPTDIR}/hook-script.py /var/lib/heat-config/hooks/script