Infrastructure configs and automation for Kosmos servers
Go to file
Greg e6b7794e20 Extract firewall definitions to their own recipe
This allows us to use them for KVM hosts as well. Until now we had set
up ufw rules manually on the two KVM hosts (draco and centaurus)

Refs #244
2020-12-04 16:27:42 +01:00
.chef Move the generate options to config.rb at the root of the repo 2019-12-27 11:33:05 +01:00
clients Set up ejabberd-2 VM 2020-11-25 17:40:40 +01:00
cookbooks Update IPFS cookbook 2020-10-25 12:09:01 +01:00
data_bags Use the same Erlang cookie to enable clustering 2020-11-25 16:35:37 +01:00
doc Fix the search command for Kosmos LDAP users 2020-09-16 11:36:29 +02:00
environments WIP 2020-08-16 16:18:01 +02:00
nodes Remove akkounts recipe from barnard runlist 2020-11-27 13:22:29 +01:00
roles Use the production run list when no Chef environment was set 2020-11-25 16:41:43 +01:00
scripts/ldap Add CLI script for hashing LDAP passwords 2020-11-20 14:36:25 +01:00
site-cookbooks Extract firewall definitions to their own recipe 2020-12-04 16:27:42 +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 the command to update Chef Client 2019-10-10 12:43:47 +02:00
Vagrantfile Suggest bitcoin source recipe for dev 2020-08-19 15:28:00 +02:00

README.md

Install dependencies

bundle install

Run Chef Solo

knife zero converge name:dev.kosmos.org

Update Chef Client on a server:

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

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

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