From 8dd94ea839aa2e24eff7f295c8441876bf953df9 Mon Sep 17 00:00:00 2001 From: Anton Koldaev Date: Tue, 12 Jan 2016 15:03:28 -0600 Subject: [PATCH] Add docs on enabling collaborator_groups feature This is a highly demanded feature implemented in a recent version of Supermarket. There's a lot of information on how to use it, but nothing about enabling it. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6a09a1a..a982115 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,11 @@ supermarket['ssl']['certificate'] = '/full/path/to/ssl.crt' supermarket['ssl']['certificate_key'] = '/full/path/to/ssl.key' ``` +To enable a recent [collaborator groups](https://www.chef.io/blog/2015/12/18/collaborator-groups-on-supermarket/) [feature](https://www.youtube.com/watch?v=1t1T5CQ0j48) you'll need to add the following attribute into your cookbook wrapper: +```ruby +default['supermarket_omnibus']['config']['features'] = 'tools, gravatar, collaborator_groups' +``` + :warning: It’s super important to be aware that __supermarket.json always wins__. Best practice is to modify your supermarket configuration via `['config']` setting in a wrapper cookbook. To find out all supermarket `config` attributes you can override, see [omnibus-supermarket](https://github.com/chef/omnibus-supermarket/blob/master/cookbooks/omnibus-supermarket/attributes/default.rb). Translation of attributes from `supermarket-omnibus-cookbook` to attributes in `omnibus-supermarket` occurs in the `supermarket_server` resource provided by this cookbook which produces a JSON(`/etc/supermarket/supermarket.json`) that `omnibus-supermarket` reads. For example: