Skip to content

Instantly share code, notes, and snippets.

@ruliana
Last active December 14, 2015 11:28
Show Gist options
  • Select an option

  • Save ruliana/5079371 to your computer and use it in GitHub Desktop.

Select an option

Save ruliana/5079371 to your computer and use it in GitHub Desktop.

Revisions

  1. ruliana revised this gist Mar 4, 2013. 1 changed file with 15 additions and 1 deletion.
    16 changes: 15 additions & 1 deletion bootstrap-chef-solo.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,25 @@
    #!/usr/bin/env bash

    # Pre-requisites
    apt-get -y update
    sudo apt-get --no-install-recommends -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev

    # Download and compile Ruby 2.0.0-p0
    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
    tar -xvzf ruby-2.0.0-p0.tar.gz
    cd ruby-2.0.0-p0
    ./configure --prefix=/usr/local
    make
    make install
    gem install chef ruby-shadow --no-ri --no-rdoc

    # Download and build Chef compatible with Ruby 2.0
    cd /tmp
    curl -o chef.tar.gz -L https://api.github.com/repos/opscode/chef/tarball/CHEF-3935
    tar -xvzf chef.tar.gz
    cd opscode-chef-634ad58
    gem build chef.gemspec
    gem install chef-11.4.0.gem --no-ri --no-rdoc

    # The rest
    gem install ruby-shadow --no-ri --no-rdoc
  2. ruliana created this gist Mar 4, 2013.
    11 changes: 11 additions & 0 deletions bootstrap-chef-solo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/usr/bin/env bash
    apt-get -y update
    sudo apt-get --no-install-recommends -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev
    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
    tar -xvzf ruby-2.0.0-p0.tar.gz
    cd ruby-2.0.0-p0
    ./configure --prefix=/usr/local
    make
    make install
    gem install chef ruby-shadow --no-ri --no-rdoc