forked from NeCTAR-RC/heat-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_config_agent_ubuntu_pip.yaml
47 lines (40 loc) · 1.41 KB
/
install_config_agent_ubuntu_pip.yaml
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
# http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#heat-template-version
heat_template_version: 2014-10-16
resources:
install_python_build_env:
type: "OS::Heat::SoftwareConfig"
properties:
group: ungrouped
config: {get_file: fragments/install_python_build_env_apt.sh}
install_config_agent_pip:
type: "OS::Heat::SoftwareConfig"
properties:
group: ungrouped
config: {get_file: fragments/install_config_agent_pip.sh}
configure_config_agent:
type: "OS::Heat::SoftwareConfig"
properties:
group: ungrouped
config:
str_replace:
params:
$heat_config_script: {get_file: fragments/55-heat-config}
$hook_script: {get_file: fragments/hook-script.py}
$heat_config_notify: {get_file: fragments/heat-config-notify}
template: {get_file: fragments/configure_config_agent.sh}
start_config_agent:
type: "OS::Heat::SoftwareConfig"
properties:
group: ungrouped
config: {get_file: fragments/start_config_agent.sh}
install_config_agent:
type: "OS::Heat::MultipartMime"
properties:
parts:
- config: {get_resource: install_python_build_env}
- config: {get_resource: install_config_agent_pip}
- config: {get_resource: configure_config_agent}
- config: {get_resource: start_config_agent}
outputs:
config:
value: {get_resource: install_config_agent}