blob: b90cb1f9ba4d5717c11271b170e828bcf8030403 [file] [log] [blame]
Taras Khlivnyakea9af832021-04-13 13:51:00 +03001---
2
3heat_template_version: pike
4
Hanna Arhipova71b9e3a2021-04-13 14:50:15 +03005description: MCP environment for bm-e7-cicd-pike-ovs-maas
Taras Khlivnyakea9af832021-04-13 13:51:00 +03006
7parameters:
8 instance_domain:
9 type: string
10 default: bm-e7-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
23 bm_availability_zone:
24 type: string
25 control_subnet_cidr:
26 type: string
27 default: "10.167.11.0/24"
28 tenant_subnet_cidr:
29 type: string
Hanna Arhipovada9d7702021-04-13 15:14:13 +030030 default: "10.167.13.0/24"
Taras Khlivnyakea9af832021-04-13 13:51:00 +030031 external_subnet_cidr:
32 type: string
Hanna Arhipovada9d7702021-04-13 15:14:13 +030033 default: "172.17.42.64/26"
Taras Khlivnyakea9af832021-04-13 13:51:00 +030034 management_subnet_cidr:
35 type: string
36 default: "172.16.162.64/26"
37 management_subnet_cfg01_ip:
38 type: string
39 default: 172.16.162.66
40 management_subnet_gateway_ip:
41 type: string
42 default: 172.16.162.65
43 management_subnet_pool_start:
44 type: string
45 default: 172.16.162.67
46 management_subnet_pool_end:
47 type: string
48 default: 172.16.162.82
49 salt_master_control_ip:
50 type: string
51 default: 10.167.11.5
52 deploy_empty_node:
53 type: boolean
54 default: False
55
56
57resources:
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'
67 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 }
74
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 }
85 availability_zone: { get_param: bm_availability_zone }
86 management_net: 'system-phys-2401'
87 control_net: 'system-phys-2404'
88 tenant_net: 'system-phys-2406'
89 external_net: 'system-phys-2403'
90 salt_master_control_ip: { get_param: salt_master_control_ip }
91 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
92 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
111 availability_zone: { get_param: bm_availability_zone }
112 management_net: 'system-phys-2401'
113 control_net: 'system-phys-2404'
114 tenant_net: 'system-phys-2406'
115 external_net: 'system-phys-2403'
116 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
117 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...