Sorry, responding to Alberto, seem to have deleted that e-mail that I meant to save to respond to later... So right now you're calling company_openssh::third_party out of the run_list? In that case what you've got a role, and you should have a role like role_third_party_access which sets the node attribute. If you don't like roles, then you need a role cookbook and put role_third_party_access::default (which may be empty) and have an attribute file that sets the attribute. When you go with role cookbooks you need to have one role per cookbook, burying your roles inside of other cookbooks is bad practice (which does mean lots of role cookbooks, which does mean lots of git repos if you're doing one-git-repo-per-cookbook, which is the tradeoff that you make with role cookbooks). If none of that works and you're doing something more complicated than setting up a role and have nasty conditional logic around the include_recipe (which I'd argue is still code smell and you need to ask yourself why you're doing that), then you should pass state between cookbook using the node.run_state. On 11/4/14, 10:04 AM, Justin Dossey wrote: " type="cite"> |
Archive powered by MHonArc 2.6.16.