blob: 0789de900855a71fc35d351494b7613aff25f64e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
================================================
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
|