Merge "Map Heat services to isolated networks"
[apex-tripleo-heat-templates.git] / network / config / bond-with-vlans / ceph-storage.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config with 2 bonded nics on a bridge
5   with a VLANs attached for the 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
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                   # force the MAC address of the bridge to this interface
46                   primary: true
47             -
48               type: ovs_bridge
49               name: br-bond
50               members:
51                 -
52                   type: ovs_bond
53                   name: bond1
54                   ovs_options: vlan_mode=trunk trunks=10,20,30,40,50
55                   members:
56                     -
57                       type: interface
58                       name: nic2
59                       primary: true
60                     -
61                       type: interface
62                       name: nic3
63                 -
64                   type: vlan
65                   device: bond1
66                   vlan_id: 30
67                   addresses:
68                   -
69                     ip_netmask: {get_param: StorageIpSubnet}
70                 -
71                   type: vlan
72                   device: bond1
73                   vlan_id: 40
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}