blob: 4306ae561c25fcb9b39f60405e9112010b26fee1 [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
PGlazovc8271632021-08-18 18:07:36 +040036 default: "172.16.180.0/23"
sgudzc9f50d12019-05-31 14:25:34 +030037 management_subnet_cfg01_ip:
38 type: string
PGlazovc8271632021-08-18 18:07:36 +040039 default: 172.16.180.2
sgudzc9f50d12019-05-31 14:25:34 +030040 management_subnet_gateway_ip:
41 type: string
PGlazovc8271632021-08-18 18:07:36 +040042 default: 172.16.180.1
sgudzc9f50d12019-05-31 14:25:34 +030043 management_subnet_pool_start:
44 type: string
PGlazovc8271632021-08-18 18:07:36 +040045 default: 172.16.180.3
sgudzc9f50d12019-05-31 14:25:34 +030046 management_subnet_pool_end:
47 type: string
PGlazovc8271632021-08-18 18:07:36 +040048 default: 172.16.180.61
sgudzc9f50d12019-05-31 14:25:34 +030049 salt_master_control_ip:
50 type: string
Oleksii Butenkof1189e22019-06-05 10:42:17 +030051 default: 10.167.11.5
Hanna Arhipovaeace7332021-02-11 15:15:29 +020052 deploy_empty_node:
53 type: boolean
54 default: False
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030055
Oleksii Butenko4b494f82019-05-29 17:39:15 +030056resources:
57 subnets:
58 type: MCP::Subnets
59 properties:
60 stack_name: { get_param: "OS::stack_name" }
61 env_name: { get_param: env_name }
62 management_net: 'system-phys-2401'
63 control_net: 'system-phys-2404'
64 tenant_net: 'system-phys-2406'
65 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +030066 control_subnet_cidr: { get_param: control_subnet_cidr }
67 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
68 external_subnet_cidr: { get_param: external_subnet_cidr }
69 management_subnet_cidr: { get_param: management_subnet_cidr }
70 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
71 management_subnet_pool_start: { get_param: management_subnet_pool_start }
72 management_subnet_pool_end: { get_param: management_subnet_pool_end }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030073
74 #flavors:
75 # type: MCP::Flavors
76
77 cfg01_node:
78 type: MCP::MasterNode
79 depends_on: [subnets]
80 properties:
81 env_name: { get_param: env_name }
82 mcp_version: { get_param: mcp_version }
83 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030084 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030085 management_net: 'system-phys-2401'
86 control_net: 'system-phys-2404'
87 tenant_net: 'system-phys-2406'
88 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +030089 salt_master_control_ip: { get_param: salt_master_control_ip }
90 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030091 tenant_net_static_ip:
92 list_join:
93 - '.'
94 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
95 external_net_static_ip:
96 list_join:
97 - '.'
98 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
99 instance_name: cfg01
100 instance_domain: {get_param: instance_domain}
101
102 foundation_node:
103 type: MCP::FoundationNode
104 depends_on: [subnets]
105 properties:
106 env_name: { get_param: env_name }
107 mcp_version: { get_param: mcp_version }
108 instance_domain: {get_param: instance_domain}
109 instance_name: foundation
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300110 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko4b494f82019-05-29 17:39:15 +0300111 management_net: 'system-phys-2401'
112 control_net: 'system-phys-2404'
113 tenant_net: 'system-phys-2406'
114 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +0300115 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
Oleksii Butenko4b494f82019-05-29 17:39:15 +0300116 instance_image: { get_param: foundation_image }
117 instance_flavor: {get_param: foundation_flavor}
118 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
119 management_net_static_ip:
120 list_join:
121 - '.'
122 - [ { get_attr: [subnets, management_net_prefix] }, '62' ]
123 control_net_static_ip:
124 list_join:
125 - '.'
126 - [ { get_attr: [subnets, control_net_prefix] }, '6' ]
127 tenant_net_static_ip:
128 list_join:
129 - '.'
130 - [ { get_attr: [subnets, tenant_net_prefix] }, '6' ]
131 external_net_static_ip:
132 list_join:
133 - '.'
134 - [ { get_attr: [subnets, external_net_prefix] }, '6' ]
135 instance_config_host: { get_attr: [cfg01_node, instance_address] }
136outputs:
137 foundation_public_ip:
138 description: foundation node IP address (management)
139 value:
140 get_attr:
141 - foundation_node
142 - instance_address
143...