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


chef_zpool (1) Versions 0.1.0

Manages ZFS zpools

cookbook 'chef_zpool', '~> 0.1.0'
cookbook 'chef_zpool', '~> 0.1.0', :supermarket
knife cookbook site install chef_zpool
knife cookbook site download chef_zpool
Quality 100%

chef_zpool Cookbook

Build Status Cookbook Version

A resource for creating and destroying zpools. This cookbook is forked from the original zpools cookbook by Martha Greenberg at



  • Ubuntu
  • FreeBSD
  • Solaris


  • Chef 12.7+


  • none




  • :create
  • destroy


  • ashift - Set sector size, support by the OS is not verified.
  • disks - Array of disks to put in the pool.
  • force - Force the use of vdevs, even if they appear to be in use.
  • mountpoint - Mountpoint for the top-level file system, absolute path or 'none'.
  • recursive - Add a -r to the command.
  • raid - The RAID type of the zpool. mirror, raidz, raidz2, or raidz3


zpool "test" do
  disks [ "c0t2d0s0", "c0t3d0s0" ]

zpool "test2" do
  action :destroy


This cookbook is maintained by Chef's Community Cookbook Engineering team. Our goal is to improve cookbook quality and to aid the community in contributing to cookbooks. To learn more about our team, process, and design goals see our team documentation. To learn more about contributing to cookbooks like this see our contributing documentation, or if you have general questions about this cookbook come chat with us in #cookbok-engineering on the Chef Community Slack


Copyright: 2012-2017, Martha Greenberg Copyright: 2017, 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

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

chef_zpool Cookbook CHANGELOG

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

0.1.0 (2017-11-10)

  • This cookbook has been forked as the chef_zpool cookbook and significantly refactored.
  • Rewrote as a custom resource with support for Chef 13. Requires Chef 12.7 or later.
  • New raid property in the zpool resource with support for raid-z
  • Remove the need for the state and info properties on the existing LWRP. Use simple methods instead. This prevents state properties appearing to update incorrectly.
  • Switched testing to from Rake -> Delivery local mode and ServerSpec -> InSpec
  • Eliminated the need for the helper recipe on Solaris for testing


  • Add the force and mountpoint resource options.
  • Set up test-kitchen use and add serverspec tests
  • Clean up rubocop offences
  • Use zpool status instead of zpool list -v to find volumes in use. "-v" is not a valid solaris option.
  • When the ashift option value is 0 don't add the option to the create command.

Collaborator Number Metric

0.1.0 passed this metric

Contributing File Metric

0.1.0 passed this metric

Foodcritic Metric

0.1.0 passed this metric

License Metric

0.1.0 passed this metric

No Binaries Metric

0.1.0 passed this metric

Publish Metric

0.1.0 passed this metric

Supported Platforms Metric

0.1.0 passed this metric

Testing File Metric

0.1.0 passed this metric

Version Tag Metric

0.1.0 passed this metric