blob: f0f70218637bab85db8c5498130dddb454c1a9cd (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
heat_template_version: 2013-05-23
description: >
TOSCA template to test usage of different script types like Ansible and Puppet
one.
parameters: {}
resources:
customwebserver2_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: customwebserver2_create_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
customwebserver_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: customwebserver_create_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
server:
type: OS::Nova::Server
properties:
flavor: m1.small
image: ubuntu-12.04-software-config-os-init
user_data_format: SOFTWARE_CONFIG
software_config_transport: POLL_SERVER_HEAT
customwebserver2_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: start.sh
group: script
customwebserver2_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: customwebserver2_start_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- customwebserver2_configure_deploy
customwebserver2_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: install.sh
group: script
customwebserver2_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: configure.py
group: script
customwebserver2_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: customwebserver2_configure_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- customwebserver2_create_deploy
customwebserver_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: start.pp
group: puppet
customwebserver_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: customwebserver_start_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- customwebserver_configure_deploy
customwebserver_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: install.yaml
group: ansible
customwebserver_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: configure.yml
group: ansible
customwebserver_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: customwebserver_configure_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- customwebserver_create_deploy
outputs: {}
|