[chef] Re: Re: chef_knives: chef addons to become a cooking master!


Chronological Thread 
  • From: Sergio Rubio < >
  • To:
  • Subject: [chef] Re: Re: chef_knives: chef addons to become a cooking master!
  • Date: Wed, 16 Sep 2009 18:16:42 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=YxkX6OpaQH5NthXQ9T3NCg4lwmKOJi+orER+GiCt0CncvoyU1oAVxf9l5F3IlS4dTn ra/DvDhMVS7HGSsM+Ov6EKJXfFREz4GNGlsQ+ZllYpnlTI56F9F5DCbXZF+ifegCuUZL GI7dFx7N+fP1bliSNgX5IPxJ41x3fwPliP2l8=

Hey Adam!

On Fri, Sep 11, 2009 at 8:05 PM, Adam Jacob 
< >
 wrote:
> Nice work, Sergio!
>

Thanks!

> We haven't done much work yet on the reporting potential of Chef, so
> it's great to see what you've done.  I think it would be cool to see
> this evolve into a big collection... :)
>

We are trying to add a chef backend to our datacenter inventory app.
I'll let you know how it goes... :D. From what I can see, node
attributes from ohai are everything we need (almost)

> Just to make sure we don't stomp on each other, Chef 0.8 will ship
> with an expanded version of corp's 'knife' command line utility.
>

Not quite sure what you mean. Do you mean naming a chef_knives script
knife? No worries if that's the case!

> Let us know if there is anything we can to do help,
> Adam
>

Sure! in fact (:D) we are writing some ohai plugins, but we haven't
found the documented way of installing them so we use the following
method:

1. edit /etc/chef/client.rb
2. add the following line to the end of the file:

  Ohai::Config[:plugin_path] << '/etc/ohai/plugins' #you can choose
any path you want

3. add your custom plugins there (i.e. /etc/ohai/plugins)
4. reload the client:
  /etc/init.d/chef-client restart

Is there a better way of doing it?
What happens if a future/new version of an ohai plugin overrides or
uses the same name for an attribute that we are using in a custom
plugin? (we put every attribute from our plugins under an attribute
with our company's name to avoid this... hopefully that will be
enough...)

Let me know what you think.

One last thing. I've created a github repo with ohai plugins we are
writing, in case anyone is interested:

http://github.com/rubiojr/ohai-plugins

Cheers!



Archive powered by MHonArc 2.6.16.

§