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