Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / net-config-static.yaml
1 heat_template_version: pike
2 description: >
3   Software Config to drive os-net-config for a simple bridge.
4 parameters:
5   ControlPlaneIp:
6     default: ''
7     description: IP address/subnet on the ctlplane network
8     type: string
9   ExternalIpSubnet:
10     default: ''
11     description: IP address/subnet on the external network
12     type: string
13   InternalApiIpSubnet:
14     default: ''
15     description: IP address/subnet on the internal_api network
16     type: string
17   StorageIpSubnet:
18     default: ''
19     description: IP address/subnet on the storage network
20     type: string
21   StorageMgmtIpSubnet:
22     default: ''
23     description: IP address/subnet on the storage_mgmt network
24     type: string
25   TenantIpSubnet:
26     default: ''
27     description: IP address/subnet on the tenant network
28     type: string
29   ManagementIpSubnet:
30     default: ''
31     description: IP address/subnet on the management network
32     type: string
33   ControlPlaneSubnetCidr: # Override this via parameter_defaults
34     default: '24'
35     description: The subnet CIDR of the control plane network.
36     type: string
37   ControlPlaneDefaultRoute: # Override this via parameter_defaults
38     description: The default route of the control plane network.
39     type: string
40   DnsServers: # Override this via parameter_defaults
41     default: []
42     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
43     type: comma_delimited_list
44   EC2MetadataIp: # Override this via parameter_defaults
45     description: The IP address of the EC2 metadata server.
46     type: string
47 resources:
48   OsNetConfigImpl:
49     type: OS::Heat::SoftwareConfig
50     properties:
51       group: script
52       config:
53         str_replace:
54           template:
55             get_file: network/scripts/run-os-net-config.sh
56           params:
57             $network_config:
58               network_config:
59               - type: interface
60                 name: interface_name
61                 use_dhcp: false
62                 dns_servers:
63                   get_param: DnsServers
64                 addresses:
65                 - ip_netmask:
66                     list_join:
67                     - /
68                     - - get_param: ControlPlaneIp
69                       - get_param: ControlPlaneSubnetCidr
70                 routes:
71                 - ip_netmask: 169.254.169.254/32
72                   next_hop:
73                     get_param: EC2MetadataIp
74                 - default: true
75                   next_hop:
76                     get_param: ControlPlaneDefaultRoute
77 outputs:
78   OS::stack_id:
79     description: The OsNetConfigImpl resource.
80     value:
81       get_resource: OsNetConfigImpl
82