This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Generating example config iso" | |
| if [ -f /tmp/imageiso ]; then | |
| rm -rf /tmp/imageiso | |
| fi | |
| mkdir -p /tmp/imageiso/ | |
| META=/tmp/imageiso/meta-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -ex | |
| FLIGHT_APPLIANCE_MENU_BRANCH=dev/vpn | |
| FLIGHT_GUI_BRANCH=master | |
| ########Base Packages########### | |
| yum -y install patch autoconf automake bison bzip2 gcc-c++ libffi-devel libtool \ | |
| patch readline-devel ruby sqlite-devel zlib-devel glibc-headers glibc-devel openssl-devel make unzip wget git | |
| yum -y install epel-release | |
| yum -y install openvpn easy-rsa bind-utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| RAWIMAGE=/opt/vm/metalcontroller-2609190930_generic-cloudinit.raw | |
| VMNAME=metalcontroller | |
| EXTERNALBRIDGE=external | |
| CLUSTERBRIDGE=build | |
| VMPATH=/opt/vm/ | |
| CONFIGISO=/opt/iso/metalcontroller_userdata.iso |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CONTROLLER=http://10.10.0.1 | |
| wget "${CONTROLLER}/deployment/files/dtk.tgz" -O /tmp/dtk.tgz | |
| tar -zxvf /tmp/dtk.tgz -C /tmp/. | |
| yum -y localinstall /tmp/srvadmin-idracadm7-9.3.0-3425.14676.el7.x86_64.rpm /tmp/srvadmin-hapi-9.3.0-3425.14676.el7.x86_64.rpm /tmp/srvadmin-omilcore-9.3.0-3425.14676.el7.x86_64.rpm /tmp/srvadmin-argtable2-9.3.0-3425.14676.el7.x86_64.rpm | |
| curl ${CONTROLLER}/deployment/files/dell_config.xml > /tmp/config.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Prerequisites | |
| yum install -y wget | |
| # Setup repo | |
| cd /etc/yum.repos.d | |
| wget https://openflighthpc.s3-eu-west-1.amazonaws.com/repos/openflight/openflight.repo | |
| wget https://openflighthpc.s3-eu-west-1.amazonaws.com/repos/openflight-dev/openflight-dev.repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Prerequisites | |
| yum install -y wget dmidecode git ipmitool | |
| # Setup repo | |
| yum -y install https://repo.openflighthpc.org/pub/centos/7/openflighthpc-release-latest.noarch.rpm | |
| # Install hunter | |
| yum makecache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| # Variables | |
| CLUSTER_INTERFACE="eth0" | |
| # Prerequisites | |
| yum -y install vim httpd git | |
| # Install cloud tools | |
| ## AWS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Install packages and enable | |
| yum -y install cloud-init cloud-utils-growpart | |
| systemctl enable cloud-init.service | |
| #Use NoCloud datasource | |
| cat << EOF > /etc/cloud/cloud.cfg.d/zz_flight.cfg | |
| cloud_init_modules: | |
| - disk_setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "ssh_keys:" | |
| new_keys () { | |
| TYPE=$1 | |
| cd /tmp | |
| echo "y" | ssh-keygen -t $TYPE -N '' -f key$$ &>/dev/null | |
| echo " ${TYPE}_private: |" | |
| cat key$$ | while read l; do echo " ${l}"; done | |
| echo " ${TYPE}_public: |" | |
| cat key$$.pub | while read l; do echo " ${l}"; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Add NoCloud options to grub boot | |
| network_config=`curl -q "${PERSONALITY_URL}/network-config" 2>/dev/null| base64 -w 0` | |
| grubby --update-kernel ALL --args network-config="${network_config}" | |
| grubby --update-kernel ALL --args ds="\'nocloud-net;seedfrom=${PERSONALITY_URL}\'" |