heat-templates/hot/software-config/boot-config
Steve Baker 426b924c41 Boot config for installing software-config agent
This defines environment files which each declare a resource type
Heat::InstallConfigAgent.

This can be used by server user_data when booting a pristine image
to install the agent required use software deployment resources in
templates.

This template can be run with downloadable Fedora images from
http://fedoraproject.org/en/get-fedora#clouds

or Ubuntu images from https://cloud-images.ubuntu.com/

Tested with Fedora-x86_64-20-20140618-sda (yum and pip)
and trusty-server-cloudimg-amd64-disk1 (pip)

Change-Id: I654561719b88c7e2a548ff6db406dd0caf3e8489
2015-03-04 10:21:03 +13:00
..
templates Boot config for installing software-config agent 2015-03-04 10:21:03 +13:00
README.rst Boot config for installing software-config agent 2015-03-04 10:21:03 +13:00
fedora_pip_env.yaml Boot config for installing software-config agent 2015-03-04 10:21:03 +13:00
fedora_yum_env.yaml Boot config for installing software-config agent 2015-03-04 10:21:03 +13:00
none_env.yaml Boot config for installing software-config agent 2015-03-04 10:21:03 +13:00
ubuntu_pip_env.yaml Boot config for installing software-config agent 2015-03-04 10:21:03 +13:00

README.rst

Boot config for installing software-config agent

This directory has environment files which each declare a resource type Heat::InstallConfigAgent.

This can be used by server user_data when booting a pristine image to install the agent required to use software deployment resources in templates.

The environments only install the heat-config-script hook. If other hooks are required then define your own environment file which defines a resource template based on one of the templates in template/

To install the agent during boot, include the following in the template:

boot_config:

type: Heat::InstallConfigAgent

server:

type: OS::Nova::Server properties: user_data_format: SOFTWARE_CONFIG user_data: {get_attr: [boot_config, config]} # ...

When creating the stack, reference the desired environment, eg:

heat stack-create -e fedora_yum_env.yaml -f ../example-templates/example-config-pristine-image.yaml deploy-to-pristine