Wire in NodeExtraConfig interface
[apex-tripleo-heat-templates.git] / network / config / bond-with-vlans / cinder-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 VLANs attached for the cinder storage role.
6
7 parameters:
8   ControlPlaneIp:
9     default: ''
10     description: IP address/subnet on the ctlplane network
11     type: string
12   ExternalIpSubnet:
13     default: ''
14     description: IP address/subnet on the external network
15     type: string
16   InternalApiIpSubnet:
17     default: ''
18     description: IP address/subnet on the internal API network
19     type: string
20   StorageIpSubnet:
21     default: ''
22     description: IP address/subnet on the storage network
23     type: string
24   StorageMgmtIpSubnet:
25     default: ''
26     description: IP address/subnet on the storage mgmt network
27     type: string
28   TenantIpSubnet:
29     default: ''
30     description: IP address/subnet on the tenant network
31     type: string
32   BondInterfaceOvsOptions:
33     default: ''
34     description: The ovs_options string for the bond interface. Set things like
35                  lacp=active and/or bond_mode=balance-slb using this option.
36     type: string
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   ControlPlaneSubnetCidr: # Override this via parameter_defaults
50     default: '24'
51     description: The subnet CIDR of the control plane network.
52     type: string
53   ControlPlaneDefaultRoute: # Override this via parameter_defaults
54     description: The default route of the control plane network.
55     type: string
56   EC2MetadataIp: # Override this via parameter_defaults
57     description: The IP address of the EC2 metadata server.
58     type: string
59
60 resources:
61   OsNetConfigImpl:
62     type: OS::Heat::StructuredConfig
63     properties:
64       group: os-apply-config
65       config:
66         os_net_config:
67           network_config:
68             -
69               type: interface
70               name: nic1
71               use_dhcp: false
72               addresses:
73                 -
74                   ip_netmask:
75                     list_join:
76                       - '/'
77                       - - {get_param: ControlPlaneIp}
78                         - {get_param: ControlPlaneSubnetCidr}
79               routes:
80                 -
81                   ip_netmask: 169.254.169.254/32
82                   next_hop: {get_param: EC2MetadataIp}
83                 -
84                   default: true
85                   next_hop: {get_param: ControlPlaneDefaultRoute}
86             -
87               type: ovs_bridge
88               name: br-bond
89               members:
90                 -
91                   type: ovs_bond
92                   name: bond1
93                   ovs_options: {get_param: BondInterfaceOvsOptions}
94                   members:
95                     -
96                       type: interface
97                       name: nic2
98                       primary: true
99                     -
100                       type: interface
101                       name: nic3
102                 -
103                   type: vlan
104                   device: bond1
105                   vlan_id: {get_param: InternalApiNetworkVlanID}
106                   addresses:
107                     -
108                       ip_netmask: {get_param: InternalApiIpSubnet}
109                 -
110                   type: vlan
111                   device: bond1
112                   vlan_id: {get_param: StorageNetworkVlanID}
113                   addresses:
114                     -
115                       ip_netmask: {get_param: StorageIpSubnet}
116                 -
117                   type: vlan
118                   device: bond1
119                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
120                   addresses:
121                     -
122                       ip_netmask: {get_param: StorageMgmtIpSubnet}
123
124 outputs:
125   OS::stack_id:
126     description: The OsNetConfigImpl resource.
127     value: {get_resource: OsNetConfigImpl}