- From: Sascha Bates <
>
- To:
- Subject: [chef] ohai plugin development gotchas?
- Date: Sun, 22 May 2011 21:37:25 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=Y0NtwHH0GYCzsimjHa02nm7lnjsvH6peauqLo2m2N36bTO0AO3K690/DKSjnXKXi/R w+plyA8rToFoca4uGM47C42JYZ1tpaD6pC721+8DwKHBayokGLF8z1YxD7dR9T0ej/4x 2pEX797Jg4DKsv3HnDM3DVESRSvWZzn9B1hcM=
I've written a chunk of ruby that parses a host name and returns several key pieces of information that we want to use as attributes. Some are new attributes and some we have been using by setting roles with one attribute on the node. This is mostly environment-related stuff, one way or another; data center location, prod/dev/qa environment, zoning (internet facing, etc), server type (web/app/image/db), and other things. I'd like to get away from using roles to manage this as we have hundreds of (logically-named) servers that Chef will ultimately mange and run list management is still very manual.
I was thinking to make it an ohai plugin since that sets node attributes very early on and can't be overridden. I was wondering if anyone else has been doing much with ohai plugins and if they've run into any issues or problems that I should be aware of before I go down this path? We're currently running .09.12 but trying to find the time to move to .10.
Thanks,
Sascha
- [chef] ohai plugin development gotchas?, Sascha Bates, 05/22/2011
Archive powered by MHonArc 2.6.16.