Merge "Don't add 'host' parameter to cinder.conf"
[apex-tripleo-heat-templates.git] / net-config-bond.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
6 parameters:
7   ExternalIpSubnet:
8     default: ''
9     description: IP address/subnet on the external network
10     type: string
11   InternalApiIpSubnet:
12     default: ''
13     description: IP address/subnet on the internal API network
14     type: string
15   StorageIpSubnet:
16     default: ''
17     description: IP address/subnet on the storage network
18     type: string
19   StorageMgmtIpSubnet:
20     default: ''
21     description: IP address/subnet on the storage mgmt network
22     type: string
23   TenantIpSubnet:
24     default: ''
25     description: IP address/subnet on the tenant network
26     type: string
27
28 resources:
29   OsNetConfigImpl:
30     type: OS::Heat::StructuredConfig
31     properties:
32       group: os-apply-config
33       config:
34         os_net_config:
35           network_config:
36             -
37               type: ovs_bridge
38               name: {get_input: bridge_name}
39               use_dhcp: true
40               # Can't do this yet: https://bugs.launchpad.net/heat/+bug/1344284
41               #ovs_extra:
42               #  - list_join:
43               #    - ' '
44               #    - - br-set-external-id
45               #      - {get_input: bridge_name}
46               #      - bridge-id
47               #      - {get_input: bridge_name}
48               members:
49                 -
50                   type: ovs_bond
51                   name: bond1
52                   use_dhcp: true
53                   members:
54                     # os-net-config translates nic1 => em1 (for example)
55                     -
56                       type: interface
57                       name: nic1
58                     -
59                       type: interface
60                       name: nic2
61
62 outputs:
63   OS::stack_id:
64     description: The OsNetConfigImpl resource.
65     value: {get_resource: OsNetConfigImpl}