Newer
Older
GITPROJ=https://chaos.expert/ccc-ffm/4Refugees-InternetCafe
#pull myself from git repo
wget "${GITPROJ}/raw/master/bootstrap.sh" -O /root/bootstrap.sh
#check for install.hqs
if ping -c 5 instal.hq; then
echo 'Acquire::http::Proxy "http://install.hq:8080/";' > /etc/apt/apt.conf
else
echo "#no proxy" > /etc/apt/apt.conf
fi
apt update
apt install git puppet vim
apt full-upgrade
if [ ! -e /etc/puppet/.git ]; then
mv /etc/puppet /etc/puppet.orig
git clone ${GITPROJ}.git /etc/puppet
fi
git remote set-url origin ${GITPROJ}.git
git submodule init
git submodule update
puppet apply /etc/puppet/manifests/site.pp