Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions depl/pre/bootstrap-deployer
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

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

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

if [ ! -d "/root/deployment" ]; then
mkdir /root/deployment
mkdir /root/deployment
fi

cd /root/deployment
Expand Down
6 changes: 6 additions & 0 deletions depl/pre/prepare_baremetals
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!!/usr/bin/env bash

#prepare baremetals for ursula deploy
for i in $(cat ~/.ssh/config | grep Host | grep HostName | awk '{ print $2 }'); do
ssh $i 'echo \"APT::Get::AllowUnauthenticated \"true\";\" >> /etc/apt/apt.conf.d/99myauth; apt-get update; parted /dev/sdb --script rm 1'
done
2 changes: 1 addition & 1 deletion vm/rebuild/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ do
fi
done

# the biz
# Allow for unauthenticated packages
for arg in "$@"
do
if [[ "$arg" != "-p" ]]; then
Expand Down