Skip to content

Instantly share code, notes, and snippets.

@alChaCC
Forked from windless/bootstrap-chef-solo.sh
Last active August 29, 2015 14:06
Show Gist options
  • Save alChaCC/f1295f5024eb4de71008 to your computer and use it in GitHub Desktop.
Save alChaCC/f1295f5024eb4de71008 to your computer and use it in GitHub Desktop.

Revisions

  1. alChaCC revised this gist Sep 16, 2014. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions bootstrap-chef-solo.sh
    Original file line number Diff line number Diff line change
    @@ -14,11 +14,11 @@ sudo make install

    # Download and build Chef compatible with Ruby 2.1
    cd /tmp
    curl -o chef.tar.gz -L https://api.github.com/repos/opscode/chef/tarball/CHEF-3935
    curl -o chef.tar.gz -L https://github.com/opscode/chef-repo/tarball/master
    tar -xvzf chef.tar.gz
    cd opscode-chef-634ad58
    sudo gem build chef.gemspec
    sudo gem install chef-11.4.0.gem --no-ri --no-rdoc
    cd opscode-chef-repo-f9d4b0c
    curl -L https://www.opscode.com/chef/install.sh | sudo bash


    # The rest
    sudo gem install ruby-shadow --no-ri --no-rdoc
  2. alChaCC revised this gist Sep 16, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bootstrap-chef-solo.sh
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ tar -xvzf ruby-2.1.2.tar.gz
    cd ruby-2.1.2
    ./configure --prefix=/usr/local
    make
    make install
    sudo make install

    # Download and build Chef compatible with Ruby 2.1
    cd /tmp
  3. alChaCC revised this gist Sep 16, 2014. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions bootstrap-chef-solo.sh
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,7 @@

    # Pre-requisites
    sudo 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 vim

    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 vim git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
    # Download and compile Ruby 2.1.2
    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
  4. @windless windless revised this gist Jun 4, 2014. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions bootstrap-chef-solo.sh
    Original file line number Diff line number Diff line change
    @@ -4,16 +4,16 @@
    sudo 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 vim

    # Download and compile Ruby 2.0.0-p0
    # Download and compile Ruby 2.1.2
    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
    wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
    tar -xvzf ruby-2.1.2.tar.gz
    cd ruby-2.1.2
    ./configure --prefix=/usr/local
    make
    make install

    # Download and build Chef compatible with Ruby 2.0
    # Download and build Chef compatible with Ruby 2.1
    cd /tmp
    curl -o chef.tar.gz -L https://api.github.com/repos/opscode/chef/tarball/CHEF-3935
    tar -xvzf chef.tar.gz
  5. @gogojimmy gogojimmy revised this gist May 26, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions bootstrap-chef-solo.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/usr/bin/env bash

    # Pre-requisites
    apt-get -y update
    sudo 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 vim

    # Download and compile Ruby 2.0.0-p0
    @@ -18,8 +18,8 @@ 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
    sudo gem build chef.gemspec
    sudo gem install chef-11.4.0.gem --no-ri --no-rdoc

    # The rest
    gem install ruby-shadow --no-ri --no-rdoc
    sudo gem install ruby-shadow --no-ri --no-rdoc
  6. @gogojimmy gogojimmy revised this gist May 24, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bootstrap-chef-solo.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    # 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
    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 vim

    # Download and compile Ruby 2.0.0-p0
    cd /tmp
  7. @ruliana 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
  8. @ruliana 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