add things resources from the last 5 years over machines

This commit is contained in:
autistic-symposium-helpers 2024-10-15 09:59:09 +09:00 committed by GitHub
parent ac9c955e0b
commit b0a4e417ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 2327 additions and 84 deletions

47
chef/README.md Normal file
View 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
```