diff --git a/depl/pre/bootstrap-deployer b/depl/pre/bootstrap-deployer index f3e2241..a891afb 100755 --- a/depl/pre/bootstrap-deployer +++ b/depl/pre/bootstrap-deployer @@ -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 " - 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 " + echo -e "Example:\n./bootstrap-deployer CullenTaylor https://github.com/USER/REPO" + exit fi # install prerequisite packages @@ -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 diff --git a/depl/pre/prepare_baremetals b/depl/pre/prepare_baremetals new file mode 100755 index 0000000..860f232 --- /dev/null +++ b/depl/pre/prepare_baremetals @@ -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 diff --git a/vm/rebuild/rebuild.sh b/vm/rebuild/rebuild.sh index 19b9716..2a0615e 100644 --- a/vm/rebuild/rebuild.sh +++ b/vm/rebuild/rebuild.sh @@ -37,7 +37,7 @@ do fi done -# the biz +# Allow for unauthenticated packages for arg in "$@" do if [[ "$arg" != "-p" ]]; then