Syntax updates to OOO network isolation file
[apex.git] / build / nics / compute_private_storage_br-ex.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 compute 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   InternalApiNetworkVlanID:
33     default: 20
34     description: Vlan ID for the internal_api network traffic.
35     type: number
36   StorageNetworkVlanID:
37     default: 30
38     description: Vlan ID for the storage network traffic.
39     type: number
40   TenantNetworkVlanID:
41     default: 50
42     description: Vlan ID for the tenant network traffic.
43     type: number
44   ControlPlaneSubnetCidr: # Override this via parameter_defaults
45     default: '24'
46     description: The subnet CIDR of the control plane network.
47     type: string
48   ControlPlaneDefaultRoute: # Override this via parameter_defaults
49     description: The subnet CIDR of the control plane network.
50     type: string
51   ExternalInterfaceDefaultRoute:
52     default: '10.0.0.1'
53     description: default route for the external network
54     type: string
55   DnsServers: # Override this via parameter_defaults
56     default: []
57     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
58     type: json
59   EC2MetadataIp: # Override this via parameter_defaults
60     description: The IP address of the EC2 metadata server.
61     type: string
62
63 resources:
64   OsNetConfigImpl:
65     type: OS::Heat::StructuredConfig
66     properties:
67       group: os-apply-config
68       config:
69         os_net_config:
70           network_config:
71             -
72               type: interface
73               name: nic1
74               use_dhcp: false
75               dns_servers: {get_param: DnsServers}
76               addresses:
77                 -
78                   ip_netmask:
79                     list_join:
80                       - '/'
81                       - - {get_param: ControlPlaneIp}
82                         - {get_param: ControlPlaneSubnetCidr}
83               routes:
84                 -
85                   ip_netmask: 169.254.169.254/32
86                   next_hop: {get_param: EC2MetadataIp}
87             -
88               type: interface
89               name: nic2
90               use_dhcp: false
91               addresses:
92                 -
93                   ip_netmask: {get_param: TenantIpSubnet}
94             -
95               type: ovs_bridge
96               name: {get_input: bridge_name}
97               use_dhcp: false
98               addresses:
99                 -
100                   ip_netmask: {get_param: ExternalIpSubnet}
101               routes:
102                 -
103                   ip_netmask: 0.0.0.0/0
104                   next_hop: {get_param: ExternalInterfaceDefaultRoute}
105               members:
106                 -
107                   type: interface
108                   name: nic3
109                   # force the MAC address of the bridge to this interface
110                   primary: true
111             -
112               type: interface
113               name: nic4
114               use_dhcp: false
115               addresses:
116                 -
117                   ip_netmask: {get_param: StorageIpSubnet}
118 outputs:
119   OS::stack_id:
120     description: The OsNetConfigImpl resource.
121     value: {get_resource: OsNetConfigImpl}