Increase corosync token timeout
[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   DnsServers: # Override this via parameter_defaults
40     default: []
41     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
42     type: comma_delimited_list
43   EC2MetadataIp: # Override this via parameter_defaults
44     description: The IP address of the EC2 metadata server.
45     type: string
46
47 resources:
48   OsNetConfigImpl:
49     type: OS::Heat::StructuredConfig
50     properties:
51       group: os-apply-config
52       config:
53         os_net_config:
54           network_config:
55             -
56               type: ovs_bridge
57               name: {get_input: bridge_name}
58               use_dhcp: false
59               dns_servers: {get_param: DnsServers}
60               addresses:
61                 -
62                   ip_netmask:
63                     list_join:
64                       - '/'
65                       - - {get_param: ControlPlaneIp}
66                         - {get_param: ControlPlaneSubnetCidr}
67               routes:
68                 -
69                   ip_netmask: 169.254.169.254/32
70                   next_hop: {get_param: EC2MetadataIp}
71                 -
72                   default: true
73                   next_hop: {get_param: ControlPlaneDefaultRoute}
74               members:
75                 -
76                   type: interface
77                   name: {get_input: interface_name}
78                   # force the MAC address of the bridge to this interface
79                   primary: true
80
81 outputs:
82   OS::stack_id:
83     description: The OsNetConfigImpl resource.
84     value: {get_resource: OsNetConfigImpl}