Merge "Fixup the memcached servers string in nova.conf for v6"
[apex-tripleo-heat-templates.git] / network / config / single-nic-vlans / controller-v6.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config to configure VLANs for the
5   controller role with IPv6 on the External network. The IPv6 default
6   route is on the External network, and the IPv4 default route is on
7   the Control Plane.
8
9 parameters:
10   ControlPlaneIp:
11     default: ''
12     description: IP address/subnet on the ctlplane network
13     type: string
14   ExternalIpSubnet:
15     default: ''
16     description: IP address/subnet on the external network
17     type: string
18   InternalApiIpSubnet:
19     default: ''
20     description: IP address/subnet on the internal API network
21     type: string
22   StorageIpSubnet:
23     default: ''
24     description: IP address/subnet on the storage network
25     type: string
26   StorageMgmtIpSubnet:
27     default: ''
28     description: IP address/subnet on the storage mgmt network
29     type: string
30   TenantIpSubnet:
31     default: ''
32     description: IP address/subnet on the tenant network
33     type: string
34   ManagementIpSubnet: # Only populated when including environments/network-management.yaml
35     default: ''
36     description: IP address/subnet on the management network
37     type: string
38   ExternalNetworkVlanID:
39     default: 10
40     description: Vlan ID for the external network traffic.
41     type: number
42   InternalApiNetworkVlanID:
43     default: 20
44     description: Vlan ID for the internal_api network traffic.
45     type: number
46   StorageNetworkVlanID:
47     default: 30
48     description: Vlan ID for the storage network traffic.
49     type: number
50   StorageMgmtNetworkVlanID:
51     default: 40
52     description: Vlan ID for the storage mgmt network traffic.
53     type: number
54   TenantNetworkVlanID:
55     default: 50
56     description: Vlan ID for the tenant network traffic.
57     type: number
58   ManagementNetworkVlanID:
59     default: 60
60     description: Vlan ID for the management network traffic.
61     type: number
62   ExternalInterfaceDefaultRoute:
63     default: '10.0.0.1'
64     description: default route for the external network
65     type: string
66   ControlPlaneSubnetCidr: # Override this via parameter_defaults
67     default: '24'
68     description: The subnet CIDR of the control plane network.
69     type: string
70   ControlPlaneDefaultRoute: # Override this via parameter_defaults
71     description: The default route of the control plane network.
72     type: string
73   DnsServers: # Override this via parameter_defaults
74     default: []
75     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
76     type: comma_delimited_list
77   EC2MetadataIp: # Override this via parameter_defaults
78     description: The IP address of the EC2 metadata server.
79     type: string
80
81 resources:
82   OsNetConfigImpl:
83     type: OS::Heat::StructuredConfig
84     properties:
85       group: os-apply-config
86       config:
87         os_net_config:
88           network_config:
89             -
90               type: ovs_bridge
91               name: {get_input: bridge_name}
92               use_dhcp: false
93               dns_servers: {get_param: DnsServers}
94               addresses:
95                 -
96                   ip_netmask:
97                     list_join:
98                       - '/'
99                       - - {get_param: ControlPlaneIp}
100                         - {get_param: ControlPlaneSubnetCidr}
101               routes:
102                 -
103                   ip_netmask: 169.254.169.254/32
104                   next_hop: {get_param: EC2MetadataIp}
105                 -
106                   default: true
107                   next_hop: {get_param: ControlPlaneDefaultRoute}
108               members:
109                 -
110                   type: interface
111                   name: nic1
112                   # force the MAC address of the bridge to this interface
113                   primary: true
114                 -
115                   type: vlan
116                   vlan_id: {get_param: ExternalNetworkVlanID}
117                   addresses:
118                   -
119                     ip_netmask: {get_param: ExternalIpSubnet}
120                   routes:
121                     -
122                       default: true
123                       next_hop: {get_param: ExternalInterfaceDefaultRoute}
124                 -
125                   type: vlan
126                   vlan_id: {get_param: InternalApiNetworkVlanID}
127                   addresses:
128                     -
129                       ip_netmask: {get_param: InternalApiIpSubnet}
130                 -
131                   type: vlan
132                   vlan_id: {get_param: StorageNetworkVlanID}
133                   addresses:
134                     -
135                       ip_netmask: {get_param: StorageIpSubnet}
136                 -
137                   type: vlan
138                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
139                   addresses:
140                     -
141                       ip_netmask: {get_param: StorageMgmtIpSubnet}
142                 -
143                   type: vlan
144                   vlan_id: {get_param: TenantNetworkVlanID}
145                   addresses:
146                     -
147                       ip_netmask: {get_param: TenantIpSubnet}
148                 #-  # Uncomment when including environments/network-management.yaml
149                 #  type: vlan
150                 #  vlan_id: {get_param: ManagementNetworkVlanID}
151                 #  addresses:
152                 #    -
153                 #      ip_netmask: {get_param: ManagementIpSubnet}
154
155 outputs:
156   OS::stack_id:
157     description: The OsNetConfigImpl resource.
158     value: {get_resource: OsNetConfigImpl}