Last active
December 28, 2015 23:49
-
-
Save mauromorales/7581734 to your computer and use it in GitHub Desktop.
Install Puppet client in Ubuntu
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| code_name = `lsb_release -c -s`.split | |
| puts "Installing Puppet client for Ubuntu #{code_name}" | |
| `wget http://apt.puppetlabs.com/puppetlabs-release-#{code_name}.deb` | |
| `sudo dpkg -i puppetlabs-release-#{code_name}.deb` | |
| `sudo apt-get update` | |
| `sudo apt-get -y install puppet` |
This file contains hidden or 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 | |
| code_name=$(lsb_release -c -s) | |
| echo "Installing Puppet client for Ubuntu ${code_name}" | |
| wget http://apt.puppetlabs.com/puppetlabs-release-${code_name}.deb | |
| sudo dpkg -i puppetlabs-release-${code_name}.deb | |
| sudo apt-get update | |
| sudo apt-get -y install puppet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment