Skip to content

Instantly share code, notes, and snippets.

@robbwagoner
Created October 24, 2014 20:05
Show Gist options
  • Save robbwagoner/fb0a587e48ffd7401696 to your computer and use it in GitHub Desktop.
Save robbwagoner/fb0a587e48ffd7401696 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
if [ -f /etc/os-release ] ; then
# newer OS
source /etc/os-release
fi
if [[ $ID_LIKE == "debian" ]] ; then
echo "Debian-like Distro: $PRETTY_NAME"
else
echo "ERROR: unsupported $ID_LIKE ($PRETTY_NAME)" 1>&2
exit 2
fi
# Jenkins
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins -y
# HAProxy
sudo add-apt-repository ppa:vbernat/haproxy-1.5
sudo apt-get install haproxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment