Infrastructure configs and automation for Kosmos servers
Go to file
Basti c4fa9e6ec1
Remove extra license headers
And update year in LICENSE file
2021-01-12 18:42:14 +01:00
.chef Whitelist ejabberd custom node attributes 2020-12-11 19:07:06 +01:00
clients Merge pull request 'Create postgres-1 VM' (#281) from feature/280-postgres_vm into master 2021-01-07 11:29:37 +00:00
cookbooks Update IPFS cookbook 2020-10-25 12:09:01 +01:00
data_bags Configure and run RTL 2021-01-01 17:42:57 +01:00
doc Update ejabberd doc 2020-12-08 13:13:05 +01:00
environments WIP 2020-08-16 16:18:01 +02:00
nodes Merge pull request 'Create postgres-1 VM' (#281) from feature/280-postgres_vm into master 2021-01-07 11:29:37 +00:00
roles Merge pull request 'Create postgres-1 VM' (#281) from feature/280-postgres_vm into master 2021-01-07 11:29:37 +00:00
scripts/ldap Add CLI script for hashing LDAP passwords 2020-11-20 14:36:25 +01:00
site-cookbooks Remove extra license headers 2021-01-12 18:42:14 +01:00
.gitignore Set up an instance of Mastodon for Kosmos 2017-04-06 21:20:51 +02:00
.gitmodules Use our own fork of the postgresql cookbook 2020-06-07 12:29:34 +02:00
Berksfile Update IPFS cookbook 2020-10-25 12:09:01 +01:00
Berksfile.lock Update IPFS cookbook 2020-10-25 12:09:01 +01:00
Gemfile Update Chef to 15.3.14 2019-10-08 18:17:34 +02:00
Gemfile.lock Update Chef to 15.3.14 2019-10-08 18:17:34 +02:00
README.md Add commands for running Chef against VMs 2020-12-10 23:39:59 +01:00
Vagrantfile Suggest bitcoin source recipe for dev 2020-08-19 15:28:00 +02:00

README.md

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