Stop no-opping PackageUpdate on upgrade
[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   ManagementIpSubnet:
32     default: ''
33     description: IP address/subnet on the management network
34     type: string
35   ControlPlaneDefaultRoute: # Override this via parameter_defaults
36     description: The default route of the control plane network.
37     type: string
38     default: '192.0.2.1'
39   EC2MetadataIp: # Override this via parameter_defaults
40     description: The IP address of the EC2 metadata server.
41     type: string
42     default: '169.254.169.254/32'
43
44
45 resources:
46   OsNetConfigImpl:
47     type: OS::Heat::StructuredConfig
48     properties:
49       group: os-apply-config
50       config:
51         os_net_config:
52           network_config:
53             -
54               type: linux_bridge
55               name: {get_input: bridge_name}
56               addresses:
57                 -
58                   ip_netmask: {get_param: ControlPlaneIp}
59               members:
60                 -
61                   type: interface
62                   name: {get_input: interface_name}
63                   # force the MAC address of the bridge to this interface
64                   primary: true
65               routes:
66                 -
67                   ip_netmask: 0.0.0.0/0
68                   next_hop: {get_param: ControlPlaneDefaultRoute}
69                   default: true
70                 -
71                   ip_netmask: {get_param: EC2MetadataIp}
72                   next_hop: {get_param: ControlPlaneDefaultRoute}
73
74 outputs:
75   OS::stack_id:
76     description: The OsNetConfigImpl resource.
77     value: {get_resource: OsNetConfigImpl}