mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 22:58:46 +00:00
Update cheatsheets
This commit is contained in:
37
knife
Normal file
37
knife
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# knife
|
||||
|
||||
> Interact with a Chef server from a local Chef repo.
|
||||
> More information: <https://docs.chef.io/knife.html>.
|
||||
|
||||
- Bootstrap a new node:
|
||||
|
||||
`knife bootstrap {{fqdn_or_ip}}`
|
||||
|
||||
- List all registered nodes:
|
||||
|
||||
`knife node list`
|
||||
|
||||
- Show a node:
|
||||
|
||||
`knife node show {{node_name}}`
|
||||
|
||||
- Edit a node:
|
||||
|
||||
`knife node edit {{node_name}}`
|
||||
|
||||
- Edit a role:
|
||||
|
||||
`knife role edit {{role_name}}`
|
||||
|
||||
- View a data bag:
|
||||
|
||||
`knife data bag show {{data_bag_name}} {{data_bag_item}}`
|
||||
|
||||
- Upload a local cookbook to the Chef server:
|
||||
|
||||
`knife cookbook upload {{cookbook_name}}`
|
||||
Reference in New Issue
Block a user