As a follow up to that, is there a way to have a recipe automatically list the clients own tags, no matter what node is running the recipe? So in the code
say something like if this node contains tag “xyz” then set this variable or run this script? I think it would be helpful to set specific variables if it is a certain type of system or clumps of systems. I am also debating about doing this with roles but
haven’t decided yet. Thanks, BRIDGER LARSON | Associate Build/Release
Engineer | SirsiDynix P: 801.223.5345 |
">
www.sirsidynix.com | TOLL
FREE: +1 800.284.3969 From: Mark Pimentel [mailto:
I do here. I tag the node with an environment identifier (dev, dit, sit etc). An environments I use to simply control the cookbook development tracks. This way I could reuse cookbook development tracks to any number of environments (or
tags in my case). I find this to be much more flexible than to tie nodes to environments to identify its operational environment. On Mon, Nov 12, 2012 at 1:20 AM, AJ Christensen <
" target="_blank">
> wrote: I don't know that many people actually use tags (they are just glorified attributes anyway). http://wiki.opscode.com/display/chef/Search should show you how to do this from a Recipe/shef/.. Cheers, AJ On 12 November 2012 17:18, Sam Lor <
" target="_blank">
> wrote:
'knife search node "tags:*" -a tags' or equivalent in a recipe (etc). Search for all nodes with any tags and print the tags attribute.
Please consider the environment before printing this document NOTICE This e-mail and any attachments are intended for the addressee(s) only and may be confidential. They may contain legally privileged or copyright material. You should not read, copy, use or disclose
them without authorisation. If you are not the intended recipient please contact the sender as soon as possible by return e-mail and then please delete both messages. This notice should not be removed.
-- |
Archive powered by MHonArc 2.6.16.