Greg Karékinian f75aeaf9b5 Always set the promote trigger file config
Only setting it for standby servers isn't useful, as we need to be able
to touch this file to trigger the promotion of a new primary server
after running Chef on it.
2020-12-18 17:02:13 +01:00
2020-12-11 19:02:04 +01:00
2020-10-25 12:09:01 +01:00
2020-12-08 13:13:05 +01:00
WIP
2020-08-16 16:18:01 +02:00
2020-12-08 19:59:51 +01:00
2020-10-25 12:09:01 +01:00
2020-10-25 12:09:01 +01:00
2019-10-08 18:17:34 +02:00
2019-10-08 18:17:34 +02:00

Install dependencies

bundle install

Bootstrap a new server

knife zero bootstrap root@dev.kosmos.org --run-list "recipe[kosmos-base],..." -j '{"example_cookbook":{"memory_max":"256M"}}' --secret-file .chef/encrypted_data_bag_secret

Bootstrap a new VM

knife zero bootstrap ubuntu@zerotier-ip-address -x ubuntu --sudo --run-list "recipe[kosmos-base]" --secret-file .chef/encrypted_data_bag_secret

Run Chef Zero

knife zero converge name:dev.kosmos.org

Run Chef Zero on a VM

knife zero converge -a knife_zero.host name:vm-name-23

Update Chef Client on a server:

knife zero converge name:dev.kosmos.org --client-version 15.3.14

Managing cookbooks

Cookbooks are managed via Berkshelf. Run berks --help for command help.

Install cookbooks listed in Berksfile:

berks install

Vendor installed cookbooks to the cookbooks/ dir:

berks vendor cookbooks/ --delete
Description
Infrastructure configs and automation for Kosmos servers
Readme 15 MiB
Languages
Ruby 60.5%
HTML 35.5%
C 2%
PowerShell 1%
Shell 0.9%