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


snapraid (5) Versions 0.3.0

Installs/Configures snapraid

cookbook 'snapraid', '= 0.3.0'
cookbook 'snapraid', '= 0.3.0', :supermarket
knife supermarket install snapraid
knife supermarket download snapraid
Quality 0%

SnapRAID cookbook GitHub license Cookbook Version Build Status

This cookbook provides a default recipe to install and configure SnapRAID.
Uses Chronial's snapraid-runner as an optional cronjob.


Operating Systems

Ubuntu: 12.04, 14.04
CentOS: 6.6, 7.0


  • Network access to SourceForge
  • Network access to GitHub


  • python # Usage Add the SnapRAID cookbook to your runlist, and set the data_disks, parity_disks, and content_files attributes in accordance with the desired SnapRAID configuration.
    See the SnapRAID FAQ for more details.


  'snapraid' => {  
    'data_disks'=> ['/media/disk1/','/media/disk2/'],  
    'parity_disks' => ['/media/disk3/'],  
    'content_files' => ['/media/disk1/', '/media/disk1/']  



<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Mandatory</th> </tr> <tr> <td><tt>['snapraid']['data_disks']</tt></td> <td>array</td> <td>list of disks mount paths on which protected data will be stored</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['parity_disks']</tt></td> <td>array</td> <td>list of disks mount paths on which SnapRAID parity data will be stored</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['content_files']</tt></td> <td>array</td> <td>list of file paths which will be specified as SnapRaid content files</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['block_size']</tt></td> <td>int</td> <td>kibibyte block size of SnapRAID parity</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['exclude_list']</tt></td> <td>array</td> <td>list of filepath patterns to exclude from SnapRAID parity generation</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['version']['number']</tt></td> <td>double</td> <td>SnapRAID version number</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['version']['url']</tt></td> <td>string</td> <td>url to SnapRAID tar.gz</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['version']['url']</tt></td> <td>string</td> <td>SHA-256 hash of SnapRAID tar.gz</td> <td><tt>false</tt></td> </tr> </table>


<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Mandatory</th> </tr> <tr> <td><tt>['snapraid']['scheduler']['script_url']</tt></td> <td>string</td> <td>url to snapraid_runner</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['script_directory']</tt></td> <td>string</td> <td>directory in which to place</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['config_file']</tt></td> <td>string</td> <td>filepath to snapraid_runner.conf</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['execution_hour']</tt></td> <td>string</td> <td>hour of the day to execute snapraid_runner (cron)</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['execution_minute']</tt></td> <td>string</td> <td>minute of the day to execute snapraid_runner (cron)</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['scrub_after_sync']</tt></td> <td>boolean</td> <td>whether snapraid_runner will run scrub after each sync (recommended)</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['scrub_percentage']</tt></td> <td>int</td> <td>percentage of the protected data for snapraid_runner to scrub</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['scrub_older_than']</tt></td> <td>int</td> <td>files older than x days will be scrubbed</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['deletion_abort_threshold']</tt></td> <td>int</td> <td>abort scheduled operation if there are more deletes than this, set to -1 to disable</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['email_from']</tt></td> <td>string</td> <td>email address snapraid_runner will impersonate when sending status emails</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['email_to']</tt></td> <td>string</td> <td>email address snapraid_runner will notify when sending status emails</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['smtp_host']</tt></td> <td>string</td> <td>smtp host snapraid_runner will use</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['smtp_port']</tt></td> <td>string</td> <td>smtp port snapraid_runner will use</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['smtp_ssl']</tt></td> <td>boolean</td> <td>whether snapraid_runner will use ssl for emails</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['smtp_user']</tt></td> <td>string</td> <td>optional username for snapraid_runner to login to smtp server</td> <td><tt>false</tt></td> </tr> <tr> <td><tt>['snapraid']['scheduler']['smtp_password']</tt></td> <td>string</td> <td>optional password for snapraid_runner to login to smtp server</td> <td><tt>false</tt></td> </tr> </table>



Used to install and configure SnapRAID.


Used to install and configure Chronial's snapraid-runner as a cronjob.


Author:: Nathan Lee (
Author:: Sam Martin (

Dependent cookbooks

ark >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

snapraid CHANGELOG

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




  • Added functional testing with snapraid sync
  • Fixed CentOS tests
  • Added RuboCop and FoodCritic
  • Added ServerSpec tests to cover packages, files, and the cronjob


  • Removed usage-specific defaults

Foodcritic Metric

0.3.0 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/21c570583aba08ee5ed4d2c6/snapraid/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/21c570583aba08ee5ed4d2c6/snapraid/metadata.rb:1