Merge "Remove DefaultSignalTransport from top-level template"
[apex-tripleo-heat-templates.git] / network / config / single-nic-vlans / ceph-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   ceph 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   StorageNetworkVlanID:
29     default: 30
30     description: Vlan ID for the storage network traffic.
31     type: number
32   StorageMgmtNetworkVlanID:
33     default: 40
34     description: Vlan ID for the storage mgmt network traffic.
35     type: number
36
37 resources:
38   OsNetConfigImpl:
39     type: OS::Heat::StructuredConfig
40     properties:
41       group: os-apply-config
42       config:
43         os_net_config:
44           network_config:
45             -
46               type: ovs_bridge
47               name: br-storage
48               use_dhcp: true
49               members:
50                 -
51                   type: interface
52                   name: nic1
53                   # force the MAC address of the bridge to this interface
54                   primary: true
55                 -
56                   type: vlan
57                   vlan_id: {get_param: StorageNetworkVlanID}
58                   addresses:
59                   -
60                     ip_netmask: {get_param: StorageIpSubnet}
61                 -
62                   type: vlan
63                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
64                   addresses:
65                   -
66                     ip_netmask: {get_param: StorageMgmtIpSubnet}
67
68 outputs:
69   OS::stack_id:
70     description: The OsNetConfigImpl resource.
71     value: {get_resource: OsNetConfigImpl}