heat-agents/hot/software-config/elements
Pablo Caruana cc0b2ee68b Fix some typos
Change-Id: I87f3328a13767367e6ade54217a226f6b660975a
2017-01-04 16:57:10 +01:00
..
heat-config Correct perms of /var/run/heat-config/heat-config 2017-01-04 16:57:10 +01:00
heat-config-ansible Allow ansible inventory to be configurable 2017-01-04 16:57:10 +01:00
heat-config-cfn-init Use relative path for cfn-init 2017-01-04 16:57:10 +01:00
heat-config-chef Chef-Zero software config hook 2017-01-04 16:57:10 +01:00
heat-config-docker-compose Truncate docker-compose.yaml to zero bytes 2017-01-04 16:57:10 +01:00
heat-config-kubelet Add missing SCRIPTDIR variable 2017-01-04 16:57:10 +01:00
heat-config-puppet Fix some typos 2017-01-04 16:57:10 +01:00
heat-config-salt Fix some typos 2017-01-04 16:57:10 +01:00
heat-config-script Enable script hook to handle Json input 2017-01-04 16:57:10 +01:00
README.rst Fix example of image building for heat 2017-01-04 16:57:10 +01: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 \
  heat-config-ansible \
  heat-config-cfn-init \
  heat-config-docker-compose \
  heat-config-kubelet \
  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