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 Chef Mailing List.

node['backup']['dependencies'] - An array of arrays of additional dependencies and optional versions needed for backups. The backup gem will inform you about these when the backup runs. (examples: ['fog'], [['fog', '1.4.0'], ['s3']])

node['backup']['user'] - User that performs backups. Default is root

node['backup']['group'] - Group that performs backups. Default is root

node['backup']['version'] - Version of the Backup gem to be installed. The latest version of this cookbook should have the latest stable version of the gem

node['backup']['server'] - Data about a centralized backup server. Used by the backup_mount resource. Default is an empty hash.

node['backup']['server']['address'] - Address of the backup server.

node['backup']['server']['root_path'] - Root path on the server where backups go.

Recipes

default

The default recipe installs the backup gem and its dependencies and sets up the basic configuration.

Resources and Providers

backup_model

Creates a backup model with an optional cron schedule.

Actions

:create - Create a model. The default.

:delete - Delete a model

Attribute Parameters

The name attribute - A symbol used as the trigger name.

description - A description for the backup. Default is the same as the name.

definition - A string (best formed as a heredoc) defining the backup. Will be interpoleted and turned into a model file. Required.

schedule - A hash of times (minute, hour, day, month, weekday) that will be passed to a cron resource.

cron_options - A hash of other options to be passed to the cron resource. Includes :command (will be set to the generated backup command by default), :mailto, :path, :shell, :user. Set output_log option to redirect output of the generated backup command to the log file (by default this output will be ignored).