-
Notifications
You must be signed in to change notification settings - Fork 0
/
vsa.yml
104 lines (86 loc) · 2.46 KB
/
vsa.yml
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
heat_template_version: 2015-04-30
description: template to deploy a 3 compute instance for vSA
parameters:
key_name:
type: string
label: Key Name
description: Name of key-pair to be used for compute instance
default: son-ift-ptin
sec_grp:
type: string
label: Security Group
description: SSH, HTTP, HTTPS, 8080, 3821
constraints:
- allowed_values: [ qual-secgrp, jk, squid, ssh, www ]
default: qual-secgrp
image_id:
type: string
label: Image ID
description: Image to be used for compute instance
constraints:
- allowed_values: [ centos7-cldimg, trusty-cldimg, xenial-cldimg ]
default: xenial-cldimg
flavor:
type: string
label: Instance Type
description: Type of instance (flavor) to be used
constraints:
- allowed_values: [ m1.small, m1.medium, m1.large, m1.xlarge ]
default: m1.small
resources:
fe_fip:
type: OS::Nova::FloatingIP
properties:
pool: admin_floating_net
fe_fip_attrib:
type:
OS::Nova::FloatingIPAssociation
properties:
floating_ip: { get_resource: fe_fip }
server_id: { get_resource: fe01fw-haprx }
DB_Vol_Snort:
type: OS::Cinder::Volume
properties:
size: 22
DB_Vol_Squid:
type: OS::Cinder::Volume
properties:
size: 23
fe01fw-haprx:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image_id }
flavor: { get_param: flavor }
security_groups:
- { get_param: sec_grp }
be02ddos-mitigate:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image_id }
flavor: { get_param: flavor }
security_groups:
- { get_param: sec_grp }
be03parental-ctrl:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image_id }
flavor: { get_param: flavor }
security_groups:
- { get_param: sec_grp }
DB_VolSnort_att:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid: { get_resource: be02ddos-mitigate }
volume_id: { get_resource: DB_Vol_Snort }
DB_VolSquid_att:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid: { get_resource: be03parental-ctrl }
volume_id: { get_resource: DB_Vol_Squid }
outputs:
instance_ip:
description: The IP address of the deployed instance
value: { get_attr: [fe01fw-haprx, first_address] }