Adoptable Cookbooks List

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 supermarket mailing list.

LWRP

Note Sudo version 1.7.2 or newer is required to use the sudo LWRP as it relies on the "#includedir" directive introduced in version 1.7.2. The recipe does not enforce installing the version. To use this LWRP, set node['authorization']['sudo']['include_sudoers_d'] to true.

There are two ways for rendering a sudoer-fragment using this LWRP:
1. Using the built-in template
2. Using a custom, cookbook-level template

Both methods will create the /etc/sudoers.d/#{resourcename} file with the correct permissions.

The LWRP also performs fragment validation. If a sudoer-fragment is not valid, the Chef run will throw an exception and fail. This ensures that your sudoers file is always valid and cannot become corrupt (from this cookbook).

License & Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

sudo Cookbook CHANGELOG

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

3.1.0 (2016-10-24)

add attribute custom_commands for user and group

3.0.0 (2016-09-08)

Testing updates

Require Chef 12.1+

2.11.0 (2016-08-09)

Add support for NOEXEC flag

v2.10.0 (2016-08-04)

Added a warning to the LWRP if include_sudoers_d is set to false

Enabled use_inline_resources in the LWRP

Added IBM zlinux as a supported platform

Added suse, opensuse, and opensuseleap to the metadata as they are now tested platforms

Added chef_version metadata to metadata.rb

Removed attributes from the metadata.rb as this serves little purpose

Converted bats integration tests to inspec

Switched from rubocop to cookstyle for Ruby linting

Removed the need for the apt cookbook in the test suite by using the apt_update resource instead

Switched from kitchen-docker to kitchen-dokken and enabled Debian/Opensuse platforms in Travis

v2.9.0 (2016-02-07)

Updated the provider to avoid writing out config files with periods in the filename when a user has a period in their name as these are skipped by the sudo package. A sudo config for invalid.user will write out a config named invalid_user now.

v2.8.0 (2016-02-04)

Added a new attribute to the recipe and provider for adding SETENV to sudoer config

Updated development deps to the latest version

Setup test kitchen to run in Travis with kitchen-docker

Expanded the kitchen.yml config to include additional platforms

Renamed the test recipe from fake to test

Updated the testing and contributing docs to the latest

Added maintainers.toml and maitainers.md

Added a chefignore file to limit which files get uploaded to the chef server

Added long_description to the metadata.rb

Added source_url and issues_url for Supermarket to the metadata.rb

Resolved all Rubocop warnings

Updated the Chefspec to the 4.x format

Removed kitchen cloud testing configs and gem deps

Removed the Guardfile and the gem deps

v2.7.2 (2015-07-10)

Adding support for keep_env

misc cleanup

v2.7.1 (2014-09-18)

[#53] - removed double space from sudoer.erb template

v2.7.0 (2014-08-08)

[#44] Add basic ChefSpec matchers

v2.6.0 (2014-05-15)

[COOK-4612] Add support for the command alias (Cmnd_Alias) directive

[COOK-4637] - handle duplicate resources in LWRP

v2.5.2 (2014-02-27)

Bumping version for toolchain sanity

v2.5.0 (2014-02-27)

Bumping to 2.5.0

v2.4.2 (2014-02-27)

[COOK-4350] - Fix issue with "Defaults" line in sudoer.erb

v2.4.0 (2014-02-18)

BREAKING CHANGE: The sysadmin group has been removed from the template. You will lose sudo access if:

You have users that depend on the sysadmin group for sudo access, and

You are overriding authorization.sudo.groups, but not including sysadmin in the list of groups