blob: 67940c76aa0f9ec8af60b573cbe0fe3306608b27 [file] [log] [blame]
Taras Khlivnyakea9af832021-04-13 13:51:00 +03001---
2
Taras Khlivnyak413da842021-04-16 17:48:15 +03003heat_template_version: queens
Taras Khlivnyakea9af832021-04-13 13:51:00 +03004
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
Hanna Arhipova353dbdf2021-04-15 14:30:02 +030048 default: 172.16.162.100
Taras Khlivnyakea9af832021-04-13 13:51:00 +030049 salt_master_control_ip:
50 type: string
Taras Khlivnyak413da842021-04-16 17:48:15 +030051 default: 172.16.162.66
Taras Khlivnyakea9af832021-04-13 13:51:00 +030052 deploy_empty_node:
53 type: boolean
54 default: False
55
56
57resources:
58 subnets:
Hanna Arhipova353dbdf2021-04-15 14:30:02 +030059 type: MCP::SubnetsE7
Taras Khlivnyakea9af832021-04-13 13:51:00 +030060 properties:
61 stack_name: { get_param: "OS::stack_name" }
62 env_name: { get_param: env_name }
Hanna Arhipova353dbdf2021-04-15 14:30:02 +030063 management_net: 'system-phys-430'
Taras Khlivnyakea9af832021-04-13 13:51:00 +030064 management_subnet_cidr: { get_param: management_subnet_cidr }
65 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
66 management_subnet_pool_start: { get_param: management_subnet_pool_start }
67 management_subnet_pool_end: { get_param: management_subnet_pool_end }
68
69 #flavors:
70 # type: MCP::Flavors
71
72 cfg01_node:
Hanna Arhipova353dbdf2021-04-15 14:30:02 +030073 type: MCP::MasterNodeE7
Taras Khlivnyakea9af832021-04-13 13:51:00 +030074 depends_on: [subnets]
75 properties:
76 env_name: { get_param: env_name }
77 mcp_version: { get_param: mcp_version }
78 cfg01_flavor: { get_param: cfg_flavor }
79 availability_zone: { get_param: bm_availability_zone }
Hanna Arhipova353dbdf2021-04-15 14:30:02 +030080 management_net: 'system-phys-430'
Taras Khlivnyakea9af832021-04-13 13:51:00 +030081 management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip }
Taras Khlivnyakea9af832021-04-13 13:51:00 +030082 instance_name: cfg01
83 instance_domain: {get_param: instance_domain}
84
85 foundation_node:
Hanna Arhipova353dbdf2021-04-15 14:30:02 +030086 type: MCP::FoundationNodeE7
Taras Khlivnyakea9af832021-04-13 13:51:00 +030087 depends_on: [subnets]
88 properties:
89 env_name: { get_param: env_name }
90 mcp_version: { get_param: mcp_version }
91 instance_domain: {get_param: instance_domain}
92 instance_name: foundation
93 availability_zone: { get_param: bm_availability_zone }
Hanna Arhipova353dbdf2021-04-15 14:30:02 +030094 management_net: 'system-phys-430'
Taras Khlivnyakea9af832021-04-13 13:51:00 +030095 management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip }
96 instance_image: { get_param: foundation_image }
97 instance_flavor: {get_param: foundation_flavor}
98 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
99 management_net_static_ip:
100 list_join:
101 - '.'
Hanna Arhipova353dbdf2021-04-15 14:30:02 +0300102 - [ { get_attr: [subnets, management_net_prefix] }, '126' ]
Taras Khlivnyakea9af832021-04-13 13:51:00 +0300103 instance_config_host: { get_attr: [cfg01_node, instance_address] }
104outputs:
105 foundation_public_ip:
106 description: foundation node IP address (management)
107 value:
108 get_attr:
109 - foundation_node
110 - instance_address
111...