Manage Nodes

[edit on GitHub]

image

Warning

Chef Manage is deprecated and no longer under active development. It is supported on Chef Automate installations up to version 1.8 and replaced by Chef Automate 2.0. Contact your Chef account representative for information about upgrading your system. See our Automate documentation to learn more about Chef Automate 2.

This document is no longer maintained.

Note

This topic is about using the Chef management console to manage nodes.

A node is any device—physical, virtual, cloud, network device, etc.—that is under management by Chef Infra.

Manage

Nodes can be managed from the Chef management console web user interface.

Delete

To delete a node:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Click Delete.

  5. Confirm:

    image

Reset Key

To reset the validation key for a node:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Click Edit Run List.

  5. In the Reset Key dialog box, confirm that the key should be regenerated and click the Regenerate Key button:

    image

  6. In the Reset Key dialog box, copy the key directly from the dialog box or click the Download button to download the key to your local machine:

    image

To search nodes:

  1. Open the Chef management console.

  2. Click Nodes.

  3. In the search box in the upper right, enter the search query and click the search icon.

    image

  4. The results will appear in the list below.

Node Attributes

An attribute is a specific detail about a node. Attributes are used by Chef Infra Client to understand:

  • The current state of the node
  • What the state of the node was at the end of the previous Chef Infra Client run
  • What the state of the node should be at the end of the current Chef Infra Client run

Attributes are defined by:

  • The state of the node itself
  • Attributes passed via JSON on the CLI
  • Cookbooks (in attribute files and/or recipes)
  • Roles
  • Environments
  • Policyfiles

During every Chef Infra Client run, Chef Infra Client builds the attribute list using:

  • Attributes passed via JSON on the CLI
  • Data about the node collected by [Ohai].
  • The node object that was saved to the Chef Infra Server at the end of the previous Chef Infra Client run.
  • The rebuilt node object from the current Chef Infra Client run, after it is updated for changes to cookbooks (attribute files and/or recipes), roles, and/or environments, and updated for any changes to the state of the node itself.

After the node object is rebuilt, all of the attributes are compared, and then the node is updated based on attribute precedence. At the end of every Chef Infra Client run, the node object that defines the current state of the node is uploaded to the Chef Infra Server so that it can be indexed for search.

Edit Attribute

To edit node attributes:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Click the Attributes tab.

  5. Click Edit.

  6. In the Edit Node Attributes dialog box, make your changes:

    image

  7. Click Save Attributes.

View Attributes

To view the attributes for a node:

  1. Open the Chef management console.
  2. Click Nodes.
  3. Select a node.
  4. Click the Attributes tab.
  5. Click Edit.

Run-lists

A run-list defines all of the information necessary for Chef to configure a node into the desired state. A run-list is:

  • An ordered list of roles and/or recipes that are run in the exact order defined in the run-list; if a recipe appears more than once in the run-list, Chef Infra Client will not run it twice
  • Always specific to the node on which it runs; nodes may have a run-list that is identical to the run-list used by other nodes
  • Stored as part of the node object on the Chef server
  • Maintained using knife and then uploaded from the workstation to the Chef Infra Server, or maintained using Chef Automate

Add Recipe to

To add a role or recipe to a run-list:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Click Edit Run List.

  5. In the Edit Node Run List dialog box, drag the role or recipe from the Available Roles or Available Recipes lists to the current run-list.

    image

  6. Click Save Run List.

Add Role to

To add a role or recipe to a run-list:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Click Edit Run List.

  5. In the Edit Node Run List dialog box, drag the role or recipe from the Available Roles or Available Recipes lists to the current run-list.

    image

  6. Click Save Run List.

Edit

To edit a run-list:

  1. Open the Chef management console.
  2. Click Nodes.
  3. Select a node.
  4. Click Edit Run List.
  5. In the Edit Node Run List dialog box, make your changes.
  6. Click Save Run List.

Remove Recipe from

To remove a role or recipe from a run-list:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Click Edit Run List.

  5. In the Edit Node Run List dialog box, drag the role or recipe from the Current Run List to the list of available roles or recipes.

    image

  6. Click Save Run List.

Remove Role from

To remove a role or recipe from a run-list:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Click Edit Run List.

  5. In the Edit Node Run List dialog box, drag the role or recipe from the Current Run List to the list of available roles or recipes.

    image

  6. Click Save Run List.

View Current

To view the current run-list for a node:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Click the Details tab.

  5. The current run-list is shown in the lower right:

    image

Permissions

Permissions are used in the Chef Infra Server to define how users and groups can interact with objects on the server. Permissions are configured per-organization.

The Chef Infra Server includes the following object permissions:

Permission Description
Delete Use the Delete permission to define which users and groups may delete an object. This permission is required for any user who uses the knife [object] delete [object_name] argument to interact with objects on the Chef Infra Server.
Grant Use the Grant permission to define which users and groups may configure permissions on an object. This permission is required for any user who configures permissions using the Administration tab in the Chef management console.
Read Use the Read permission to define which users and groups may view the details of an object. This permission is required for any user who uses the knife [object] show [object_name] argument to interact with objects on the Chef Infra Server.
Update Use the Update permission to define which users and groups may edit the details of an object. This permission is required for any user who uses the knife [object] edit [object_name] argument to interact with objects on the Chef Infra Server and for any Chef Infra Client to save node data to the Chef Infra Server at the conclusion of a Chef Infra Client run.

Set

To set permissions list for a node object:

  1. Open the Chef management console.
  2. Click Nodes.
  3. Select a node.
  4. Click the Permissions tab.
  5. For each group listed under Name, select or de-select the Read, Update, Delete, and Grant permissions.

Update

To update the permissions list for a node object:

  1. Open the Chef management console.
  2. Click Nodes.
  3. Select a node.
  4. Click the Permissions tab.
  5. Click the + Add button and enter the name of the user or group to be added.
  6. Select or de-select Read, Update, Delete, and Grant to update the permissions list for the user or group.

View

To view permissions for a node:

  1. Open the Chef management console.
  2. Click Nodes.
  3. Select a node.
  4. Click the Permissions tab.
  5. Set the appropriate permissions: Delete, Grant, Read, and/or Update.

Manage Tags

A tag is a custom description that is applied to a node. A tag, once applied, can be helpful when managing nodes using knife or when building recipes by providing alternate methods of grouping similar types of information.

Add

To add tags to a node (or a group of nodes):

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node (or a group of nodes).

  4. Click Manage Tags.

  5. In the Manage Node Tags dialog box, enter the name of the tag and then select Add Tags from the drop-down.

    image

  6. Click Update Tags.

Delete

To delete tags for a node (or a group of nodes):

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node (or a group of nodes).

  4. Click Manage Tags.

  5. In the Manage Node Tags dialog box, enter the name of the tag and then select Delete Tags from the drop-down.

    image

  6. Click Update Tags.

View

To view all of the nodes:

  1. Open the Chef management console.

  2. Click Nodes.

  3. Select a node.

  4. Select the Details tab.

  5. The tags for the node appear under the Tags header:

    image

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/server_manage_nodes/