Skip to content

Instantly share code, notes, and snippets.

@just3ws
Forked from ryanb/chef_solo_bootstrap.sh
Last active December 15, 2015 01:58

Revisions

  1. Michael D. Hall revised this gist Mar 25, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -19,10 +19,10 @@ apt-get -y install tklib
    apt-get -y install zlib1g-dev libssl-dev

    # Readline Dev on Ubuntu 10.04 LTS:
    sudo apt-get -y install libreadline5-dev
    # sudo apt-get -y install libreadline5-dev

    # Readline Dev on Ubuntu 12.04 LTS:
    # apt-get -y install libreadline-gplv2-dev
    apt-get -y install libreadline-gplv2-dev

    # Install some nokogiri dependencies:
    apt-get -y install libxml2 libxml2-dev libxslt1-dev
  2. Michael D. Hall revised this gist Mar 23, 2013. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -18,8 +18,11 @@ apt-get -y install tklib
    # Extras for RubyGems and Rails:
    apt-get -y install zlib1g-dev libssl-dev

    # Readline Dev on Ubuntu 10.04 LTS:
    sudo apt-get -y install libreadline5-dev

    # Readline Dev on Ubuntu 12.04 LTS:
    apt-get -y install libreadline-gplv2-dev
    # apt-get -y install libreadline-gplv2-dev

    # Install some nokogiri dependencies:
    apt-get -y install libxml2 libxml2-dev libxslt1-dev
  3. Michael D. Hall revised this gist Mar 19, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -37,4 +37,6 @@ cd ruby-1.9.3-p392/
    make
    make install

    gem install chef ruby-shadow --no-ri --no-rdoc
    gem install chef ruby-shadow --no-ri --no-rdoc

    mkdir -p /var/chef
  4. Michael D. Hall revised this gist Mar 19, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ apt-get -y install libreadline-gplv2-dev
    apt-get -y install libxml2 libxml2-dev libxslt1-dev
    # -------------------------------

    apt-get -y install libyaml-dev
    apt-get -y install libyaml-dev libffi-dev libgdbm-dev

    apt-get -y dist-upgrade

  5. Michael D. Hall revised this gist Mar 18, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,6 @@ apt-get -y install libxml2 libxml2-dev libxslt1-dev

    apt-get -y install libyaml-dev

    apt-get -y upgrade
    apt-get -y dist-upgrade

    cd /tmp
  6. Michael D. Hall revised this gist Mar 18, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -28,6 +28,7 @@ apt-get -y install libxml2 libxml2-dev libxslt1-dev
    apt-get -y install libyaml-dev

    apt-get -y upgrade
    apt-get -y dist-upgrade

    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
  7. Michael D. Hall revised this gist Mar 18, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -27,6 +27,8 @@ apt-get -y install libxml2 libxml2-dev libxslt1-dev

    apt-get -y install libyaml-dev

    apt-get -y upgrade

    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
    tar -xvzf ruby-1.9.3-p392.tar.gz
  8. Michael D. Hall revised this gist Mar 18, 2013. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@

    apt-get -y update

    # -------------------------------
    # Based on bootstrap-ubuntu-12-04
    # https://raw.github.com/fesplugas/rbenv-bootstrap/master/bin/rbenv-bootstrap-ubuntu-12-04

    @@ -22,6 +23,9 @@ apt-get -y install libreadline-gplv2-dev

    # Install some nokogiri dependencies:
    apt-get -y install libxml2 libxml2-dev libxslt1-dev
    # -------------------------------

    apt-get -y install libyaml-dev

    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
  9. Michael D. Hall revised this gist Mar 18, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    #!/usr/bin/env bash
    #!/usr/bin/env bash -x

    apt-get -y update

    # Based on bootstrap-ubuntu-12-04
  10. Michael D. Hall revised this gist Mar 17, 2013. 1 changed file with 27 additions and 5 deletions.
    32 changes: 27 additions & 5 deletions chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,33 @@
    #!/usr/bin/env bash
    apt-get -y update
    apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev

    # Based on bootstrap-ubuntu-12-04
    # https://raw.github.com/fesplugas/rbenv-bootstrap/master/bin/rbenv-bootstrap-ubuntu-12-04

    # Update sources:
    apt-get -y update

    # Install development tools:
    apt-get -y install build-essential

    # Packages required for compilation of some stdlib modules
    apt-get -y install tklib

    # Extras for RubyGems and Rails:
    apt-get -y install zlib1g-dev libssl-dev

    # Readline Dev on Ubuntu 12.04 LTS:
    apt-get -y install libreadline-gplv2-dev

    # Install some nokogiri dependencies:
    apt-get -y install libxml2 libxml2-dev libxslt1-dev

    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
    tar -xvzf ruby-1.9.3-p125.tar.gz
    cd ruby-1.9.3-p125/
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
    tar -xvzf ruby-1.9.3-p392.tar.gz
    cd ruby-1.9.3-p392/
    ./configure --prefix=/usr/local
    make
    make install
    gem install chef ruby-shadow --no-ri --no-rdoc

    gem install chef ruby-shadow --no-ri --no-rdoc
  11. @ryanb ryanb revised this gist Apr 7, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,4 @@ cd ruby-1.9.3-p125/
    ./configure --prefix=/usr/local
    make
    make install
    gem install chef --no-ri --no-rdoc
    gem install chef ruby-shadow --no-ri --no-rdoc
  12. @ryanb ryanb revised this gist Apr 5, 2012. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions chef_solo_bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,11 @@
    #!/usr/bin/env bash

    apt-get -y update
    apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
    tar -xvzf ruby-1.9.3-p125.tar.gz
    cd ruby-1.9.3-p125/
    ./configure --prefix=/usr/local
    rm -rf ruby-1.9.3-p125 ruby-1.9.3-p125
    make
    make install
    gem install chef --no-ri --no-rdoc
  13. @ryanb ryanb renamed this gist Apr 5, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  14. @ryanb ryanb created this gist Apr 5, 2012.
    13 changes: 13 additions & 0 deletions chef_solo_bootstrap.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/usr/bin/env bash

    apt-get -y update
    apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
    cd /tmp
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
    tar -xvzf ruby-1.9.3-p125.tar.gz
    cd ruby-1.9.3-p125/
    ./configure --prefix=/usr/local
    rm -rf ruby-1.9.3-p125 ruby-1.9.3-p125
    make
    make install
    gem install chef --no-ri --no-rdoc