blob: e11335fc117467929345fb99214d273053636afd [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
Hanna Arhipovaeace7332021-02-11 15:15:29 +020054 deploy_empty_node:
55 type: boolean
56 default: False
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030057
58resources:
59 subnets:
60 type: MCP::Subnets
61 properties:
62 stack_name: { get_param: "OS::stack_name" }
63 env_name: { get_param: env_name }
Oleksii Butenko49655852019-08-01 15:40:58 +030064 management_net: 'system-phys-2401'
65 control_net: 'system-phys-2404'
66 tenant_net: 'system-phys-2406'
67 external_net: 'system-phys-2403'
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030068 control_subnet_cidr: { get_param: control_subnet_cidr }
69 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
70 external_subnet_cidr: { get_param: external_subnet_cidr }
71 management_subnet_cidr: { get_param: management_subnet_cidr }
72 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
73 management_subnet_pool_start: { get_param: management_subnet_pool_start }
74 management_subnet_pool_end: { get_param: management_subnet_pool_end }
75
76 #flavors:
77 # type: MCP::Flavors
78
79 cfg01_node:
80 type: MCP::MasterNode
81 depends_on: [subnets]
82 properties:
83 env_name: { get_param: env_name }
84 mcp_version: { get_param: mcp_version }
85 cfg01_flavor: { get_param: cfg_flavor }
86 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko49655852019-08-01 15:40:58 +030087 management_net: 'system-phys-2401'
88 control_net: 'system-phys-2404'
89 tenant_net: 'system-phys-2406'
90 external_net: 'system-phys-2403'
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030091 salt_master_control_ip: { get_param: salt_master_control_ip }
92 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
93 tenant_net_static_ip:
94 list_join:
95 - '.'
96 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
97 external_net_static_ip:
98 list_join:
99 - '.'
100 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
101 instance_name: cfg01
102 instance_domain: {get_param: instance_domain}
103
104 foundation_node:
105 type: MCP::FoundationNode
106 depends_on: [subnets]
107 properties:
108 env_name: { get_param: env_name }
109 mcp_version: { get_param: mcp_version }
110 instance_domain: {get_param: instance_domain}
111 instance_name: foundation
112 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko49655852019-08-01 15:40:58 +0300113 management_net: 'system-phys-2401'
114 control_net: 'system-phys-2404'
115 tenant_net: 'system-phys-2406'
116 external_net: 'system-phys-2403'
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +0300117 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
118 instance_image: { get_param: foundation_image }
119 instance_flavor: {get_param: foundation_flavor}
120 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
121 management_net_static_ip:
122 list_join:
123 - '.'
Oleksii Butenko49655852019-08-01 15:40:58 +0300124 - [ { get_attr: [subnets, management_net_prefix] }, '62' ]
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +0300125 control_net_static_ip:
126 list_join:
127 - '.'
128 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
129 tenant_net_static_ip:
130 list_join:
131 - '.'
132 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
133 external_net_static_ip:
134 list_join:
135 - '.'
136 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
137 instance_config_host: { get_attr: [cfg01_node, instance_address] }
138
139 vsrx_node:
140 type: MCP::VsrxNode
141 depends_on: [cfg01_node]
142 properties:
143 env_name: { get_param: env_name }
144 mcp_version: { get_param: mcp_version }
145 instance_domain: {get_param: instance_domain}
146 instance_name: vsrx
147 instance_flavor: {get_param: vsrx_flavor}
148 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko49655852019-08-01 15:40:58 +0300149 management_net: 'system-phys-2401'
150 control_net: 'system-phys-2404'
151 tenant_net: 'system-phys-2406'
152 external_net: 'system-phys-2403'
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +0300153 instance_image: system_vsrx-12.1X46-D20.5
154 control_net_static_ip:
155 list_join:
156 - '.'
157 - [ { get_attr: [subnets, control_net_prefix] }, '220' ]
158 tenant_net_static_ip:
159 list_join:
160 - '.'
161 - [ { get_attr: [subnets, tenant_net_prefix] }, '220' ]
162 external_net_static_ip:
163 list_join:
164 - '.'
165 - [ { get_attr: [subnets, external_net_prefix] }, '220' ]
166 instance_config_host: { get_attr: [cfg01_node, instance_address] }
167
168outputs:
169 foundation_public_ip:
170 description: foundation node IP address (management)
171 value:
172 get_attr:
173 - foundation_node
174 - instance_address
175...