Skip to content

Instantly share code, notes, and snippets.

@chopmann
Created April 18, 2016 12:43
Show Gist options
  • Save chopmann/289bdd5e634c0e44341e52c404a2834e to your computer and use it in GitHub Desktop.
Save chopmann/289bdd5e634c0e44341e52c404a2834e to your computer and use it in GitHub Desktop.
adv_net_template:
default:
nic_mapping:
default:
if1: eth0
if2: eth1
if3: eth2
if4: eth3
if5: eth4
if6: eth5
if7: eth6
if8: eth7
if9: eth8
if10: eth9
if11: eth10
if12: eth11
node-5:
# controller-1
if1: eth6 # PXE - Admin / pxe
if2: eth0 # Management - Openstack / mgmt_ops
if3: eth5 # Management - Openstack / mgmt_ops
if4: eth1 # Tenant - Private LANs / tenant
if5: eth2 # Tenant - Private LANs / tenant
if6: eth3 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
if8: eth7 # Public - C Class / public
if9: eth8 # Public - C Class / public
if10: eth9 # Public - C Class / public
node-4:
# controller-2
if1: eth6 # PXE - Admin / pxe
if2: eth0 # Management - Openstack / mgmt_ops
if3: eth5 # Management - Openstack / mgmt_ops
if4: eth1 # Tenant - Private LANs / tenant
if5: eth2 # Tenant - Private LANs / tenant
if6: eth3 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
if8: eth7 # Public - C Class / public
if9: eth8 # Public - C Class / public
if10: eth9 # Public - C Class / public
node-6:
# controller-3
if1: eth6 # PXE - Admin / pxe
if2: eth0 # Management - Openstack / mgmt_ops
if3: eth5 # Management - Openstack / mgmt_ops
if4: eth1 # Tenant - Private LANs / tenant
if5: eth2 # Tenant - Private LANs / tenant
if6: eth3 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
if8: eth7 # Public - C Class / public
if9: eth8 # Public - C Class / public
if10: eth9 # Public - C Class / public
node-7:
# compute-1
if1: eth6 # PXE - Admin / pxe
if2: eth0 # Management - Openstack / mgmt_ops
if3: eth5 # Management - Openstack / mgmt_ops
if4: eth1 # Tenant - Private LANs / tenant
if5: eth2 # Tenant - Private LANs / tenant
if6: eth3 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
node-8:
# compute-2
if1: eth6 # PXE - Admin / pxe
if2: eth0 # Management - Openstack / mgmt_ops
if3: eth5 # Management - Openstack / mgmt_ops
if4: eth1 # Tenant - Private LANs / tenant
if5: eth2 # Tenant - Private LANs / tenant
if6: eth3 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
node-9:
# compute-3
if1: eth6 # PXE - Admin / pxe
if2: eth0 # Management - Openstack / mgmt_ops
if3: eth5 # Management - Openstack / mgmt_ops
if4: eth1 # Tenant - Private LANs / tenant
if5: eth2 # Tenant - Private LANs / tenant
if6: eth3 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
node-2:
# storage-1
if1: eth8 # PXE - Admin / pxe
if2: eth9 # Management - Openstack / mgmt_ops
if3: eth10 # Management - Openstack / mgmt_ops
if4: eth1 # Ceph - Storage Backend / ceph_back || Tenant - Private LANs / tenant
if5: eth2 # Ceph - Storage Backend / ceph_back || Tenant - Private LANs / tenant
if6: eth0 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
if8: eth7 # Ceph - Storage Frontend / ceph_front || Public - C Class / public
if9: eth3 # Ceph - Storage Backend / ceph_back || Public - C Class / public
if10: eth5 # Ceph - Storage Backend / ceph_back || Public - C Class / public
if11: eth11 # Management - Openstack / mgmt_ops
if12: eth6 # Ceph - Storage Backend / ceph_back
node-3:
# storage-2
if1: eth8 # PXE - Admin / pxe
if2: eth9 # Management - Openstack / mgmt_ops
if3: eth10 # Management - Openstack / mgmt_ops
if4: eth1 # Ceph - Storage Backend / ceph_back || Tenant - Private LANs / tenant
if5: eth2 # Ceph - Storage Backend / ceph_back || Tenant - Private LANs / tenant
if6: eth0 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
if8: eth7 # Ceph - Storage Frontend / ceph_front || Public - C Class / public
if9: eth3 # Ceph - Storage Backend / ceph_back || Public - C Class / public
if10: eth5 # Ceph - Storage Backend / ceph_back || Public - C Class / public
if11: eth11 # Management - Openstack / mgmt_ops
if12: eth6 # Ceph - Storage Backend / ceph_back
node-1:
# storage-3
if1: eth8 # PXE - Admin / pxe
if2: eth9 # Management - Openstack / mgmt_ops
if3: eth10 # Management - Openstack / mgmt_ops
if4: eth1 # Ceph - Storage Backend / ceph_back || Tenant - Private LANs / tenant
if5: eth2 # Ceph - Storage Backend / ceph_back || Tenant - Private LANs / tenant
if6: eth0 # Ceph - Storage Frontend / ceph_front
if7: eth4 # Ceph - Storage Frontend / ceph_front
if8: eth7 # Ceph - Storage Frontend / ceph_front || Public - C Class / public
if9: eth3 # Ceph - Storage Backend / ceph_back || Public - C Class / public
if10: eth5 # Ceph - Storage Backend / ceph_back || Public - C Class / public
if11: eth11 # Management - Openstack / mgmt_ops
if12: eth6 # Ceph - Storage Backend / ceph_back
templates_for_node_role:
controller:
- common
- ctl_cmp
- public
compute:
- common
- ctl_cmp
ceph-osd:
- common
- str
network_assignments:
mgmt_ops:
ep: br-mgmt-ops
tenant:
ep: br-tenant
ceph_front:
ep: br-ceph-front
pxe:
ep: br-pxe
public:
ep: br-public
ceph_back:
ep: br-ceph-back
network_scheme:
common:
transformations:
- action: add-br
name: br-pxe
- action: add-port
bridge: br-pxe
name: <% if1 %>
endpoints:
- br-pxe
roles:
admin/pxe: br-pxe
ctl_cmp:
transformations:
- action: add-br
name: br-tenant
- action: add-br
name: br-ceph-front
- action: add-br
name: br-mgmt-ops
- action: add-bond
bridge: br-tenant
name: bond_tenant
interfaces:
- <% if4 %>
- <% if5 %>
bond_properties:
mode: active-active
interface_properties: {}
- action: add-bond
bridge: br-ceph-front
name: bond_ceph_front
interfaces:
- <% if6 %>
- <% if7 %>
bond_properties:
mode: active-active
interface_properties: {}
- action: add-bond
bridge: br-mgmt-ops
name: bond_mgmt_ops
interfaces:
- <% if2 %>
- <% if3 %>
bond_properties:
mode: active-active
interface_properties: {}
endpoints:
- br-tenant
- br-ceph-front
- br-mgmt-ops
roles:
neutron/private: br-tenant
ceph/radosgw: br-ceph-front
ceph/public: br-ceph-front
mongo/db: br-mgmt-ops
keystone/api: br-mgmt-ops
neutron/api: br-mgmt-ops
neutron/mesh: br-mgmt-ops
swift/api: br-mgmt-ops
sahara/api: br-mgmt-ops
ceilometer/api: br-mgmt-ops
cinder/api: br-mgmt-ops
glance/api: br-mgmt-ops
heat/api: br-mgmt-ops
nova/api: br-mgmt-ops
nova/migration: br-mgmt-ops
murano/api: br-mgmt-ops
horizon: br-mgmt-ops
mgmt/messaging: br-mgmt-ops
mgmt/corosync: br-mgmt-ops
mgmt/memcache: br-mgmt-ops
mgmt/database: br-mgmt-ops
cinder/iscsi: br-mgmt-ops
swift/replication: br-mgmt-ops
public:
transformations:
- action: add-br
name: br-public
- action: add-bond
bridge: br-public
name: bond_public
interfaces:
- <% if8 %>
- <% if9 %>
- <% if10 %>
bond_properties:
mode: active-active
interface_properties: {}
endpoints:
- br-public
roles:
public/vip: br-public
neutron/floating: br-public
ex: br-public
str:
transformations:
- action: add-br
name: br-ceph-front
- action: add-br
name: br-ceph-back
- action: add-br
name: br-mgmt-ops
- action: add-bond
bridge: br-ceph-front
name: bond_ceph_front
interfaces:
- <% if6 %>
- <% if7 %>
- <% if8 %>
bond_properties:
mode: active-active
interface_properties: {}
- action: add-bond
bridge: br-ceph-back
name: bond_ceph_back
interfaces:
- <% if4 %>
- <% if5 %>
- <% if9 %>
- <% if10 %>
- <% if12 %>
bond_properties:
mode: active-active
interface_properties: {}
- action: add-bond
bridge: br-ceph-front
name: bond_ceph_front
interfaces:
- <% if2 %>
- <% if3 %>
- <% if11 %>
bond_properties:
mode: active-active
interface_properties: {}
endpoints:
- br-ceph-front
- br-ceph-back
- br-mgmt-ops
roles:
ceph/radosgw: br-ceph-front
ceph/public: br-ceph-front
ceph/replication: br-ceph-back
mongo/db: br-mgmt-ops
keystone/api: br-mgmt-ops
neutron/api: br-mgmt-ops
neutron/mesh: br-mgmt-ops
swift/api: br-mgmt-ops
sahara/api: br-mgmt-ops
ceilometer/api: br-mgmt-ops
cinder/api: br-mgmt-ops
glance/api: br-mgmt-ops
heat/api: br-mgmt-ops
nova/api: br-mgmt-ops
nova/migration: br-mgmt-ops
murano/api: br-mgmt-ops
horizon: br-mgmt-ops
mgmt/messaging: br-mgmt-ops
mgmt/corosync: br-mgmt-ops
mgmt/memcache: br-mgmt-ops
mgmt/database: br-mgmt-ops
cinder/iscsi: br-mgmt-ops
swift/replication: br-mgmt-ops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment