Search code examples
chef-infrachef-recipecookbook

Can I tag a node in a recipe?


Did see any examples of how to do this, it looks like you can only tag a node with knife or the GUI is this true?

I want to tag a node in a recipe so when that recipe is applied to a node the node is tagged.


Solution

  • You can tag a node using the tag method inside your recipe.

    Example:

    tag('some_tag')
    

    You can also access and edit the tags through the node object directly.