- From: Juanje Ojeda Croissier <
>
- To: Mike <
>
- Cc: Bryan McLellan <
>,
- Subject: [chef-dev] Re: Re: Determining if running omnibus or system ruby
- Date: Thu, 16 Aug 2012 10:37:45 +0100
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 :-)
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
>
ticket.
>
>
On Wed, Aug 15, 2012 at 12:17 PM, Bryan McLellan
>
<
>
>
wrote:
>
> 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 http://tickets.opscode.com/browse/CHEF-3365 to track the upfactor.
>
>
>
> Bryan
--
Juanje
http://about.me/juanje
Archive powered by MHonArc 2.6.16.