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
echo 'Acquire::http::Proxy "http://install.hq:8080/";' > /etc/apt/apt.conf
facter --yaml /tmp/facts.yaml
curl -T /tmp/facts.yaml ftp://install.hq/refugee-notebooks/${HOSTNAME}.yaml
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