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


rotate-passwords (2) Versions 1.0.0

Installs/Configures rotate-passwords

cookbook 'rotate-passwords', '= 1.0.0', :supermarket
cookbook 'rotate-passwords', '= 1.0.0'
knife supermarket install rotate-passwords
knife supermarket download rotate-passwords
Quality 100%

rotate-passwords Cookbook

Build Status

Table of Contents

  1. Overview
  2. Requirements
  3. Usage
  4. Contributing
  5. License & Authors


This cookbook provides a custom resource that allows you to automatically rotate the password for a local user after it has aged past a pre-determined time and store those passwords in Chef Vault.


Requires Chef 12.5 or later as this cookbook makes use of Custom Resources.



For each user you want to rotate the password for you must declare a rotate_password resource.

Each rotate_password has the following attributes:

Attribute Type Description Default
name String or Symbol Resource name. N/A
max_age Integer How old the defined user's password can be before it is rotated. 30
password_length Integer The length of the randomly generated password. 30
vault_name String Description of the Yum repo. vault-passwords
vault_admins String or Array Base URL of the Yum repo. N/A

To rotate the password of the root user for example:

rotate_password 'root' do
  vault_admins ['jbloggs', 'mrossi']


If you would like to contribute to this cookbook please follow these steps;

  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

License: BSD 2-clause


Props to this cookbook for showing how to use Test Kitchen with Chef Vault.

Dependent cookbooks

chef-vault >= 1.2.5

Contingent cookbooks

There are no cookbooks that are contingent upon this one.



Initial release.


  • Provides resource for rotating a user's passwords.
    • Can define how old a password can be before it is rotated.
    • Define the length of the randomly generated password.
    • Define the Vault that should be used to store the password.
    • Define the Admins that can access the vaulted password.

Foodcritic Metric

1.0.0 passed this metric