Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

The generic-users cookbook has been deprecated

Author provided reason for deprecation:

The generic-users cookbook has been deprecated and is no longer being maintained by its authors. Use of the generic-users cookbook is no longer recommended.

You may find that the users cookbook is a suitable alternative.


generic-users (10) Versions 0.0.1

Sets up user accounts

cookbook 'generic-users', '= 0.0.1', :supermarket
cookbook 'generic-users', '= 0.0.1'
knife supermarket install generic-users
knife supermarket download generic-users
Quality -%


This cookbook manages user accounts, attributes, and permissions in a
generic, data-driven way. It is a drop-in replacement for Opscode's or
37signals' users cookbook, but it is more flexible.

This cookbook is partially based on Opscode's users cookbook and
users::sysadmins recipe.



  • users.supergroup -- group that is active on all machines, and has superuser rights. Default: sysadmin. Don't change the default to be compatible with Opscode's cookbooks
  • users.active_groups -- names of groups to create shell accounts for on the machine.

users.supergroup, if defined, will be added to this list.

If this attribute is not defined, active_groups attribute will be
tried for compatibility with 37signals' cookbook.

Groups in this list will be created as shell groups and users will
be added to them, unless groups data bag item for the group exists
and has shell parameter set to false.


Two data bags need to be created: users and groups. Second one can
be empty.

The users data bag

Keys recognized:

  • id -- ID of data bag item, default username
  • username -- username if different from id; it should be used for username policies requiring characters illegal in IDs (e.g. dots)
  • groups -- list of groups user belongs to
  • comment (optional) -- usually user's real name
  • shell -- whether this is a shell account. Can be true (default), false, or a string value. If true or unset, use default shell
  • ssh_keys or ssh_key (optional) -- a string or list of strings containing public SSH keys of the user
  • openid (optional) -- OpenID URL of the user, added for supergroup members to Apache's mod_auth_openid config
  • gid (optional) -- force user's primary group (name or numeric)
  • uid (optional) -- force user's numeric id

Arbitrary other keys may be used by other cookbooks.

The groups data bag

Keys recognized:

  • id -- group name
  • gid (optional) -- force numeric group id
  • shell -- whether to create a shell group (boolean, defaults to true).

Arbitrary other keys may be used by other cookbooks.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found