Skip to content

Instantly share code, notes, and snippets.

View sierra-tango-echo's full-sized avatar
💛
🛥️🚴‍♂️👬

Steve Norledge sierra-tango-echo

💛
🛥️🚴‍♂️👬
View GitHub Profile
#!/bin/bash
NETWORKTYPE='FLAT'
CLUSTER=`hostname -d | cut -d '.' -f 1`
DOMAIN=`hostname -d`
REALM=`echo $DOMAIN | sed -e 's/\(.*\)/\U\1/'`
FORWARDER=`grep nameserver /etc/resolv.conf | awk '{print $2}'`
PASSWORD=Pa55W0rd
#PREP HOSTFILE
#!/bin/bash
CLIENTNAME=login1
CLUSTER=cluster1
CLIENTIP=10.75.0.110
ONETIMEPASS=moose
KEYTAB=/root/hadder.keytab
KEYUSER=hadder
DOMAIN=`hostname -d`
#!/bin/bash
CLUSTER=cluster1
KEYTAB=/root/admin.keytab
KEYUSER=admin
DIRECTORYAPPLIANCE=`hostname -f`
DOMAIN=`hostname -d`
REALM=`echo $DOMAIN | sed -e 's/\(.*\)/\U\1/'`
#!/bin/bash
CLIENTNAME=login1
CLUSTER=cluster2
CLIENTIP=10.75.0.51
ONETIMEPASS=moose
DOMAIN=flighty.alces.network
REALM=`echo $DOMAIN | sed -e 's/\(.*\)/\U\1/'`
DIRECTORY_IP=10.75.0.161
#!/bin/bash
# Variables
CLUSTER_INTERFACE="eth1"
CLUSTER_IP="10.10.0.1"
CLUSTER_NETWORK="10.10.0.0"
CLUSTER_NETMASK="255.255.0.0"
CLUSTER_CIDR="$(ipcalc -p 1.1.1.1 255.255.0.0 |sed 's/.*=//g')"
DHCP_MIN="10.10.200.0"
DHCP_MAX="10.10.200.255"
NAME=metalcontroller1
RAWIMAGE=/Users/steve/iso/metalcontroller-1309191016_generic-cloudinit.raw
EXTERNALBRIDGEADAPTER=en0
CONSOLE=1
NIC2=1
ISO=/Users/steve/iso/metalcontroller_userdata.iso
VMPATH=/tmp/stevevm/${NAME}/
mkdir -p $VMPATH
#!/bin/bash -e
RAMDISKNAME=base-1309191049
IMAGEFILE=${RAMDISKNAME}_live.squash
IMAGEURL=https://flight-images.s3.eu-west-2.amazonaws.com/${IMAGEFILE}
SUPPORTPACKFILE=${RAMDISKNAME}_live.supportpack
SUPPORTPACKURL=https://flight-images.s3.eu-west-2.amazonaws.com/${SUPPORTPACKFILE}
DEPLOYMENTDIR=/opt/flight/deployment/ramdisk
IMAGEDIR=${DEPLOYMENTDIR}/${RAMDISKNAME}
#!/bin/bash -e
DISTRO=centos7
INSTALLKERNELURL=https://mirror.bytemark.co.uk/centos/7/os/x86_64/images/pxeboot/vmlinuz
INSTALLINITRDURL=https://mirror.bytemark.co.uk/centos/7/os/x86_64/images/pxeboot/initrd.img
INSTALLURL=https://mirror.bytemark.co.uk/centos/7/os/x86_64/
DEPLOYMENTDIR=/opt/flight/deployment/kickstart/${DISTRO}
NAME=node1
CONSOLE=0
VMPATH=/tmp/stevevm/${NAME}/
mkdir -p $VMPATH
VBoxManage createvm --name ${NAME} --ostype RedHat_64 --register --basefolder $VMPATH
VBoxManage modifyvm ${NAME} --cpus 1 --memory 4096 --vrde on --vrdeport 5001
#!/bin/bash -e
wget https://openflighthpc.s3-eu-west-1.amazonaws.com/repos/openflight-dev/openflight-dev.repo -O /etc/yum.repos.d/openflight-dev.repo
yum makecache
yum -y install flight-runway
yum -y install flight-metal