Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / ci / common / net-config-multinode.yaml
1 heat_template_version: ocata
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   ManagementIpSubnet:
33     default: ''
34     description: IP address/subnet on the management network
35     type: string
36   ControlPlaneSubnetCidr: # Override this via parameter_defaults
37     default: '24'
38     description: The subnet CIDR of the control plane network.
39     type: string
40
41 resources:
42   OsNetConfigImpl:
43     type: OS::Heat::SoftwareConfig
44     properties:
45       group: script
46       config:
47         str_replace:
48           template: |
49             #!/bin/bash
50             ip addr add CONTROLPLANEIP/CONTROLPLANESUBNETCIDR dev $bridge_name
51           params:
52             CONTROLPLANEIP: {get_param: ControlPlaneIp}
53             CONTROLPLANESUBNETCIDR: {get_param: ControlPlaneSubnetCidr}
54       inputs:
55         -
56           name: bridge_name
57           default: br-ex
58           description: bridge-name
59           type: String
60
61 outputs:
62   OS::stack_id:
63     description: The OsNetConfigImpl resource.
64     value: {get_resource: OsNetConfigImpl}