Merge "Remove NO_SIGNAL from puppet role templates"
[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   InternalApiNetworkVlanID:
29     default: 20
30     description: Vlan ID for the internal_api network traffic.
31     type: number
32   StorageNetworkVlanID:
33     default: 30
34     description: Vlan ID for the storage network traffic.
35     type: number
36   StorageMgmtNetworkVlanID:
37     default: 40
38     description: Vlan ID for the storage mgmt network traffic.
39     type: number
40
41 resources:
42   OsNetConfigImpl:
43     type: OS::Heat::StructuredConfig
44     properties:
45       group: os-apply-config
46       config:
47         os_net_config:
48           network_config:
49             -
50               type: ovs_bridge
51               name: br-storage
52               use_dhcp: true
53               members:
54                 -
55                   type: interface
56                   name: nic1
57                   # force the MAC address of the bridge to this interface
58                   primary: true
59                 -
60                   type: vlan
61                   vlan_id: {get_param: InternalApiNetworkVlanID}
62                   addresses:
63                   -
64                     ip_netmask: {get_param: InternalApiIpSubnet}
65                 -
66                   type: vlan
67                   vlan_id: {get_param: StorageNetworkVlanID}
68                   addresses:
69                   -
70                     ip_netmask: {get_param: StorageIpSubnet}
71                 -
72                   type: vlan
73                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
74                   addresses:
75                   -
76                     ip_netmask: {get_param: StorageMgmtIpSubnet}
77
78 outputs:
79   OS::stack_id:
80     description: The OsNetConfigImpl resource.
81     value: {get_resource: OsNetConfigImpl}