[chef] pre-chef scripts, setting ruby in path etc.


Chronological Thread 
  • From: S Ahmed < >
  • To:
  • Subject: [chef] pre-chef scripts, setting ruby in path etc.
  • Date: Sun, 9 Dec 2012 08:35:32 -0500

I am currently doing the following before I run my chef solo on a server:

>sudo apt-get update -y && sudo apt-get upgrade -y

>sudo apt-get install -y wget build-essential ruby1.8 ruby1.8-dev irb1.8 rdoc1.8 zlib1g-dev libopenssl-ruby1.8 rubygems1.8 libopenssl-ruby libzlib-ruby libssl-dev libpcre3-dev libcurl4-openssl-dev

>sudo apt-get install -y rubygems
>sudo gem install -y rake bundler

and then chef related:

>sudo gem install -y ohai chef --no-ri --no-rdoc


One thing, ruby doesn't seem to be in my path, and I want to make sure ruby 1.9.3 is setup on the server also before running chef.

Any advise on how to make sure ruby 1.9.3 is setup as the default and in the path (in an automated, scripted fashion)?




Archive powered by MHonArc 2.6.16.

§