Infrastructure configs and automation for Kosmos servers
Go to file
gregkare 1b2edb770e Merge branch 'bugfix/mastodon-web_service' of kosmos/chef into master 2019-10-16 10:34:29 +00:00
.chef Set attribute whitelists for Knife-Zero 2019-10-10 12:34:55 +02:00
cookbooks Vendor the external cookbooks 2019-10-13 19:17:42 +02:00
data_bags Configure Kredits signup for hal8000_xmpp 2019-09-01 17:15:56 +02:00
doc Simplify the instructions to get the cluster secret 2019-05-28 13:05:52 +02:00
environments Set a low Java heap size in development 2019-10-08 18:23:27 +02:00
nodes Fix Mastodon Web systemd service 2019-10-16 08:29:34 +02:00
roles Don't update chef using the chef_client_updater cookbook 2019-10-08 18:17:34 +02:00
site-cookbooks Fix Mastodon Web systemd service 2019-10-16 08:29:34 +02:00
.gitignore Set up an instance of Mastodon for Kosmos 2017-04-06 21:20:51 +02:00
Berksfile Update poise-javascript to support Chef 15 2019-10-08 18:17:34 +02:00
Berksfile.lock Update poise-javascript to support Chef 15 2019-10-08 18:17:34 +02: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 Add commented recipes to the run list 2019-10-08 18:22:51 +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