Merge "Enable SSL middleware for cinder"
[apex-tripleo-heat-templates.git] / network / config / single-nic-linux-bridge-vlans / ceph-storage.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   ceph storage role.
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   StorageNetworkVlanID:
33     default: 30
34     description: Vlan ID for the storage network traffic.
35     type: number
36   StorageMgmtNetworkVlanID:
37     default: 40
38     description: Vlan ID for the storage mgmt network traffic.
39     type: number
40   ControlPlaneSubnetCidr: # Override this via parameter_defaults
41     default: '24'
42     description: The subnet CIDR of the control plane network.
43     type: string
44   ControlPlaneDefaultRoute: # Override this via parameter_defaults
45     description: The default route of the control plane network.
46     type: string
47   DnsServers: # Override this via parameter_defaults
48     default: []
49     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
50     type: comma_delimited_list
51   EC2MetadataIp: # Override this via parameter_defaults
52     description: The IP address of the EC2 metadata server.
53     type: string
54
55 resources:
56   OsNetConfigImpl:
57     type: OS::Heat::StructuredConfig
58     properties:
59       group: os-apply-config
60       config:
61         os_net_config:
62           network_config:
63             -
64               type: linux_bridge
65               name: br-storage
66               use_dhcp: false
67               dns_servers: {get_param: DnsServers}
68               addresses:
69                 -
70                   ip_netmask:
71                     list_join:
72                       - '/'
73                       - - {get_param: ControlPlaneIp}
74                         - {get_param: ControlPlaneSubnetCidr}
75               routes:
76                 -
77                   ip_netmask: 169.254.169.254/32
78                   next_hop: {get_param: EC2MetadataIp}
79                 -
80                   default: true
81                   next_hop: {get_param: ControlPlaneDefaultRoute}
82               members:
83                 -
84                   type: interface
85                   name: nic1
86                   # force the MAC address of the bridge to this interface
87                   primary: true
88             -
89               type: vlan
90               vlan_id: {get_param: StorageNetworkVlanID}
91               device: br-storage
92               addresses:
93                 -
94                   ip_netmask: {get_param: StorageIpSubnet}
95             -
96               type: vlan
97               vlan_id: {get_param: StorageMgmtNetworkVlanID}
98               device: br-storage
99               addresses:
100                 -
101                   ip_netmask: {get_param: StorageMgmtIpSubnet}
102
103 outputs:
104   OS::stack_id:
105     description: The OsNetConfigImpl resource.
106     value: {get_resource: OsNetConfigImpl}