blob: b16d5a51883bb3fa57d0f0294034630960d1b6fe [file] [log] [blame]
Oleksii Butenko4b494f82019-05-29 17:39:15 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for bm-cicd-pike-ovs-maas
6
7parameters:
8 instance_domain:
9 type: string
10 default: bm-cicd-pike-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
Vladimir Khlyunev1434de52024-09-11 01:52:19 +030045 default: 172.16.181.252
sgudzc9f50d12019-05-31 14:25:34 +030046 management_subnet_pool_end:
47 type: string
Vladimir Khlyunev1434de52024-09-11 01:52:19 +030048 default: 172.16.181.254
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
55
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030056
Oleksii Butenko4b494f82019-05-29 17:39:15 +030057resources:
58 subnets:
59 type: MCP::Subnets
60 properties:
61 stack_name: { get_param: "OS::stack_name" }
62 env_name: { get_param: env_name }
63 management_net: 'system-phys-2401'
64 control_net: 'system-phys-2404'
65 tenant_net: 'system-phys-2406'
66 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +030067 control_subnet_cidr: { get_param: control_subnet_cidr }
68 tenant_subnet_cidr: { get_param: tenant_subnet_cidr }
69 external_subnet_cidr: { get_param: external_subnet_cidr }
70 management_subnet_cidr: { get_param: management_subnet_cidr }
71 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
72 management_subnet_pool_start: { get_param: management_subnet_pool_start }
73 management_subnet_pool_end: { get_param: management_subnet_pool_end }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030074
75 #flavors:
76 # type: MCP::Flavors
77
78 cfg01_node:
79 type: MCP::MasterNode
80 depends_on: [subnets]
81 properties:
82 env_name: { get_param: env_name }
83 mcp_version: { get_param: mcp_version }
84 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030085 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030086 management_net: 'system-phys-2401'
87 control_net: 'system-phys-2404'
88 tenant_net: 'system-phys-2406'
89 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +030090 salt_master_control_ip: { get_param: salt_master_control_ip }
91 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030092 tenant_net_static_ip:
93 list_join:
94 - '.'
95 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
96 external_net_static_ip:
97 list_join:
98 - '.'
99 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
100 instance_name: cfg01
101 instance_domain: {get_param: instance_domain}
102
103 foundation_node:
104 type: MCP::FoundationNode
105 depends_on: [subnets]
106 properties:
107 env_name: { get_param: env_name }
108 mcp_version: { get_param: mcp_version }
109 instance_domain: {get_param: instance_domain}
110 instance_name: foundation
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +0300111 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko4b494f82019-05-29 17:39:15 +0300112 management_net: 'system-phys-2401'
113 control_net: 'system-phys-2404'
114 tenant_net: 'system-phys-2406'
115 external_net: 'system-phys-2403'
sgudzc9f50d12019-05-31 14:25:34 +0300116 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
Oleksii Butenko4b494f82019-05-29 17:39:15 +0300117 instance_image: { get_param: foundation_image }
118 instance_flavor: {get_param: foundation_flavor}
119 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
120 management_net_static_ip:
121 list_join:
122 - '.'
123 - [ { get_attr: [subnets, management_net_prefix] }, '62' ]
124 control_net_static_ip:
125 list_join:
126 - '.'
127 - [ { get_attr: [subnets, control_net_prefix] }, '6' ]
128 tenant_net_static_ip:
129 list_join:
130 - '.'
131 - [ { get_attr: [subnets, tenant_net_prefix] }, '6' ]
132 external_net_static_ip:
133 list_join:
134 - '.'
135 - [ { get_attr: [subnets, external_net_prefix] }, '6' ]
136 instance_config_host: { get_attr: [cfg01_node, instance_address] }
137outputs:
138 foundation_public_ip:
139 description: foundation node IP address (management)
140 value:
141 get_attr:
142 - foundation_node
143 - instance_address
144...