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