blob: e711b81d3d18757463aad557c5df51a52673eec3 [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
23
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030024 bm_availability_zone:
25 type: string
26
Oleksii Butenko4b494f82019-05-29 17:39:15 +030027resources:
28 subnets:
29 type: MCP::Subnets
30 properties:
31 stack_name: { get_param: "OS::stack_name" }
32 env_name: { get_param: env_name }
33 management_net: 'system-phys-2401'
34 control_net: 'system-phys-2404'
35 tenant_net: 'system-phys-2406'
36 external_net: 'system-phys-2403'
37
38 #flavors:
39 # type: MCP::Flavors
40
41 cfg01_node:
42 type: MCP::MasterNode
43 depends_on: [subnets]
44 properties:
45 env_name: { get_param: env_name }
46 mcp_version: { get_param: mcp_version }
47 cfg01_flavor: { get_param: cfg_flavor }
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030048 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030049 management_net: 'system-phys-2401'
50 control_net: 'system-phys-2404'
51 tenant_net: 'system-phys-2406'
52 external_net: 'system-phys-2403'
53 tenant_net_static_ip:
54 list_join:
55 - '.'
56 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
57 external_net_static_ip:
58 list_join:
59 - '.'
60 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
61 instance_name: cfg01
62 instance_domain: {get_param: instance_domain}
63
64 foundation_node:
65 type: MCP::FoundationNode
66 depends_on: [subnets]
67 properties:
68 env_name: { get_param: env_name }
69 mcp_version: { get_param: mcp_version }
70 instance_domain: {get_param: instance_domain}
71 instance_name: foundation
Dennis Dmitriev1e0a06f2019-05-31 13:24:13 +030072 availability_zone: { get_param: bm_availability_zone }
Oleksii Butenko4b494f82019-05-29 17:39:15 +030073 management_net: 'system-phys-2401'
74 control_net: 'system-phys-2404'
75 tenant_net: 'system-phys-2406'
76 external_net: 'system-phys-2403'
77 instance_image: { get_param: foundation_image }
78 instance_flavor: {get_param: foundation_flavor}
79 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
80 management_net_static_ip:
81 list_join:
82 - '.'
83 - [ { get_attr: [subnets, management_net_prefix] }, '62' ]
84 control_net_static_ip:
85 list_join:
86 - '.'
87 - [ { get_attr: [subnets, control_net_prefix] }, '6' ]
88 tenant_net_static_ip:
89 list_join:
90 - '.'
91 - [ { get_attr: [subnets, tenant_net_prefix] }, '6' ]
92 external_net_static_ip:
93 list_join:
94 - '.'
95 - [ { get_attr: [subnets, external_net_prefix] }, '6' ]
96 instance_config_host: { get_attr: [cfg01_node, instance_address] }
97outputs:
98 foundation_public_ip:
99 description: foundation node IP address (management)
100 value:
101 get_attr:
102 - foundation_node
103 - instance_address
104...