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