Skip to content
Snippets Groups Projects
Commit f035708c authored by John-Paul Robinson's avatar John-Paul Robinson
Browse files

Add network create and delete scripts for openstack project

These scripts create standard dmz and cluster networks for
hosting the development cluster.
parent 14a6a54a
No related branches found
No related tags found
1 merge request!34Add openstack to vagrant
#!/bin/bash
# Create the dmz and cluster networks as the external and
# internal networks of the ohpc cluster
# create the dmz network for the head node to attach
openstack network create dmznet
openstack subnet create --subnet-range 192.168.100.0/24 --dns-nameserver 8.8.8.8 --network dmznet dmzsubnet
# connect dmz to the internet
openstack router create borderrouter
openstack router set borderrouter --external-gateway bright-external-flat-externalnet
openstack router add subnet borderrouter dmzsubnet
# create the cluster network for the compute nodes
openstack network create clusternet
openstack subnet create --subnet-range 10.1.1.0/24 --no-dhcp --network clusternet clustersubnet
#!/bin/bash
# delete the dmz and cluster networks as the external and
# internal networks of the ohpc cluster
# delete the dmz network for the head node to attach
openstack router remove subnet borderrouter dmzsubnet
openstack network delete dmznet
# remove connect dmz to the internet
openstack router delete borderrouter
# delete the cluster network for the compute nodes
openstack network delete clusternet
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment