1.

What are the various ways in which you can update a Chef run list for a Chef node?

Answer»

We can update the Chef run lists with the below TWO options:

  • The Chef run list can be updated USING the knife commands:  Knife is a command-line utility tool that SECURELY communicates to the Chef Server. We have different commands for adding, removing and setting recipes in the run list.

For eg: 

```knife node run_list ADD <NODE_NAME> <RUN_LIST_ITEM> (options)``` commands could be used to add a recipe or a role in the run list of a node.

Similarly 

```knife node run_list remove <NODE_NAME> <RUN_LIST_ITEM> (options)```  command could be used to remove from the run list.

We can also specify the run list for a node while bootstrapping the node using the “knife bootstrap” command.

  • We can also update the run list of a node through the Chef management console. The Chef Management Console is a GUI interface through which we can manipulate the Chef run list. But it should be noted that as per the latest updates on Chef this interface is soon to be depreciated, and replaced with Chef Automate.


Discussion

No Comment Found