Created
November 30, 2013 06:51
-
-
Save kalmanolah/7716150 to your computer and use it in GitHub Desktop.
Script for installing the Foreman installer with the latest version of puppet from the puppetlabs repo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Foreman repo | |
echo "deb http://deb.theforeman.org/ wheezy 1.3" > /etc/apt/sources.list.d/foreman.list | |
wget -q http://deb.theforeman.org/foreman.asc -O- | apt-key add - | |
# PuppetLabs repo | |
cat > /etc/apt/sources.list.d/puppetlabs.list << EOL | |
deb http://apt.puppetlabs.com wheezy main devel dependencies | |
deb-src http://apt.puppetlabs.com wheezy main devel dependencies | |
EOL | |
apt-key adv --keyserver pgp.mit.edu --recv 4BD6EC30 | |
# Update | |
apt-get update | |
# Finally, install | |
apt-get install -y foreman-installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment