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 a3b95463fa Merge branch 'bugfix/mediawiki_extensions_deleted_releases' of kosmos/chef into master 1 month ago
.chef Move the generate options to config.rb at the root of the repo 3 months ago
cookbooks Initial version of the kosmos-dirsrv cookbook 4 months ago
data_bags Switch the mediawiki LDAP setup to a new application account 1 month ago
doc Add initial LDAP documentation 4 months ago
environments Enable LDAP support on mediawiki 2 months ago
nodes Update andromeda node info 1 month ago
roles Don't update chef using the chef_client_updater cookbook 6 months ago
site-cookbooks Switch the Mediawiki extensions to GitHub zips 1 month ago
.gitignore Set up an instance of Mastodon for Kosmos 3 years ago
Berksfile Switch the ipfs cookbook from GitHub to Gitlab 2 months ago
Berksfile.lock Switch the ipfs cookbook from GitHub to Gitlab 2 months ago
Gemfile Update Chef to 15.3.14 6 months ago
Gemfile.lock Update Chef to 15.3.14 6 months ago Add the command to update Chef Client 6 months ago
Vagrantfile Add commented recipes to the run list 6 months ago

Install dependencies

bundle install

Run Chef Solo

knife zero converge

Update Chef Client on a server:

knife zero converge --client-version 15.3.14

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

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