Skip to content

Instantly share code, notes, and snippets.

@elliot-huffman
Created January 30, 2017 13:28
Show Gist options
  • Save elliot-huffman/c11eed76aaa480a9c1e0f41abf7030da to your computer and use it in GitHub Desktop.
Save elliot-huffman/c11eed76aaa480a9c1e0f41abf7030da to your computer and use it in GitHub Desktop.
Automatically sets up the Puppetlabs repository for your platform.
#!/bin/bash
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-$(lsb_release -cs).deb
sudo dpkg -i puppetlabs-release-pc1-$(lsb_release -cs).deb
rm puppetlabs-release-pc1-$(lsb_release -cs).deb
sudo apt-get update
sudo apt-get install --only-upgrade puppetlabs-release-pc1
sudo apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment