|
OverviewKnife is a command-line tool that comes with Chef.It is used by administrators to interact with the Chef Server API, the local Chef repository and can be used to create, edit, view, list, and delete roles on nodes.
Adding a role to a node with KnifeNote that you need to put the role in quotes when using the knife node run_list add subcommand. Through an EDITOR1. set EDITOR environment variable, for example: 2. create a new role, for example: 3. enter the data of the role in JSON, for example: 4. Save it. If there isn't an existing role with the same name, you will see a warning message about that, which is normal. For example: Editing a role with Knife1. set EDITOR environment variable, for example: 2. edit a role, for example: 3. Update the JSON in the editor. Viewing a role with KnifeListing roles with KnifeDeleting a role with Knife
|
|
|


