Skip to content

Instantly share code, notes, and snippets.

@cloud8421
Last active October 6, 2015 08:38
Show Gist options
  • Save cloud8421/2966788 to your computer and use it in GitHub Desktop.
Save cloud8421/2966788 to your computer and use it in GitHub Desktop.
Bootstrap Puppet/Chef on Ubuntu 11.04 and Ruby 1.9.3
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p374.tar.gz
tar -xvzf ruby-1.9.3-p374.tar.gz
cd ruby-1.9.3-p374/
./configure --prefix=/usr/local
make
sudo make install
sudo gem install chef ruby-shadow --no-ri --no-rdoc
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p374.tar.gz
tar -xvzf ruby-1.9.3-p374.tar.gz
cd ruby-1.9.3-p374/
./configure --prefix=/usr/local
make
sudo make install
sudo gem install puppet --no-ri --no-rdoc
sudo useradd --comment "Puppet" --no-create-home --system --shell /bin/false puppet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment