blob: 81438e8d9d8987ab21dd6fdbe34b18d7afe26f85 [file] [log] [blame]
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for heat-bm-cicd-queens-contrail-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: heat-bm-cicd-queens-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
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030025 bm_availability_zone:
26 type: string
sgudzc9f50d12019-05-31 14:25:34 +030027 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
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +030035 default: "10.9.0.0/24"
sgudzc9f50d12019-05-31 14:25:34 +030036 management_subnet_cidr:
37 type: string
38 default: "172.16.49.64/26"
39 management_subnet_cfg01_ip:
40 type: string
41 default: 172.16.49.66
42 management_subnet_gateway_ip:
43 type: string
44 default: 172.16.49.65
45 management_subnet_pool_start:
46 type: string
47 default: 172.16.49.68
48 management_subnet_pool_end:
49 type: string
50 default: 172.16.49.124
51 salt_master_control_ip:
52 type: string
53 default: 10.6.0.15
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030054
55resources:
56 subnets:
57 type: MCP::Subnets
58 properties:
59 stack_name: { get_param: "OS::stack_name" }
60 env_name: { get_param: env_name }
61 management_net: 'system-phys-2421'
62 control_net: 'system-phys-2422'
63 tenant_net: 'system-phys-2423'
64 external_net: 'system-phys-2424'
sgudzc9f50d12019-05-31 14:25:34 +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 }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030072
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 }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030083 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030084 management_net: 'system-phys-2421'
85 control_net: 'system-phys-2422'
86 tenant_net: 'system-phys-2423'
87 external_net: 'system-phys-2424'
sgudzc9f50d12019-05-31 14:25:34 +030088 salt_master_control_ip: { get_param: salt_master_control_ip }
89 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +030090 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
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300109 availability_zone: { get_param: bm_availability_zone }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300110 management_net: 'system-phys-2421'
111 control_net: 'system-phys-2422'
112 tenant_net: 'system-phys-2423'
113 external_net: 'system-phys-2424'
sgudzc9f50d12019-05-31 14:25:34 +0300114 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300115 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 - '.'
121 - [ { get_attr: [subnets, management_net_prefix] }, '125' ]
122 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] }
Andrew Baraniuk6361cfc2019-06-04 12:58:14 +0300135
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 }
146 management_net: 'system-phys-2421'
147 control_net: 'system-phys-2422'
148 tenant_net: 'system-phys-2423'
149 external_net: 'system-phys-2424'
150 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
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +0300165outputs:
166 foundation_public_ip:
167 description: foundation node IP address (management)
168 value:
169 get_attr:
170 - foundation_node
171 - instance_address
172...