heat-templates/hot/software-config/elements
ricolin 20fb0efa11 Deprecate hooks in heat-templates
We already create repository `heat-agents` for hooks and will keep
maintain hooks there, so we should deprecate all hooks in
heat-templates and plan to remove it in futuer.

Change-Id: Ie2d89d5bab7db2bc6a2e171dc455098811519440
2018-02-07 16:50:34 +08:00
..
heat-config Fix undefined basestring and unicode in py35 2017-07-08 03:47:08 +00:00
heat-config-ansible Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-apply-config Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-cfn-init Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-chef Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-docker-cmd Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-docker-compose Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-hiera Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-json-file Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-kubelet Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-puppet Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-salt Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
heat-config-script Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00
README.rst Deprecate hooks in heat-templates 2018-02-07 16:50:34 +08:00

README.rst

Software configuration hooks

Warning

All hooks (heat agents) in heat-templates repository are deprecated, please use hooks in heat-agents https://git.openstack.org/cgit/openstack/heat-agents instead. Here is document entry for heat-agents: https://docs.openstack.org/heat-agents/latest/

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
openstack image create --disk-format qcow2 --container-format bare fedora-software-config < \
  fedora-software-config.qcow2