Update the template_version alias for all the templates to pike.
[apex-tripleo-heat-templates.git] / network / config / single-nic-vlans / cinder-storage.yaml
1 heat_template_version: pike
2 description: >
3   Software Config to drive os-net-config to configure VLANs for the cinder storage role.
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: # Only populated when including environments/network-management.yaml
30     default: ''
31     description: IP address/subnet on the management network
32     type: string
33   InternalApiNetworkVlanID:
34     default: 20
35     description: Vlan ID for the internal_api network traffic.
36     type: number
37   StorageNetworkVlanID:
38     default: 30
39     description: Vlan ID for the storage network traffic.
40     type: number
41   StorageMgmtNetworkVlanID:
42     default: 40
43     description: Vlan ID for the storage mgmt network traffic.
44     type: number
45   ManagementNetworkVlanID:
46     default: 60
47     description: Vlan ID for the management network traffic.
48     type: number
49   ControlPlaneSubnetCidr: # Override this via parameter_defaults
50     default: '24'
51     description: The subnet CIDR of the control plane network.
52     type: string
53   ControlPlaneDefaultRoute: # Override this via parameter_defaults
54     description: The default route of the control plane network.
55     type: string
56   ExternalInterfaceDefaultRoute: # Not used by default in this template
57     default: 10.0.0.1
58     description: The default route of the external network.
59     type: string
60   ManagementInterfaceDefaultRoute: # Commented out by default in this template
61     default: unset
62     description: The default route of the management network.
63     type: string
64   DnsServers: # Override this via parameter_defaults
65     default: []
66     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
67     type: comma_delimited_list
68   EC2MetadataIp: # Override this via parameter_defaults
69     description: The IP address of the EC2 metadata server.
70     type: string
71 resources:
72   OsNetConfigImpl:
73     type: OS::Heat::SoftwareConfig
74     properties:
75       group: script
76       config:
77         str_replace:
78           template:
79             get_file: ../../scripts/run-os-net-config.sh
80           params:
81             $network_config:
82               network_config:
83               - type: ovs_bridge
84                 name: br-storage
85                 use_dhcp: false
86                 dns_servers:
87                   get_param: DnsServers
88                 addresses:
89                 - ip_netmask:
90                     list_join:
91                     - /
92                     - - get_param: ControlPlaneIp
93                       - get_param: ControlPlaneSubnetCidr
94                 routes:
95                 - ip_netmask: 169.254.169.254/32
96                   next_hop:
97                     get_param: EC2MetadataIp
98                 - default: true
99                   next_hop:
100                     get_param: ControlPlaneDefaultRoute
101                 members:
102                 - type: interface
103                   name: nic1
104                   # force the MAC address of the bridge to this interface
105                   primary: true
106                 - type: vlan
107                   vlan_id:
108                     get_param: InternalApiNetworkVlanID
109                   addresses:
110                   - ip_netmask:
111                       get_param: InternalApiIpSubnet
112                 - type: vlan
113                   vlan_id:
114                     get_param: StorageNetworkVlanID
115                   addresses:
116                   - ip_netmask:
117                       get_param: StorageIpSubnet
118                 - type: vlan
119                   vlan_id:
120                     get_param: StorageMgmtNetworkVlanID
121                   addresses:
122                   - ip_netmask:
123                       get_param: StorageMgmtIpSubnet
124                 # Uncomment when including environments/network-management.yaml
125                 # If setting default route on the Management interface, comment
126                 # out the default route on the Control Plane.
127                 #-
128                 #  type: vlan
129                 #  vlan_id: {get_param: ManagementNetworkVlanID}
130                 #  addresses:
131                 #    -
132                 #      ip_netmask: {get_param: ManagementIpSubnet}
133                 #  routes:
134                 #    -
135                 #      default: true
136                 #      next_hop: {get_param: ManagementInterfaceDefaultRoute}
137 outputs:
138   OS::stack_id:
139     description: The OsNetConfigImpl resource.
140     value:
141       get_resource: OsNetConfigImpl
142