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.
 
 
 
 
 
greg fc70895d9c Merge pull request 'Configure/deploy botka for libera.chat on nodejs-2 VM' (#341) from feature/upgrade_and_move_botka_irc into master 3 weeks ago
.chef Whitelist ejabberd custom node attributes 10 months ago
clients Create RSK testnet VM 4 months ago
cookbooks Add updated upstream nodejs cookbook 6 months ago
data_bags Upgrade botka, deploy for Libera.Chat to nodejs-2 1 month ago
doc Update ejabberd doc 10 months ago
environments WIP 1 year ago
nodes Upgrade botka, deploy for Libera.Chat to nodejs-2 1 month ago
roles Create a role for sockethub 3 months ago
scripts Merge pull request 'Add script for notifying Kosmos channels from Ruby' (#279) from feature/notify_xmpp_from_ruby into master 9 months ago
site-cookbooks Upgrade botka, deploy for Libera.Chat to nodejs-2 1 month ago
.gitignore WIP RSK cookbook 4 months ago
.gitmodules Use our own fork of the postgresql cookbook 1 year ago
.ruby-version Use chef-workstation Ruby with rbenv 5 months ago
Berksfile Upgrade nodejs to the latest version from the repo 7 months ago
Berksfile.lock Upgrade nodejs to the latest version from the repo 7 months ago
Gemfile Only keep the knife-zero gem in the Gemfile 4 months ago
Gemfile.lock Update Gemfile.lock 1 month ago
README.md Update README 5 months ago
Vagrantfile Suggest bitcoin source recipe for dev 1 year ago

README.md

Install Chef Workstation

rbenv

If you use rbenv to manage Ruby versions on your system, install the (rbenv-chef-workstation)[https://github.com/docwhat/rbenv-chef-workstation] plugin.

Install gem 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