Merge "Update the capabilities map file name to be more consistent"
[apex-tripleo-heat-templates.git] / network / config / bond-with-vlans / ceph-storage.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config with 2 bonded nics on a bridge
5   with VLANs attached for the 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   BondInterfaceOvsOptions:
37     default: ''
38     description: The ovs_options string for the bond interface. Set things like
39                  lacp=active and/or bond_mode=balance-slb using this option.
40     type: string
41   StorageNetworkVlanID:
42     default: 30
43     description: Vlan ID for the storage network traffic.
44     type: number
45   StorageMgmtNetworkVlanID:
46     default: 40
47     description: Vlan ID for the storage mgmt network traffic.
48     type: number
49   ManagementNetworkVlanID:
50     default: 60
51     description: Vlan ID for the management network traffic.
52     type: number
53   ControlPlaneSubnetCidr: # Override this via parameter_defaults
54     default: '24'
55     description: The subnet CIDR of the control plane network.
56     type: string
57   ControlPlaneDefaultRoute: # Override this via parameter_defaults
58     description: The default route of the control plane network.
59     type: string
60   DnsServers: # Override this via parameter_defaults
61     default: []
62     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
63     type: comma_delimited_list
64   EC2MetadataIp: # Override this via parameter_defaults
65     description: The IP address of the EC2 metadata server.
66     type: string
67
68 resources:
69   OsNetConfigImpl:
70     type: OS::Heat::StructuredConfig
71     properties:
72       group: os-apply-config
73       config:
74         os_net_config:
75           network_config:
76             -
77               type: interface
78               name: nic1
79               use_dhcp: false
80               dns_servers: {get_param: DnsServers}
81               addresses:
82                 -
83                   ip_netmask:
84                     list_join:
85                       - '/'
86                       - - {get_param: ControlPlaneIp}
87                         - {get_param: ControlPlaneSubnetCidr}
88               routes:
89                 -
90                   ip_netmask: 169.254.169.254/32
91                   next_hop: {get_param: EC2MetadataIp}
92                 -
93                   default: true
94                   next_hop: {get_param: ControlPlaneDefaultRoute}
95             -
96               type: ovs_bridge
97               name: br-bond
98               members:
99                 -
100                   type: ovs_bond
101                   name: bond1
102                   ovs_options: {get_param: BondInterfaceOvsOptions}
103                   members:
104                     -
105                       type: interface
106                       name: nic2
107                       primary: true
108                     -
109                       type: interface
110                       name: nic3
111                 -
112                   type: vlan
113                   device: bond1
114                   vlan_id: {get_param: StorageNetworkVlanID}
115                   addresses:
116                     -
117                       ip_netmask: {get_param: StorageIpSubnet}
118                 -
119                   type: vlan
120                   device: bond1
121                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
122                   addresses:
123                     -
124                       ip_netmask: {get_param: StorageMgmtIpSubnet}
125                 # Uncomment when including environments/network-management.yaml
126                 #-
127                 #  type: vlan
128                 #  device: bond1
129                 #  vlan_id: {get_param: ManagementNetworkVlanID}
130                 #  addresses:
131                 #    -
132                 #      ip_netmask: {get_param: ManagementIpSubnet}
133
134 outputs:
135   OS::stack_id:
136     description: The OsNetConfigImpl resource.
137     value: {get_resource: OsNetConfigImpl}