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


sudo_rules (6) Versions 0.1.0

Configures sudo rules from data bags using the sudo cookbook

cookbook 'sudo_rules', '= 0.1.0', :supermarket
cookbook 'sudo_rules', '= 0.1.0'
knife supermarket install sudo_rules
knife supermarket download sudo_rules
Quality 0%

sudo_rules Cookbook

Reads through a special data bag of sudo rules to compile a list of sudoers.d rules to create/remove.



  • sudo


TODO: List your cookbook attributes here.



<td>Name of data bag to use for entries</td>



Include sudo_rules in your node's run_list:

  "run_list": [

And provide properly formatted data bag:

    "id": "Data Bag unique name, default value for name below",
    "name": "Name of the sudoers.d file",
    "hosts": [
    "action": "create",
    "user": "someuser",
    "runas": "ALL",
    "commands": [
        "/usr/sbin/somecommand args",
    "defaults": [

Id: Required: Name of Data Bag item, and sudoers.d/Id filename.
Name: Optional: Instead of using Id, you can choose the name of the file for sudoers.d/Name instead.
Hosts: Required: List of hosts to apply this rule to by fqdn, can be wildcard matched.
Action: create or remove: Default create
User: Required: Username or %Groupname to use for the sudo rule.
Runas: Allowed colon-separated list of users for sudoers runas: Default ALL
Commands: Required: List of commands (and arguments) this rule adds for the user/group.
Defaults: List of defaults this user has.


TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.

1. Fork the repository on Github
2. Create a named feature branch (like add_component_x)
3. Write your change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github

License and Authors

Authors: TODO: List authors

Dependent cookbooks

sudo >= 2.7.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

sudo_rules CHANGELOG

This file is used to list changes made in each version of the sudo_rules cookbook.


  • [erenfro] - Initial release of test

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Foodcritic Metric

0.1.0 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/834e10deb5b32ad73f0fbe46/sudo_rules/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/834e10deb5b32ad73f0fbe46/sudo_rules/metadata.rb:1