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