→ This guide covers essential Chef-Server management tasks, including deleting and cleaning resources, creating roles, connecting nodes, and automating configurations.
Continuation of the previous lab(5th)
All the following commands must be executed from the Chef Workstation to clean the Chef-Server.
List all cookbooks in Chef-Server:
knife cookbook list
Delete a specific cookbook from Chef-Server:
knife cookbook delete <cookbook_name> -y
List all nodes in Chef-Server:
knife node list
Delete a specific node from Chef-Server:
knife node delete <node_name> -y
List all clients in Chef-Server:
knife client list
Delete a specific client from Chef-Server:
knife client delete <client_name> -y
List all roles in Chef-Server:
knife role list
Delete a specific role from Chef-Server:
knife role delete <role_name> -y