Deprecate the undercloud templates.
[apex-tripleo-heat-templates.git] / net-config-static-bridge.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config for a simple bridge configured
5   with a static IP address for the ctlplane network.
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   ControlPlaneSubnetCidr: # Override this via parameter_defaults
33     default: '24'
34     description: The subnet CIDR of the control plane network.
35     type: string
36   ControlPlaneDefaultRoute: # Override this via parameter_defaults
37     description: The default route of the control plane network.
38     type: string
39   EC2MetadataIp: # Override this via parameter_defaults
40     description: The IP address of the EC2 metadata server.
41     type: string
42
43 resources:
44   OsNetConfigImpl:
45     type: OS::Heat::StructuredConfig
46     properties:
47       group: os-apply-config
48       config:
49         os_net_config:
50           network_config:
51             -
52               type: ovs_bridge
53               name: {get_input: bridge_name}
54               use_dhcp: false
55               addresses:
56                 -
57                   ip_netmask:
58                     list_join:
59                       - '/'
60                       - - {get_param: ControlPlaneIp}
61                         - {get_param: ControlPlaneSubnetCidr}
62               routes:
63                 -
64                   ip_netmask: 169.254.169.254/32
65                   next_hop: {get_param: EC2MetadataIp}
66                 -
67                   default: true
68                   next_hop: {get_param: ControlPlaneDefaultRoute}
69               members:
70                 -
71                   type: interface
72                   name: {get_input: interface_name}
73                   # force the MAC address of the bridge to this interface
74                   primary: true
75
76 outputs:
77   OS::stack_id:
78     description: The OsNetConfigImpl resource.
79     value: {get_resource: OsNetConfigImpl}