heat-templates/hot/software-config/elements
Steve Baker c055d5bdea Use relative path for cfn-init
/opt/aws/bin is a non standard path, so just assume that cfn-init
is in PATH, which it always is, no matter how it is installed.

Change-Id: I9f261fa885da4b9747e7be204b19127f3aad2ecf
2015-02-27 12:40:35 +13:00
..
heat-config heat-config-notify support deploy_signal_verb 2015-02-18 11:27:55 +13:00
heat-config-ansible Make hook elements depend on heat-config 2014-10-22 15:04:53 -04:00
heat-config-cfn-init Use relative path for cfn-init 2015-02-27 12:40:35 +13:00
heat-config-docker Write docker operations log to deploy_stdout/stderr 2014-12-29 17:32:32 +13:00
heat-config-puppet heat-config-puppet: support hiera 2014-12-11 15:29:29 -05:00
heat-config-salt Make hook elements depend on heat-config 2014-10-22 15:04:53 -04:00
heat-config-script Enable script hook to handle Json input 2014-11-21 13:05:21 +08:00
README.rst Merge "Add in-instance docker software config hook" 2014-11-13 20:54:55 +00:00

README.rst

Software configuration hooks

This directory contains diskimage-builder elements to build an image which contains the software configuration hook required to use your preferred configuration method.

These elements depend on some elements found in the tripleo-image-elements repository. These elements will build an image which uses os-collect-config, os-refresh-config, and os-apply-config together to invoke a hook with the supplied configuration data, and return any outputs back to heat.

When building an image only the elements for the preferred configuration methods are required. The heat-config element is automatically included as a dependency.

An example fedora based image containing all hooks can be built and uploaded to glance with the following:

git clone https://git.openstack.org/openstack/diskimage-builder.git
git clone https://git.openstack.org/openstack/tripleo-image-elements.git
git clone https://git.openstack.org/openstack/heat-templates.git
git clone https://git.openstack.org/openstack/dib-utils.git
export PATH="${PWD}/dib-utils/bin:$PATH"
export ELEMENTS_PATH=tripleo-image-elements/elements:heat-templates/hot/software-config/elements
diskimage-builder/bin/disk-image-create vm \
  fedora selinux-permissive \
  os-collect-config \
  os-refresh-config \
  os-apply-config \
  heat-config-ansible \
  heat-config-cfn-init \
  heat-config-docker \
  heat-config-puppet \
  heat-config-salt \
  heat-config-script \
  -o fedora-software-config.qcow2
glance image-create --disk-format qcow2 --container-format bare --name fedora-software-config < \
  fedora-software-config.qcow2