Chef Node Attribute Add Version 1

To add an attribute to an existing Chef Server node, the handler uses Chef's REST API. The handler first retrieves the users private key from the specified location so that it can then be used to sign the REST request. The handler then retrieves the node that will be updated to get all of the attributes that are currently attached to it. The inputted Attribute Name and Attribute Value will then be added as a key/value pair to the 'normal' attribute object in the node object. That updated object is then re-posted to the Chef Server to apply the changes to the node attributes on the Chef Server. And errors that are encountered during the process are caught and re-rasied by the handler.

Parameters

Name Description
Node Name Name of the node that the attribute will be added to.
Attribute Name Name of the attribute to be added.
Attribute Value Value of the attribute to be added.

Sample Configuration

Name Description
Node Name test-node
Attribute Name apache2-username
Attribute Value pass1

Results

This handler does not return any results.

Changelog

Chef Node Attribute Add (2017-06-12)

  • Initial version. See README for details.


Related Handlers

Chef Add Recipe to Run List
Adds a recipe to a run list for a specific Node in Chef.
Chef Cookbook Delete
Deletes a cookbook from a Chef server.
Chef Retrieve Cookbook
Retireve a Cookbook from Chef-io for an organization.
Chef Node Attribute Delete
Deletes an attribute from an existing Chef Server node
Chef Node Bootstrap
Uses a previously installed knife instance on the Kinetic Task server to bootstrap a Chef node.
Chef Node Delete
Deletes a node from a Chef server.
Chef Remove Recipe from Run List
Removes a recipe from from a run list in a node.
Chef Retrieve Cookbooks
Retrieves a list of Cookbooks from Chef-io from an organization.
Chef Retrieve Node
Retrieves a information about a node in Chef-io within an organization.
Chef Retrieve Nodes
Retrieves a list of nodes from Chef-io from an organization.
Chef Retrieve Run List
Retrieves a Runlist from Chef for a node.

Looking for a workflow engine?

Learn more about the Kinetic Data Enterprise Workflow Platform Check it out Caret right circle