- From: Wes Morgan <
>
- To: "
" <
>
- Subject: [chef] Re: Re: Re: Re: Re: Re: Rails 3 and ruby 1.9.2 application with chef
- Date: Tue, 24 Apr 2012 20:28:35 -0600
On Apr 24, 2012, at 7:55 PM, AJ Christensen
<
>
wrote:
>
Yo,
>
>
On 25 April 2012 13:49, Wes Morgan
>
<
>
>
wrote:
>
>
>
> On Apr 24, 2012, at 7:43 PM, AJ Christensen wrote:
>
>
>
>> If you use omnibus to install chef, it's already being installed into
>
>> a ruby 1.9x embedded container.
>
>>
>
>> I'd recommend using the ruby cookbook, and setting the attributes so
>
>> that it installs ruby1.9.x -- it'll end up in your standard system
>
>> location; then any other service you can deploy will use that ruby due
>
>> to it being in $PATH.
>
>
>
> Doesn't the ruby cookbook only know how to install the distro packaged
>
> Ruby versions? On Ubuntu, that means Ruby 1.9.1, which won't work with
>
> Rails 3. Ruby 1.9.2+ or Ruby 1.8.7 is required (so I got that slightly
>
> wrong before).
>
>
>
>
> I ended up using the rbenv cookbook to install 1.9.3.
>
>
It would be my complete and total recommendation to seek not the
>
installation of compilers to build huge Language packages.
I don't have many servers, and this only needs to be done once, at
bootstrap time. It got me up and running quickly with a much newer,
faster Ruby than Ubuntu's packages.
>
>
You can easily manage this process out of band (once or repeatedly)
>
and publish them to all nodes through very well suited package
>
distribution channels.
Which would make sense if I had more servers or needed to do this more
often. In this case it's far simpler to just build ruby 1.9.3 via
ruby-build during bootstrapping.
>
>
--AJ
>
>
>
>
>>
>
>> At Heavy Water, we have our continuous delivery platform build a Ruby
>
>> artefact for the architectures being used in the deployment with a
>
>> custom cookbook (instead of the opscode Ruby) to deploy that.
>
>> Eventually we may try to work in compatibility there.
>
>>
>
>> We've had a little trouble with this route when you need to install
>
>> gems with gem_package into either VM, but it's easily worked around
>
>> with the gem_binary parameter.
>
>>
>
>> Cheers,
>
>>
>
>> --AJ
>
>>
>
>
>
> ** snip **
>
>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
- [chef] Re: Re: Re: Rails 3 and ruby 1.9.2 application with chef, (continued)
Archive powered by MHonArc 2.6.16.