blob: b018a20f1b119bd6c0ea4e96b5d333016c2f5fd9 [file] [log] [blame]
Andrew Baraniuk67c04ec2019-05-27 13:46:10 +03001---
2
3heat_template_version: queens
4
5description: MCP environment for heat-bm-cicd-queens-contrail-sl
6
7parameters:
8 instance_domain:
9 type: string
10 default: heat-bm-cicd-queens-contrail-sl.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 vsrx_flavor:
20 type: string
21 foundation_image:
22 type: string
23 foundation_flavor:
24 type: string
25
26resources:
27 subnets:
28 type: MCP::Subnets
29 properties:
30 stack_name: { get_param: "OS::stack_name" }
31 env_name: { get_param: env_name }
32 management_net: 'system-phys-2421'
33 control_net: 'system-phys-2422'
34 tenant_net: 'system-phys-2423'
35 external_net: 'system-phys-2424'
36
37 #flavors:
38 # type: MCP::Flavors
39
40 cfg01_node:
41 type: MCP::MasterNode
42 depends_on: [subnets]
43 properties:
44 env_name: { get_param: env_name }
45 mcp_version: { get_param: mcp_version }
46 cfg01_flavor: { get_param: cfg_flavor }
47 management_net: 'system-phys-2421'
48 control_net: 'system-phys-2422'
49 tenant_net: 'system-phys-2423'
50 external_net: 'system-phys-2424'
51 tenant_net_static_ip:
52 list_join:
53 - '.'
54 - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ]
55 external_net_static_ip:
56 list_join:
57 - '.'
58 - [ { get_attr: [subnets, external_net_prefix] }, '15' ]
59 instance_name: cfg01
60 instance_domain: {get_param: instance_domain}
61
62 foundation_node:
63 type: MCP::FoundationNode
64 depends_on: [subnets]
65 properties:
66 env_name: { get_param: env_name }
67 mcp_version: { get_param: mcp_version }
68 instance_domain: {get_param: instance_domain}
69 instance_name: foundation
70 management_net: 'system-phys-2421'
71 control_net: 'system-phys-2422'
72 tenant_net: 'system-phys-2423'
73 external_net: 'system-phys-2424'
74 instance_image: { get_param: foundation_image }
75 instance_flavor: {get_param: foundation_flavor}
76 underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml }
77 management_net_static_ip:
78 list_join:
79 - '.'
80 - [ { get_attr: [subnets, management_net_prefix] }, '125' ]
81 control_net_static_ip:
82 list_join:
83 - '.'
84 - [ { get_attr: [subnets, control_net_prefix] }, '5' ]
85 tenant_net_static_ip:
86 list_join:
87 - '.'
88 - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ]
89 external_net_static_ip:
90 list_join:
91 - '.'
92 - [ { get_attr: [subnets, external_net_prefix] }, '5' ]
93 instance_config_host: { get_attr: [cfg01_node, instance_address] }
94outputs:
95 foundation_public_ip:
96 description: foundation node IP address (management)
97 value:
98 get_attr:
99 - foundation_node
100 - instance_address
101...