6d2659b468
The splay option was added in I88f623c9e8db9ed4a186918206a63faec8f7f673 but was missing a trailing } which leads to parse errors. This fixes the parse errors. Change-Id: Ic5783220f5d027e0bde0080f50f9e10cbb68289f Closes-Bug: #1686455 |
||
---|---|---|
.. | ||
templates | ||
centos7_rdo_env.yaml | ||
container_agent_env.yaml | ||
fedora_pip_env.yaml | ||
fedora_yum_env.yaml | ||
none_env.yaml | ||
README.rst | ||
test_image_env.yaml | ||
ubuntu_pip_env.yaml |
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:
openstack stack create -e fedora_yum_env.yaml -t ../example-templates/example-config-pristine-image.yaml deploy-to-pristine
Boot config with heat-container-agent
When creating the stack to deploy containers with docker-compose, 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]} # ...
and reference the desired environment, eg:
openstack stack create -e container_agent_env.yaml -t ../example-templates/example-pristine-atomic-docker-compose.yaml deploy-to-pristine