Re: Determining if running omnibus or system ruby


For what it’s worth, the omnibus_updater cookbook will add a simple
#is_omnibus? method that recipes can use. It can also be called directly via

  • Chris

Mike writes:

How many paths have been used?
I came across this segment today:

Can Opscode choose something and stick with it for a while? :slight_smile:

Also, everyone go upvote and fix - I don’t know the
upfactor process.


On Thu, Aug 16, 2012 at 1:33 PM, Christopher Brown wrote:

I’d advise against that because we reserve the right to change those
paths at some point and wouldn’t want reusable content getting broken
by install specifics.

On Thu, Aug 16, 2012 at 2:37 AM, Juanje Ojeda Croissier wrote:

Well, Ohai has information about where is Chef installed.

You could do something like this:

node[‘chef_packages’][‘chef’][‘chef_root’] =~ /embedded/

It’s not a nice standard method, but I guess there is not (yet).

Good luck :slight_smile:

On Wed, Aug 15, 2012 at 5:28 PM, Mike wrote:

Agreed. But until there is One True Way to install things, then there
will be divergence.
Case and point, value_for_platform and package names across distros.

It would be nice to have this method available, so thanks for filing the

On Wed, Aug 15, 2012 at 12:17 PM, Bryan McLellan

On Wed, Aug 15, 2012 at 12:10 PM, Mike wrote:

Does that make sense?

Yeah, I’m just sad that we have to write cookbooks that have to
diverge on Omnibus.

Filed to track the upfactor.



Christopher Brown, Chief Technical Officer, Opscode, Inc.
T: (425) 502-5522, E:
IRC, Github: skeptomai
Twitter: @skeptomai