blob: d850bb75c0323223145ec0e1bb42efe861ec6106 (
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
heat_template_version: 2013-05-23
description: >
TOSCA simple profile with wordpress, web server and mysql on the same server.
parameters:
db_name:
type: string
description: The name of the database.
default: wordpress
db_user:
type: string
description: The user name of the DB user.
default: wp_user
db_pwd:
type: string
description: The WordPress database admin account password.
default: wp_pass
cpus:
type: number
description: Number of CPUs for the server.
default: 8
constraints:
- allowed_values:
- 1
- 2
- 4
- 8
db_root_pwd:
type: string
description: Root password for MySQL.
default: passw0rd
db_port:
type: number
description: Port for the MySQL database.
default: 3366
resources:
mysql_dbms_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: ../Scripts/MYSQLDBMS/install.sh
group: script
mysql_dbms_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mysql_dbms_create_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
mysql_dbms_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: ../Scripts/MYSQLDBMS/start.sh
group: script
mysql_dbms_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mysql_dbms_start_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- mysql_dbms_configure_deploy
mysql_dbms_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: ../Scripts/MYSQLDBMS/configure.sh
group: script
mysql_dbms_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mysql_dbms_configure_config
input_values:
db_root_password:
get_param: db_root_pwd
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- mysql_dbms_create_deploy
mysql_database_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: ../Scripts/MYSQLDatabase/configure.sh
group: script
mysql_database_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mysql_database_configure_config
input_values:
db_name:
get_param: db_name
db_password:
get_param: db_pwd
db_root_password:
get_param: db_root_pwd
db_user:
get_param: db_user
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- mysql_dbms_start_deploy
webserver_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: ../Scripts/WebServer/install.sh
group: script
webserver_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: webserver_create_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
webserver_start_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: ../Scripts/WebServer/start.sh
group: script
webserver_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: webserver_start_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- webserver_create_deploy
wordpress_create_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: ../Scripts/WordPress/install.sh
group: script
wordpress_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: wordpress_create_config
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- webserver_start_deploy
- mysql_database_configure_deploy
wordpress_configure_config:
type: OS::Heat::SoftwareConfig
properties:
config:
get_file: ../Scripts/WordPress/configure.sh
group: script
wordpress_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: wordpress_configure_config
input_values:
wp_db_name:
get_param: db_name
wp_db_password:
get_param: db_pwd
wp_db_user:
get_param: db_user
server:
get_resource: server
signal_transport: HEAT_SIGNAL
depends_on:
- wordpress_create_deploy
server:
type: OS::Nova::Server
properties:
flavor: m1.xlarge
image: fedora-amd64-heat-config
user_data_format: SOFTWARE_CONFIG
outputs:
website_url:
description: IP address for Wordpress wiki.
value:
get_attr:
- server
- networks
|