- From: Joshua Timberman <
>
- To:
- Subject: [chef] Re: Ruby, Chef, Omnibus and you!
- Date: Thu, 29 Dec 2011 11:37:49 -0700
Ohai!
On Dec 29, 2011, at 8:41 AM, Burkholder, Peter wrote:
>
I've tried the omnibus approach but I'm using the FrameOS build now because
>
I need libselinux-ruby and I couldn't get that to build against the 1.9.1
>
Ruby in Omnibus. I like the idea of having Chef neatly walled off in a
>
chef-full RPM, but it didn't suffice for me. (We're using RHEL5 as our
>
platform).
Fwiw, you can append to the load path and load the selinux library after
installing it as a package. I can't speak to how well this library will work
with the Ruby version included in the Omnibus installation (ruby 1.9.2p180 as
of now on my test system)
~]# rpm -qa | egrep "ruby|chef"
chef-full-0.10.8-2.x86_64
~]# shef
chef > recipe
chef:recipe > package "libselinux-ruby"
chef:recipe > run_chef
[Wed, 28 Dec 2011 18:08:37 -0700] DEBUG: Processing package[libselinux-ruby]
on centos6.int.housepub.org
[Wed, 28 Dec 2011 18:08:37 -0700] INFO: Processing package[libselinux-ruby]
action install ((irb#1) line 1)
[Wed, 28 Dec 2011 18:08:42 -0700] DEBUG: package[libselinux-ruby] checking
yum info for libselinux-ruby
[Wed, 28 Dec 2011 18:08:42 -0700] DEBUG: package[libselinux-ruby] installed
version: (none) candidate version: 2.0.94-5.2.el6
[Wed, 28 Dec 2011 18:08:42 -0700] DEBUG: Executing yum -d0 -e0 -y install
libselinux-ruby-2.0.94-5.2.el6
[Wed, 28 Dec 2011 18:08:51 -0700] DEBUG: ---- Begin output of yum -d0 -e0 -y
install libselinux-ruby-2.0.94-5.2.el6 ----
[Wed, 28 Dec 2011 18:08:51 -0700] DEBUG: STDOUT:
[Wed, 28 Dec 2011 18:08:51 -0700] DEBUG: STDERR:
[Wed, 28 Dec 2011 18:08:51 -0700] DEBUG: ---- End output of yum -d0 -e0 -y
install libselinux-ruby-2.0.94-5.2.el6 ----
[Wed, 28 Dec 2011 18:08:51 -0700] DEBUG: Ran yum -d0 -e0 -y install
libselinux-ruby-2.0.94-5.2.el6 returned 0
[Wed, 28 Dec 2011 18:08:51 -0700] INFO: package[libselinux-ruby] installed
version 2.0.94-5.2.el6
=> true
chef:recipe > $: << "/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/"
=> [ OUTPUT TRUNCATED ]
chef:recipe > require 'selinux'
=> true
I'll also update the relevant COOK ticket where this was discussed.
--
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman
- [chef] Ruby, Chef, Omnibus and you!, Joshua Timberman, 12/27/2011
- [chef] Re: Ruby, Chef, Omnibus and you!, Kyle Bader, 12/27/2011
- [chef] Re: Ruby, Chef, Omnibus and you!, Alex Soto, 12/27/2011
- [chef] Re: Re: Ruby, Chef, Omnibus and you!, Jesse Nelson, 12/27/2011
- [chef] Re: Re: Re: Ruby, Chef, Omnibus and you!, Ranjib Dey, 12/27/2011
- [chef] Re: Re: Re: Re: Ruby, Chef, Omnibus and you!, Burkholder, Peter, 12/29/2011
- [chef] Re: Ruby, Chef, Omnibus and you!, Joshua Timberman, 12/29/2011
- [chef] Re: Re: Ruby, Chef, Omnibus and you!, Burkholder, Peter, 12/30/2011
- [chef] Re: Ruby, Chef, Omnibus and you!, Joshua Timberman, 12/30/2011
- [chef] Re: Re: Ruby, Chef, Omnibus and you!, Alex Howells, 12/30/2011
- [chef] Re: Re: Ruby, Chef, Omnibus and you!, Alex Howells, 12/30/2011
- [chef] Re: Re: Re: Ruby, Chef, Omnibus and you!, Brad Knowles, 12/30/2011
[chef] Re: Ruby, Chef, Omnibus and you!, Erik Hollensbe, 12/29/2011
[chef] Re: Ruby, Chef, Omnibus and you!, Andrea Campi, 12/29/2011
Archive powered by MHonArc 2.6.16.