blob: cffb0441172ad6fe69ddd0c089d816e1c0a8da04 [file] [log] [blame]
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +03001---
2
Oleksii Butenko9bce99c2019-08-29 18:02:39 +03003heat_template_version: queens
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +03004
5description: MCP environment for heat-bm-cicd-pike-contrail-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: heat-bm-cicd-pike-contrail-sl.local
11 mcp_version:
12 type: string
13 env_name:
14 type: string
15 key_pair:
16 type: string
17 cfg_flavor:
18 type: string
19 vsrx_flavor:
20 type: string
21 foundation_image:
22 type: string
23 foundation_flavor:
24 type: string
25 bm_availability_zone:
26 type: string
27 control_subnet_cidr:
28 type: string
29 default: "10.6.0.0/24"
30 tenant_subnet_cidr:
31 type: string
32 default: "10.8.0.0/24"
33 external_subnet_cidr:
34 type: string
35 default: "10.9.0.0/24"
36 management_subnet_cidr:
37 type: string
Oleksii Butenko49655852019-08-01 15:40:58 +030038 default: "172.16.164.0/26"
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030039 management_subnet_cfg01_ip:
40 type: string
Oleksii Butenko49655852019-08-01 15:40:58 +030041 default: 172.16.164.2
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030042 management_subnet_gateway_ip:
43 type: string
Oleksii Butenko49655852019-08-01 15:40:58 +030044 default: 172.16.164.1
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030045 management_subnet_pool_start:
46 type: string
Oleksii Butenko49655852019-08-01 15:40:58 +030047 default: 172.16.164.3
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030048 management_subnet_pool_end:
49 type: string
Oleksii Butenko49655852019-08-01 15:40:58 +030050 default: 172.16.164.61
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030051 salt_master_control_ip:
52 type: string
53 default: 10.6.0.15
54
55resources:
56 subnets:
57 type: MCP::Subnets
58 properties:
59 stack_name: { get_param: "OS::stack_name" }
60 env_name: { get_param: env_name }
Oleksii Butenko49655852019-08-01 15:40:58 +030061 management_net: 'system-phys-2401'
62 control_net: 'system-phys-2404'
63 tenant_net: 'system-phys-2406'
64 external_net: 'system-phys-2403'
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030065 control_subnet_cidr: { get_param: control_subnet_cidr }
66 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
67 external_subnet_cidr: { get_param: external_subnet_cidr }
68 management_subnet_cidr: { get_param: management_subnet_cidr }
69 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
70 management_subnet_pool_start: { get_param: management_subnet_pool_start }
71 management_subnet_pool_end: { get_param: management_subnet_pool_end }
72
73 #flavors:
74 # type: MCP::Flavors
75
76 cfg01_node:
77 type: MCP::MasterNode
78 depends_on: [subnets]
79 properties:
80 env_name: { get_param: env_name }
81 mcp_version: { get_param: mcp_version }
82 cfg01_flavor: { get_param: cfg_flavor }
83 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko49655852019-08-01 15:40:58 +030084 management_net: 'system-phys-2401'
85 control_net: 'system-phys-2404'
86 tenant_net: 'system-phys-2406'
87 external_net: 'system-phys-2403'
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030088 salt_master_control_ip: { get_param: salt_master_control_ip }
89 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
90 tenant_net_static_ip:
91 list_join:
92 - '.'
93 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
94 external_net_static_ip:
95 list_join:
96 - '.'
97 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
98 instance_name: cfg01
99 instance_domain: {get_param: instance_domain}
100
101 foundation_node:
102 type: MCP::FoundationNode
103 depends_on: [subnets]
104 properties:
105 env_name: { get_param: env_name }
106 mcp_version: { get_param: mcp_version }
107 instance_domain: {get_param: instance_domain}
108 instance_name: foundation
109 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko49655852019-08-01 15:40:58 +0300110 management_net: 'system-phys-2401'
111 control_net: 'system-phys-2404'
112 tenant_net: 'system-phys-2406'
113 external_net: 'system-phys-2403'
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +0300114 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
115 instance_image: { get_param: foundation_image }
116 instance_flavor: {get_param: foundation_flavor}
117 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
118 management_net_static_ip:
119 list_join:
120 - '.'
Oleksii Butenko49655852019-08-01 15:40:58 +0300121 - [ { get_attr: [subnets, management_net_prefix] }, '62' ]
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +0300122 control_net_static_ip:
123 list_join:
124 - '.'
125 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
126 tenant_net_static_ip:
127 list_join:
128 - '.'
129 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
130 external_net_static_ip:
131 list_join:
132 - '.'
133 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
134 instance_config_host: { get_attr: [cfg01_node, instance_address] }
135
136 vsrx_node:
137 type: MCP::VsrxNode
138 depends_on: [cfg01_node]
139 properties:
140 env_name: { get_param: env_name }
141 mcp_version: { get_param: mcp_version }
142 instance_domain: {get_param: instance_domain}
143 instance_name: vsrx
144 instance_flavor: {get_param: vsrx_flavor}
145 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko49655852019-08-01 15:40:58 +0300146 management_net: 'system-phys-2401'
147 control_net: 'system-phys-2404'
148 tenant_net: 'system-phys-2406'
149 external_net: 'system-phys-2403'
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +0300150 instance_image: system_vsrx-12.1X46-D20.5
151 control_net_static_ip:
152 list_join:
153 - '.'
154 - [ { get_attr: [subnets, control_net_prefix] }, '220' ]
155 tenant_net_static_ip:
156 list_join:
157 - '.'
158 - [ { get_attr: [subnets, tenant_net_prefix] }, '220' ]
159 external_net_static_ip:
160 list_join:
161 - '.'
162 - [ { get_attr: [subnets, external_net_prefix] }, '220' ]
163 instance_config_host: { get_attr: [cfg01_node, instance_address] }
164
165outputs:
166 foundation_public_ip:
167 description: foundation node IP address (management)
168 value:
169 get_attr:
170 - foundation_node
171 - instance_address
172...