Merge "Nova-libvirt needs to bind to /sys/fs/cgroup"
[apex-tripleo-heat-templates.git] / net-config-linux-bridge.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config for a simple 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   ControlPlaneDefaultRoute: # Override this via parameter_defaults
32     description: The default route of the control plane network.
33     type: string
34     default: '192.0.2.1'
35   EC2MetadataIp: # Override this via parameter_defaults
36     description: The IP address of the EC2 metadata server.
37     type: string
38     default: '169.254.169.254/32'
39
40
41 resources:
42   OsNetConfigImpl:
43     type: OS::Heat::StructuredConfig
44     properties:
45       group: os-apply-config
46       config:
47         os_net_config:
48           network_config:
49             -
50               type: linux_bridge
51               name: {get_input: bridge_name}
52               addresses:
53                 -
54                   ip_netmask: {get_param: ControlPlaneIp}
55               members:
56                 -
57                   type: interface
58                   name: {get_input: interface_name}
59                   # force the MAC address of the bridge to this interface
60                   primary: true
61               routes:
62                 -
63                   ip_netmask: 0.0.0.0/0
64                   next_hop: {get_param: ControlPlaneDefaultRoute}
65                   default: true
66                 -
67                   ip_netmask: {get_param: EC2MetadataIp}
68                   next_hop: {get_param: ControlPlaneDefaultRoute}
69
70 outputs:
71   OS::stack_id:
72     description: The OsNetConfigImpl resource.
73     value: {get_resource: OsNetConfigImpl}