Merge "Wire ServiceNetMap as a top level parameter"
[apex-tripleo-heat-templates.git] / network / config / single-nic-vlans / cinder-storage.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config to configure VLANs for the
5   cinder storage role.
6
7 parameters:
8   ExternalIpSubnet:
9     default: ''
10     description: IP address/subnet on the external network
11     type: string
12   InternalApiIpSubnet:
13     default: ''
14     description: IP address/subnet on the internal API network
15     type: string
16   StorageIpSubnet:
17     default: ''
18     description: IP address/subnet on the storage network
19     type: string
20   StorageMgmtIpSubnet:
21     default: ''
22     description: IP address/subnet on the storage mgmt network
23     type: string
24   TenantIpSubnet:
25     default: ''
26     description: IP address/subnet on the tenant network
27     type: string
28
29 resources:
30   OsNetConfigImpl:
31     type: OS::Heat::StructuredConfig
32     properties:
33       group: os-apply-config
34       config:
35         os_net_config:
36           network_config:
37             -
38               type: ovs_bridge
39               name: {get_input: bridge_name}
40               use_dhcp: true
41               members:
42                 -
43                   type: interface
44                   name: nic1
45                   ovs_options: vlan_mode=trunk trunks=10,20,30,40,50
46                   # force the MAC address of the bridge to this interface
47                   primary: true
48                 -
49                   type: vlan
50                   device: bond1
51                   vlan_id: 20
52                   addresses:
53                   -
54                     ip_netmask: {get_param: InternalApiIpSubnet}
55                 -
56                   type: vlan
57                   device: bond1
58                   vlan_id: 30
59                   addresses:
60                   -
61                     ip_netmask: {get_param: StorageIpSubnet}
62                 -
63                   type: vlan
64                   device: bond1
65                   vlan_id: 40
66                   addresses:
67                   -
68                     ip_netmask: {get_param: StorageMgmtIpSubnet}
69
70 outputs:
71   OS::stack_id:
72     description: The OsNetConfigImpl resource.
73     value: {get_resource: OsNetConfigImpl}