Merge "controller: enable HTTP Glance backend"
[apex-tripleo-heat-templates.git] / network / config / bond-with-vlans / controller.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 VLANs attached for the controller 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   BondInterfaceOvsOptions:
29     default: ''
30     description: The ovs_options string for the bond interface. Set things like
31                  lacp=active and/or bond_mode=balance-slb using this option.
32     type: string
33   ExternalNetworkVlanID:
34     default: 10
35     description: Vlan ID for the external network traffic.
36     type: number
37   InternalApiNetworkVlanID:
38     default: 20
39     description: Vlan ID for the internal_api network traffic.
40     type: number
41   StorageNetworkVlanID:
42     default: 30
43     description: Vlan ID for the storage network traffic.
44     type: number
45   StorageMgmtNetworkVlanID:
46     default: 40
47     description: Vlan ID for the storage mgmt network traffic.
48     type: number
49   TenantNetworkVlanID:
50     default: 50
51     description: Vlan ID for the tenant network traffic.
52     type: number
53   ExternalInterfaceDefaultRoute:
54     default: '10.0.0.1'
55     description: default route for the external network
56     type: string
57
58 resources:
59   OsNetConfigImpl:
60     type: OS::Heat::StructuredConfig
61     properties:
62       group: os-apply-config
63       config:
64         os_net_config:
65           network_config:
66             -
67               type: ovs_bridge
68               name: {get_input: bridge_name}
69               members:
70                 -
71                   type: ovs_bond
72                   name: bond1
73                   ovs_options: {get_param: BondInterfaceOvsOptions}
74                   members:
75                     -
76                       type: interface
77                       name: nic2
78                       primary: true
79                     -
80                       type: interface
81                       name: nic3
82                 -
83                   type: vlan
84                   device: bond1
85                   vlan_id: {get_param: ExternalNetworkVlanID}
86                   addresses:
87                     -
88                       ip_netmask: {get_param: ExternalIpSubnet}
89                   routes:
90                     -
91                       ip_netmask: 0.0.0.0/0
92                       next_hop: {get_param: ExternalInterfaceDefaultRoute}
93                 -
94                   type: vlan
95                   device: bond1
96                   vlan_id: {get_param: InternalApiNetworkVlanID}
97                   addresses:
98                   -
99                     ip_netmask: {get_param: InternalApiIpSubnet}
100                 -
101                   type: vlan
102                   device: bond1
103                   vlan_id: {get_param: StorageNetworkVlanID}
104                   addresses:
105                   -
106                     ip_netmask: {get_param: StorageIpSubnet}
107                 -
108                   type: vlan
109                   device: bond1
110                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
111                   addresses:
112                   -
113                     ip_netmask: {get_param: StorageMgmtIpSubnet}
114                 -
115                   type: vlan
116                   device: bond1
117                   vlan_id: {get_param: TenantNetworkVlanID}
118                   addresses:
119                   -
120                     ip_netmask: {get_param: TenantIpSubnet}
121
122 outputs:
123   OS::stack_id:
124     description: The OsNetConfigImpl resource.
125     value: {get_resource: OsNetConfigImpl}