mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-08-02 19:36:18 -04:00
Add a couple of cool things
This commit is contained in:
parent
ba37a20b2c
commit
98bd1fe12f
16 changed files with 439 additions and 0 deletions
47
chef/CHEF_COMMANDS.md
Normal file
47
chef/CHEF_COMMANDS.md
Normal file
|
@ -0,0 +1,47 @@
|
|||
## Chef Commands
|
||||
|
||||
Roles contain recipes:
|
||||
|
||||
```
|
||||
$ knife role list
|
||||
```
|
||||
|
||||
All the recipes that are in that role
|
||||
|
||||
```
|
||||
$ knife role show <role_name>
|
||||
```
|
||||
|
||||
To see the nodes:
|
||||
|
||||
```
|
||||
$ knife node list
|
||||
$ knife node show <node_name>
|
||||
```
|
||||
|
||||
To register a brand new machine with chef
|
||||
|
||||
```
|
||||
$ knife bootstrap
|
||||
```
|
||||
This will SSH into the machine, download chef package, install chef to `/opt`, and get it running and registered with the chef server, see `~/.chef/knife.rb`,
|
||||
|
||||
|
||||
Before adding/pushing a change in chef
|
||||
|
||||
```
|
||||
$ knife spork role from file roles/key.json
|
||||
$ knife spork omni logstash --remote
|
||||
```
|
||||
|
||||
when logstash version:
|
||||
|
||||
```
|
||||
$ knife spork bump logstash
|
||||
```
|
||||
|
||||
then
|
||||
|
||||
```
|
||||
$ knife spork omni logstash --remote
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue