-
Notifications
You must be signed in to change notification settings - Fork 0
/
hot_cms_ifca.yaml
464 lines (462 loc) · 13.6 KB
/
hot_cms_ifca.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
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
heat_template_version: 2013-05-23
description: >
TOSCA example for specifying a Mesos Cluster
parameters:
iam_token:
type: string
default: my_token
cms_stageoutsite:
type: string
default: T1_IT_CNAF_Disk
cms_local_site:
type: string
default: T3_IT_Opportunistic_pg
cms_stageoutprefix_fallback:
type: string
default: DUMMY
cms_stageoutsite_fallback:
type: string
default: DUMMY
monitordb_ip:
type: string
default: 193.205.222.247:8080
cms_stageoutserver:
type: string
default: storm-fe-cms.cr.cnaf.infn.it
iam_client_id:
type: string
default: myclient_id
cms_stageoutserver_fallback:
type: string
default: DUMMY
cms_stageoutprefix:
type: string
default: srm://storm-fe-cms.cr.cnaf.infn.it:8444/srm/managerv2?SFN=/cmsdisk/
elasticsearch_secret:
type: string
default: 5z0O87gnSf
iam_client_secret:
type: string
default: myclient_secret
resources:
mesos-master-server:
type: OS::Nova::Server
properties:
flavor: m1.large
user_data_format: SOFTWARE_CONFIG
image: ubuntu16-heat-ifca
networks:
- network: 2b729f05-cda2-4316-bab6-4247aa06d708
mesos_slave_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
input_values:
front_end_ip:
get_attr:
- mesos-master-server
- networks
- private
- 0
enable_nfs_share:
get_property:
- SELF
- enable_nfs_share
mesos_masters_list_ips:
get_attr:
- mesos-master-server
- networks
- private
- 0
config:
get_resource: mesos_slave_create_config
server:
get_resource: mesos-slave-server
depends_on:
- mesos-slave-server_configure_deploy
mesos-slave-server:
type: OS::Nova::Server
properties:
flavor: m1.medium
user_data_format: SOFTWARE_CONFIG
image: ubuntu16-heat-ifca
networks:
- network: 2b729f05-cda2-4316-bab6-4247aa06d708
mesos_load_balancer_create_deploy:
type: OS::Heat::SoftwareDeployment
properties:
input_values:
consul_server_ips:
get_attr:
- mesos-master-server
- networks
- private
- 0
marathon_password: test_pass
marathon_username: admin
config:
get_resource: mesos_load_balancer_create_config
server:
get_resource: mesos-lb-server
depends_on:
- mesos-lb-server_configure_deploy
cms_services_start_deploy:
type: OS::Heat::SoftwareDeployment
properties:
input_values:
cms_config_proxycache_host:
get_attr:
- mesos-lb-server
- networks
- private
- 0
cms_config_squid_image: spiga/frontiersquidv1
cms_config_iam_client_id:
get_param: iam_client_id
cms_config_cms_local_site:
get_param: cms_local_site
cms_config_iamtoken:
get_param: iam_token
marathon_user: admin
marathon_pass: test_pass
cms_config_wn_image: spiga/cmswn
cms_config_mysquid_host:
get_attr:
- mesos-lb-server
- networks
- private
- 0
cms_config_iam_client_secret:
get_param: iam_client_secret
cms_config_proxycache_image: spiga/ttscache
config:
get_resource: cms_services_start_config
server:
get_resource: mesos-master-server
depends_on:
- cms_services_install_roles_deploy
- mesos_master_configure_deploy
cms_wn_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
input_values:
cms_config_proxycache_host:
get_attr:
- mesos-lb-server
- networks
- private
- 0
cms_config_stageoutserver:
get_param: cms_stageoutserver
cms_config_cms_local_site:
get_param: cms_local_site
monitordb_ip:
get_param: monitordb_ip
cms_config_stageoutprefix_fallback:
get_param: cms_stageoutprefix_fallback
cms_config_stageoutserver_fallback:
get_param: cms_stageoutserver_fallback
cms_config_stageoutprefix:
get_param: cms_stageoutprefix
cms_config_mysquid_host:
get_attr:
- mesos-lb-server
- networks
- private
- 0
cms_config_elastic_secret:
get_param: elasticsearch_secret
cms_config_stageoutsite:
get_param: cms_stageoutsite
cms_config_stageoutsite_fallback:
get_param: cms_stageoutsite_fallback
config:
get_resource: cms_wn_configure_config
server:
get_resource: mesos-slave-server
depends_on:
- cms_wn_install_roles_deploy
- mesos_slave_create_deploy
mesos_master_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
input_values:
chronos_user: admin
marathon_enable_ssl: true
chronos_pass: test_pass
enable_chronos: true
chronos_enable_ssl: true
marathon_user: admin
marathon_pass: test_pass
wn_ips:
get_property:
- SELF
- wn_ips
enable_nfs_share:
get_property:
- SELF
- enable_nfs_share
mesos_masters_list_ips:
get_attr:
- mesos-master-server
- networks
- private
- 0
config:
get_resource: mesos_master_configure_config
server:
get_resource: mesos-master-server
depends_on:
- mesos_master_install_roles_deploy
- mesos-master-server_configure_deploy
mesos-lb-server:
type: OS::Nova::Server
properties:
flavor: m1.medium
user_data_format: SOFTWARE_CONFIG
image: ubuntu16-heat-ifca
networks:
- network: 2b729f05-cda2-4316-bab6-4247aa06d708
mesos-master-server_configure_config:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
config:
get_file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/zabbix/zabbix_agent_install.yml
mesos-master-server_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
input_values:
zabbix_server_metadata: Linux 668c875e-9a39-4dc0-a710-17c41376c1e0
zabbix_server_port: 10051
zabbix_server: orchestrator.cloud.cnaf.infn.it
config:
get_resource: mesos-master-server_configure_config
server:
get_resource: mesos-master-server
depends_on:
- mesos-master-server_install_roles_deploy
mesos-master-server_install_roles_config:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
ansible-galaxy install indigo-dc.zabbix-agent
mesos-master-server_install_roles_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mesos-master-server_install_roles_config
server:
get_resource: mesos-master-server
mesos_slave_create_config:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
config:
get_file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mesos/mesos_slave_install.yml
mesos_slave_install_roles_config:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
ansible-galaxy install indigo-dc.docker
ansible-galaxy install indigo-dc.consul
ansible-galaxy install indigo-dc.nfs
ansible-galaxy install indigo-dc.mesos
mesos_slave_install_roles_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mesos_slave_install_roles_config
server:
get_resource: mesos-slave-server
mesos-slave-server_configure_config:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
config:
get_file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/zabbix/zabbix_agent_install.yml
mesos-slave-server_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
input_values:
zabbix_server_metadata: Linux 668c875e-9a39-4dc0-a710-17c41376c1e0
zabbix_server_port: 10051
zabbix_server: orchestrator.cloud.cnaf.infn.it
config:
get_resource: mesos-slave-server_configure_config
server:
get_resource: mesos-slave-server
depends_on:
- mesos-slave-server_install_roles_deploy
mesos-slave-server_install_roles_config:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
ansible-galaxy install indigo-dc.zabbix-agent
mesos-slave-server_install_roles_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mesos-slave-server_install_roles_config
server:
get_resource: mesos-slave-server
mesos_load_balancer_create_config:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
config:
get_file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mesos/mesos_lb_install.yml
mesos_load_balancer_install_roles_config:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
ansible-galaxy install indigo-dc.docker
ansible-galaxy install indigo-dc.consul
ansible-galaxy install indigo-dc.marathon-lb
mesos_load_balancer_install_roles_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mesos_load_balancer_install_roles_config
server:
get_resource: mesos-lb-server
cms_services_start_config:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
config:
get_file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mesos/cms_services_start.yml
cms_services_install_roles_config:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
ansible-galaxy install indigo-dc.cms_config
cms_services_install_roles_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: cms_services_install_roles_config
server:
get_resource: mesos-master-server
cms_wn_configure_config:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
config:
get_file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mesos/cms_wn_configure.yml
cms_wn_install_roles_config:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
ansible-galaxy install indigo-dc.cms_config
cms_wn_install_roles_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: cms_wn_install_roles_config
server:
get_resource: mesos-slave-server
mesos_master_configure_config:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
config:
get_file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mesos/mesos_master_install.yml
mesos_master_install_roles_config:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
ansible-galaxy install indigo-dc.consul
ansible-galaxy install indigo-dc.marathon
ansible-galaxy install indigo-dc.docker
ansible-galaxy install indigo-dc.zookeeper
ansible-galaxy install indigo-dc.mesos
ansible-galaxy install indigo-dc.nfs
ansible-galaxy install indigo-dc.chronos
mesos_master_install_roles_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mesos_master_install_roles_config
server:
get_resource: mesos-master-server
mesos-lb-server_configure_config:
type: OS::Heat::SoftwareConfig
properties:
group: ansible
config:
get_file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/zabbix/zabbix_agent_install.yml
mesos-lb-server_configure_deploy:
type: OS::Heat::SoftwareDeployment
properties:
input_values:
zabbix_server_metadata: Linux 668c875e-9a39-4dc0-a710-17c41376c1e0
zabbix_server_port: 10051
zabbix_server: orchestrator.cloud.cnaf.infn.it
config:
get_resource: mesos-lb-server_configure_config
server:
get_resource: mesos-lb-server
depends_on:
- mesos-lb-server_install_roles_deploy
mesos-lb-server_install_roles_config:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
ansible-galaxy install indigo-dc.zabbix-agent
mesos-lb-server_install_roles_deploy:
type: OS::Heat::SoftwareDeployment
properties:
config:
get_resource: mesos-lb-server_install_roles_config
server:
get_resource: mesos-lb-server
outputs:
mesos_endpoint:
value:
str_replace:
params:
$s2: :5050
$s0: http://
$s1:
get_attr:
- mesos-master-server
- networks
- private
- 0
template: $s0$s1$s2
mesos_lb_ip:
value:
get_attr:
- mesos-lb-server
- networks
- private
- 0
marathon_endpoint:
value:
str_replace:
params:
$s2: :8080
$s0: http://
$s1:
get_attr:
- mesos-master-server
- networks
- private
- 0
template: $s0$s1$s2