eb5e1e5a9cfb875262d1f7b75687af981d0fd6c4
[apex-tripleo-heat-templates.git] / network / config / single-nic-vlans / controller-no-external.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. No external IP is configured.
6
7 parameters:
8   ExternalIpSubnet:
9     default: ''
10     description: IP address/subnet on the external network
11     type: string
12   InternalApiIpSubnet:
13     default: ''
14     description: IP address/subnet on the internal API network
15     type: string
16   StorageIpSubnet:
17     default: ''
18     description: IP address/subnet on the storage network
19     type: string
20   StorageMgmtIpSubnet:
21     default: ''
22     description: IP address/subnet on the storage mgmt network
23     type: string
24   TenantIpSubnet:
25     default: ''
26     description: IP address/subnet on the tenant network
27     type: string
28   ManagementIpSubnet: # Only populated when including environments/network-management.yaml
29     default: ''
30     description: IP address/subnet on the management network
31     type: string
32   ExternalNetworkVlanID:
33     default: 10
34     description: Vlan ID for the external network traffic.
35     type: number
36   InternalApiNetworkVlanID:
37     default: 20
38     description: Vlan ID for the internal_api network traffic.
39     type: number
40   StorageNetworkVlanID:
41     default: 30
42     description: Vlan ID for the storage network traffic.
43     type: number
44   StorageMgmtNetworkVlanID:
45     default: 40
46     description: Vlan ID for the storage mgmt network traffic.
47     type: number
48   TenantNetworkVlanID:
49     default: 50
50     description: Vlan ID for the tenant network traffic.
51     type: number
52   ManagementNetworkVlanID:
53     default: 60
54     description: Vlan ID for the management network traffic.
55     type: number
56   ExternalInterfaceDefaultRoute:
57     default: '10.0.0.1'
58     description: default route for the external network
59     type: string
60
61 resources:
62   OsNetConfigImpl:
63     type: OS::Heat::StructuredConfig
64     properties:
65       group: os-apply-config
66       config:
67         os_net_config:
68           network_config:
69             -
70               type: ovs_bridge
71               name: {get_input: bridge_name}
72               use_dhcp: true
73               members:
74                 -
75                   type: interface
76                   name: nic1
77                   # force the MAC address of the bridge to this interface
78                   primary: true
79                 -
80                   type: vlan
81                   vlan_id: {get_param: InternalApiNetworkVlanID}
82                   addresses:
83                   -
84                     ip_netmask: {get_param: InternalApiIpSubnet}
85                 -
86                   type: vlan
87                   vlan_id: {get_param: StorageNetworkVlanID}
88                   addresses:
89                   -
90                     ip_netmask: {get_param: StorageIpSubnet}
91                 -
92                   type: vlan
93                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
94                   addresses:
95                   -
96                     ip_netmask: {get_param: StorageMgmtIpSubnet}
97                 -
98                   type: vlan
99                   vlan_id: {get_param: TenantNetworkVlanID}
100                   addresses:
101                   -
102                     ip_netmask: {get_param: TenantIpSubnet}
103                 # Uncomment when including environments/network-management.yaml
104                 #-
105                 #  type: vlan
106                 #  vlan_id: {get_param: ManagementNetworkVlanID}
107                 #  addresses:
108                 #    -
109                 #      ip_netmask: {get_param: ManagementIpSubnet}
110
111 outputs:
112   OS::stack_id:
113     description: The OsNetConfigImpl resource.
114     value: {get_resource: OsNetConfigImpl}