Merge "Re-add constranits between nova-api and nova-novncproxy"
[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 VLANs attached for the ceph 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   StorageNetworkVlanID:
38     default: 30
39     description: Vlan ID for the storage network traffic.
40     type: number
41   StorageMgmtNetworkVlanID:
42     default: 40
43     description: Vlan ID for the storage mgmt network traffic.
44     type: number
45   ControlPlaneSubnetCidr: # Override this via parameter_defaults
46     default: '24'
47     description: The subnet CIDR of the control plane network.
48     type: string
49   ControlPlaneDefaultRoute: # Override this via parameter_defaults
50     description: The default route of the control plane network.
51     type: string
52   EC2MetadataIp: # Override this via parameter_defaults
53     description: The IP address of the EC2 metadata server.
54     type: string
55
56 resources:
57   OsNetConfigImpl:
58     type: OS::Heat::StructuredConfig
59     properties:
60       group: os-apply-config
61       config:
62         os_net_config:
63           network_config:
64             -
65               type: interface
66               name: nic1
67               use_dhcp: false
68               addresses:
69                 -
70                   ip_netmask:
71                     list_join:
72                       - '/'
73                       - - {get_param: ControlPlaneIp}
74                         - {get_param: ControlPlaneSubnetCidr}
75               routes:
76                 -
77                   ip_netmask: 169.254.169.254/32
78                   next_hop: {get_param: EC2MetadataIp}
79                 -
80                   default: true
81                   next_hop: {get_param: ControlPlaneDefaultRoute}
82             -
83               type: ovs_bridge
84               name: br-bond
85               members:
86                 -
87                   type: ovs_bond
88                   name: bond1
89                   ovs_options: {get_param: BondInterfaceOvsOptions}
90                   members:
91                     -
92                       type: interface
93                       name: nic2
94                       primary: true
95                     -
96                       type: interface
97                       name: nic3
98                 -
99                   type: vlan
100                   device: bond1
101                   vlan_id: {get_param: StorageNetworkVlanID}
102                   addresses:
103                     -
104                       ip_netmask: {get_param: StorageIpSubnet}
105                 -
106                   type: vlan
107                   device: bond1
108                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
109                   addresses:
110                     -
111                       ip_netmask: {get_param: StorageMgmtIpSubnet}
112
113 outputs:
114   OS::stack_id:
115     description: The OsNetConfigImpl resource.
116     value: {get_resource: OsNetConfigImpl}