- From: Sean OMeara <
>
- To:
- Subject: [chef] Re: pre-chef scripts, setting ruby in path etc.
- Date: Sun, 9 Dec 2012 12:15:42 -0500
It's highly recommended to use the Omnibus installers.
They ship with their own ruby embedded, along with every thing else above
libc.
curl -L
http://www.opscode.com/chef/install.sh | sh
-s
On Sun, Dec 9, 2012 at 8:35 AM, S Ahmed
<
>
wrote:
>
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.