blob: 03c56792e97aecc74b54c43ead5cbf88459210b2 [file] [log] [blame]
Oleksii Butenko4b494f82019-05-29 17:39:15 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for bm-cicd-queens-ovs-maas
6
7parameters:
8 instance_domain:
9 type: string
10 default: bm-cicd-queens-ovs-maas.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 foundation_image:
20 type: string
21 foundation_flavor:
22 type: string
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030023 bm_availability_zone:
24 type: string
sgudzc9f50d12019-05-31 14:25:34 +030025 control_subnet_cidr:
26 type: string
27 default: "10.167.11.0/24"
28 tenant_subnet_cidr:
29 type: string
30 default: "10.167.12.0/24"
31 external_subnet_cidr:
32 type: string
33 default: "172.17.42.0/26"
34 management_subnet_cidr:
35 type: string
36 default: "172.16.164.0/26"
37 management_subnet_cfg01_ip:
38 type: string
39 default: 172.16.164.2
40 management_subnet_gateway_ip:
41 type: string
42 default: 172.16.164.1
43 management_subnet_pool_start:
44 type: string
45 default: 172.16.164.3
46 management_subnet_pool_end:
47 type: string
48 default: 172.16.164.61
49 salt_master_control_ip:
50 type: string
Oleksii Butenkof1189e22019-06-05 10:42:17 +030051 default: 10.167.11.5
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030052
Oleksii Butenko4b494f82019-05-29 17:39:15 +030053resources:
54 subnets:
55 type: MCP::Subnets
56 properties:
57 stack_name: { get_param: "OS::stack_name" }
58 env_name: { get_param: env_name }
59 management_net: 'system-phys-2401'
60 control_net: 'system-phys-2404'
61 tenant_net: 'system-phys-2406'
62 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +030063 control_subnet_cidr: { get_param: control_subnet_cidr }
64 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
65 external_subnet_cidr: { get_param: external_subnet_cidr }
66 management_subnet_cidr: { get_param: management_subnet_cidr }
67 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
68 management_subnet_pool_start: { get_param: management_subnet_pool_start }
69 management_subnet_pool_end: { get_param: management_subnet_pool_end }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030070
71 #flavors:
72 # type: MCP::Flavors
73
74 cfg01_node:
75 type: MCP::MasterNode
76 depends_on: [subnets]
77 properties:
78 env_name: { get_param: env_name }
79 mcp_version: { get_param: mcp_version }
80 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030081 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030082 management_net: 'system-phys-2401'
83 control_net: 'system-phys-2404'
84 tenant_net: 'system-phys-2406'
85 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +030086 salt_master_control_ip: { get_param: salt_master_control_ip }
87 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030088 tenant_net_static_ip:
89 list_join:
90 - '.'
91 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
92 external_net_static_ip:
93 list_join:
94 - '.'
95 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
96 instance_name: cfg01
97 instance_domain: {get_param: instance_domain}
98
99 foundation_node:
100 type: MCP::FoundationNode
101 depends_on: [subnets]
102 properties:
103 env_name: { get_param: env_name }
104 mcp_version: { get_param: mcp_version }
105 instance_domain: {get_param: instance_domain}
106 instance_name: foundation
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300107 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko4b494f82019-05-29 17:39:15 +0300108 management_net: 'system-phys-2401'
109 control_net: 'system-phys-2404'
110 tenant_net: 'system-phys-2406'
111 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +0300112 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
Oleksii Butenko4b494f82019-05-29 17:39:15 +0300113 instance_image: { get_param: foundation_image }
114 instance_flavor: {get_param: foundation_flavor}
115 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
116 management_net_static_ip:
117 list_join:
118 - '.'
119 - [ { get_attr: [subnets, management_net_prefix] }, '62' ]
120 control_net_static_ip:
121 list_join:
122 - '.'
123 - [ { get_attr: [subnets, control_net_prefix] }, '6' ]
124 tenant_net_static_ip:
125 list_join:
126 - '.'
127 - [ { get_attr: [subnets, tenant_net_prefix] }, '6' ]
128 external_net_static_ip:
129 list_join:
130 - '.'
131 - [ { get_attr: [subnets, external_net_prefix] }, '6' ]
132 instance_config_host: { get_attr: [cfg01_node, instance_address] }
133outputs:
134 foundation_public_ip:
135 description: foundation node IP address (management)
136 value:
137 get_attr:
138 - foundation_node
139 - instance_address
140...