Skip to content

Instantly share code, notes, and snippets.

@kalmanolah
Created November 30, 2013 06:51
Show Gist options
  • Save kalmanolah/7716150 to your computer and use it in GitHub Desktop.
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.
#!/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