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 3502fb0eec Merge pull request 'Tell browsers to cache Gitea avatars for 30 days' (#313) from bugfix/312-gitea_avatar_caching into master 5 days ago
.chef Whitelist ejabberd custom node attributes 2 months ago
clients Remove postgres-1 server 1 month ago
cookbooks Update hostsfile and add zerotier cookbook 1 month ago
data_bags Update Zoom JWT 1 week ago
doc Update ejabberd doc 2 months ago
environments WIP 6 months ago
nodes Host assets.kosmos.org on centaurus 6 days ago
roles Set up Zerotier Control UI 3 weeks ago
scripts Merge pull request 'Add script for notifying Kosmos channels from Ruby' (#279) from feature/notify_xmpp_from_ruby into master 1 month ago
site-cookbooks Tell browsers to cache Gitea avatars for 30 days 5 days ago
.gitignore Set up an instance of Mastodon for Kosmos 3 years ago
.gitmodules Use our own fork of the postgresql cookbook 8 months ago
Berksfile Update hostsfile and add zerotier cookbook 1 month ago
Berksfile.lock Update hostsfile and add zerotier cookbook 1 month ago
Gemfile Update Chef to 15.3.14 1 year ago
Gemfile.lock Update Chef to 15.3.14 1 year ago
README.md Add commands for running Chef against VMs 2 months ago
Vagrantfile Suggest bitcoin source recipe for dev 6 months ago

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