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


drbd (23) Versions 2.0.0

Installs/Configures drbd.

cookbook 'drbd', '= 2.0.0', :supermarket
cookbook 'drbd', '= 2.0.0'
knife supermarket install drbd
knife supermarket download drbd
Quality 86%

drbd Cookbook

Build Status Cookbook Version

Installs and configures the Distributed Replicated Block Device (DRBD) service for mirroring block devices between a pair of hosts. Right now it simply works in pairs, multiple hosts could be supported with a few small changes.

The drbd cookbook does not partition drives. It will format partitions given a filesystem type, but it does not explicitly depend on the xfs cookbook if you want that type of filesystem, but you can put it in your run list and set the node['drbd']['fs_type'] to 'xfs' or 'ext4' or whatever.



  • Ubuntu
  • CentOS


  • Chef 12.1+


  • yum-elrepo



Installs drbd but does no configuration.


Given a filesystem and a partner host, configures block replication between the hosts. The master will claim the primary, format the filesystem and mount the partition. The slave will simply mirror without mounting. It currently takes 2 chef-client runs to ensure the pair is synced properly.


The required attributes are

  • node['drbd]['remote_host'] - Remote host to pair with.
  • node['drbd]['remote_ip'] - Remote host to pair with.
  • node['drbd]['local_ip'] - Remote host to pair with.
  • node['drbd]['disk'] - Disk partition to mirror.
  • node['drbd]['mount'] - Mount point to mirror.
  • node['drbd]['fs_type'] - Disk format for the mirrored disk, defaults to ext3.
  • node['drbd]['master'] - Whether this node is master between the pair, defaults to false.


There are a pair of example roles drbd-pair.rb and drbd-pair-master.rb with the cookbook source.

License & Authors

Author:: Matt Ray (

Copyright:: 2011-2016, Chef Software, Inc.

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

yum-elrepo >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

drbd Cookbook CHANGELOG

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

2.0.0 (2017-02-18)

  • Remove chef-solo compatibility check
  • Add support for RHEL platforms by using yum-elrepo repository
  • Use multi-package installs to speed up chef converges

1.0.0 (2016-09-15)

  • Testing updates
  • Require Chef 12.1

v0.10.0 (2015-10-20)

  • Converted Chef::Shellout to Mixlib::Shellout to prevent deprecation warnings
  • Changed Opscode -> Chef Software
  • Added gitignore file
  • Added chefignore file
  • Added initial Test Kitchen config
  • Added Chef standard rubocop config
  • Added Travis CI testing
  • Added Berksfile
  • Added Gemfile with testing deps
  • Updated testing and contributing docs
  • Added and maintainers.toml files
  • Added travis and cookbook version badges to the readme
  • Added a Rakefile for simplified testing
  • Added additional platforms to the metadata
  • Added source_url and issues_url to the metadata
  • Added basic convergence Chefspec
  • Resolved Rubocop warnings

v0.9.0 (2014-06-11)

  • # 3 - [CHEF-4979] add support for centos and multiple netwrok interfaces


  • [COOK-2957]: drbd cookbook has foodcritic failures


  • Initial release.

Collaborator Number Metric

2.0.0 passed this metric

Contributing File Metric

2.0.0 passed this metric

Foodcritic Metric

2.0.0 failed this metric

FC075: Cookbook uses to save partial node data to the chef-server mid-run: drbd/recipes/default.rb:20
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric

2.0.0 passed this metric

No Binaries Metric

2.0.0 passed this metric

Testing File Metric

2.0.0 passed this metric

Version Tag Metric

2.0.0 passed this metric