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.
gregkare 484f1306da Merge branch 'chore/default_license' of kosmos/chef into master 3 weeks ago
.chef Move the generate options to config.rb at the root of the repo 3 weeks ago
cookbooks Initial version of the kosmos-dirsrv cookbook 2 months ago
data_bags Use a custom resource to create a 389 Directory Server instance 1 month ago
doc Add initial LDAP documentation 1 month ago
environments Set a low Java heap size in development 3 months ago
nodes Add the kosmos-dirsrv recipe to barnard 1 month ago
roles Don't update chef using the chef_client_updater cookbook 3 months ago
site-cookbooks Merge branch 'feature/107-ldap_server' of kosmos/chef into master 4 weeks ago
.gitignore Set up an instance of Mastodon for Kosmos 2 years ago
Berksfile Initial version of the kosmos-dirsrv cookbook 2 months ago
Berksfile.lock Initial version of the kosmos-dirsrv cookbook 2 months ago
Gemfile Update Chef to 15.3.14 3 months ago
Gemfile.lock Update Chef to 15.3.14 3 months ago
README.md Add the command to update Chef Client 3 months ago
Vagrantfile Add commented recipes to the run list 3 months ago
config.rb Move the generate options to config.rb at the root of the repo 3 weeks ago

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