Skip to content

Commit aef49e2

Browse files
author
epwn
committed
Add prepare baremetal steps
Adds steps to prepare baremetals before running site.yml Note: cleaned up some code
1 parent 33c6830 commit aef49e2

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

depl/pre/bootstrap-deployer

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# check for service name and git repo supplied on CLI
44
if [ "$#" -ne 2 ]; then
5-
echo -e "Not enough args given. Please use the form:\n./bootstrap-deployer <service name> <git repo clone link>"
6-
echo -e "Example:\n./bootstrap-deployer CullenTaylor https://github.com/USER/REPO"
7-
exit
5+
echo -e "Not enough args given. Please use the form:\n./bootstrap-deployer <service name> <git repo clone link>"
6+
echo -e "Example:\n./bootstrap-deployer CullenTaylor https://github.com/USER/REPO"
7+
exit
88
fi
99

1010
# install prerequisite packages
@@ -16,7 +16,7 @@ echo -e "export WORKON_HOME=$HOME/.virtualenvs\nexport PROJECT_HOME=/root/develo
1616
source ~/.bashrc
1717

1818
if [ ! -d "/root/deployment" ]; then
19-
mkdir /root/deployment
19+
mkdir /root/deployment
2020
fi
2121

2222
cd /root/deployment

depl/pre/prepare_baremetals

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!!/usr/bin/env bash
2+
3+
#prepare baremetals for ursula deploy
4+
for i in $(cat ~/.ssh/config | grep Host | grep HostName | awk '{ print $2 }'); do
5+
ssh $i 'echo \"APT::Get::AllowUnauthenticated \"true\";\" >> /etc/apt/apt.conf.d/99myauth; apt-get update; parted /dev/sdb --script rm 1'
6+
done

vm/rebuild/rebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ do
3737
fi
3838
done
3939

40-
# the biz
40+
# Allow for unauthenticated packages
4141
for arg in "$@"
4242
do
4343
if [[ "$arg" != "-p" ]]; then

0 commit comments

Comments
 (0)