Syntax updates to OOO network isolation file
[apex.git] / build / nics / controller_private.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config to configure multiple interfaces
5   for the controller role.
6
7 parameters:
8   ControlPlaneIp:
9     default: ''
10     description: IP address/subnet on the ctlplane network
11     type: string
12   ExternalIpSubnet:
13     default: ''
14     description: IP address/subnet on the external network
15     type: string
16   InternalApiIpSubnet:
17     default: ''
18     description: IP address/subnet on the internal API network
19     type: string
20   StorageIpSubnet:
21     default: ''
22     description: IP address/subnet on the storage network
23     type: string
24   StorageMgmtIpSubnet:
25     default: ''
26     description: IP address/subnet on the storage mgmt network
27     type: string
28   TenantIpSubnet:
29     default: ''
30     description: IP address/subnet on the tenant network
31     type: string
32   ExternalNetworkVlanID:
33     default: 10
34     description: Vlan ID for the external network traffic.
35     type: number
36   InternalApiNetworkVlanID:
37     default: 20
38     description: Vlan ID for the internal_api network traffic.
39     type: number
40   StorageNetworkVlanID:
41     default: 30
42     description: Vlan ID for the storage network traffic.
43     type: number
44   StorageMgmtNetworkVlanID:
45     default: 40
46     description: Vlan ID for the storage mgmt network traffic.
47     type: number
48   TenantNetworkVlanID:
49     default: 50
50     description: Vlan ID for the tenant network traffic.
51     type: number
52   ExternalInterfaceDefaultRoute:
53     default: '10.0.0.1'
54     description: default route for the external network
55     type: string
56   ControlPlaneSubnetCidr: # Override this via parameter_defaults
57     default: '24'
58     description: The subnet CIDR of the control plane network.
59     type: string
60   ControlPlaneDefaultRoute: # Override this via parameter_defaults
61     description: The subnet CIDR of the control plane network.
62     type: string
63   DnsServers: # Override this via parameter_defaults
64     default: []
65     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
66     type: json
67   EC2MetadataIp: # Override this via parameter_defaults
68     description: The IP address of the EC2 metadata server.
69     type: string
70
71 resources:
72   OsNetConfigImpl:
73     type: OS::Heat::StructuredConfig
74     properties:
75       group: os-apply-config
76       config:
77         os_net_config:
78           network_config:
79             -
80               type: interface
81               name: nic1
82               use_dhcp: false
83               dns_servers: {get_param: DnsServers}
84               addresses:
85                 -
86                   ip_netmask:
87                     list_join:
88                       - '/'
89                       - - {get_param: ControlPlaneIp}
90                         - {get_param: ControlPlaneSubnetCidr}
91               routes:
92                 -
93                   ip_netmask: 169.254.169.254/32
94                   next_hop: {get_param: EC2MetadataIp}
95             -
96               type: interface
97               name: nic2
98               use_dhcp: false
99               addresses:
100                 -
101                   ip_netmask: {get_param: TenantIpSubnet}
102             -
103               type: ovs_bridge
104               name: {get_input: bridge_name}
105               use_dhcp: false
106               addresses:
107                 -
108                   ip_netmask: {get_param: ExternalIpSubnet}
109               routes:
110                 -
111                   ip_netmask: 0.0.0.0/0
112                   next_hop: {get_param: ExternalInterfaceDefaultRoute}
113               members:
114                 -
115                   type: interface
116                   name: nic3
117                   # force the MAC address of the bridge to this interface
118                   primary: true
119
120 outputs:
121   OS::stack_id:
122     description: The OsNetConfigImpl resource.
123     value: {get_resource: OsNetConfigImpl}