Infrastructure automation code for Kosmos servers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
raucao dbdb803b7a Merge pull request 'Upgrade Gitea from 1.13.1 to 1.13.7' (#321) from chore/update_gitea into master 1 month ago
.chef Whitelist ejabberd custom node attributes 5 months ago
clients Remove postgres-1 server 4 months ago
cookbooks Add updated upstream nodejs cookbook 1 month ago
data_bags Deploy hubot with new hubot-kredits 1 month ago
doc Update ejabberd doc 5 months ago
environments WIP 9 months ago
nodes Update the barnard node file after running Chef 1 month ago
roles Set up Zerotier Control UI 3 months ago
scripts Merge pull request 'Add script for notifying Kosmos channels from Ruby' (#279) from feature/notify_xmpp_from_ruby into master 4 months ago
site-cookbooks Upgrade Gitea from 1.13.1 to 1.13.7 1 month ago
.gitignore Set up an instance of Mastodon for Kosmos 4 years ago
.gitmodules Use our own fork of the postgresql cookbook 11 months ago
Berksfile Upgrade nodejs to the latest version from the repo 1 month ago
Berksfile.lock Upgrade nodejs to the latest version from the repo 1 month ago
Gemfile Update Chef to 15.3.14 2 years ago
Gemfile.lock Update Chef to 15.3.14 2 years ago Add commands for running Chef against VMs 5 months ago
Vagrantfile Suggest bitcoin source recipe for dev 9 months ago

Install dependencies

bundle install

Bootstrap a new server

knife zero bootstrap --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

Run Chef Zero on a VM

knife zero converge -a name:vm-name-23

Update Chef Client on a server:

knife zero converge --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