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

RSS

chef-server-backup (2) Versions 0.2.1

Installs/Configures backups for Chef Server

Berkshelf/Librarian
Policyfile
Knife
cookbook 'chef-server-backup', '~> 0.2.1'
cookbook 'chef-server-backup', '~> 0.2.1', :supermarket
knife cookbook site install chef-server-backup
knife cookbook site download chef-server-backup
README
Dependencies
Quality 33%

Chef Server Backup Cookbook

This cookbook will backup a standalone Chef server.

It will deploy a script and populate cron.d to execute it.

Attributes

  • node['chef-server-backup']['mailto'] - Email address for notifications. Default is root
  • node['chef-server-backup']['retention_days'] - Number of days to keep backups. Default is an 8 day rotation.
  • node['chef-server-backup']['backup_name'] - Name of the backup Tar file. Default is chef_backup.
  • node['chef-server-backup']['working_dir'] - Temporary working directory. Default is '/tmp'.
  • node['chef-server-backup']['db_user'] - The database username. Default is 'opscode-pgsql'.
  • node['chef-server-backup']['backup_store'] - Which directory to store backups '/etc/chef_backup'.
  • node['chef-server-backup']['cron']['minute'] - The minute at which the cron entry should run (0 - 59). Default value: *
  • node['chef-server-backup']['cron']['hour'] - The hour at which the cron entry is to run (0 - 23). Default value: 23
  • node['chef-server-backup']['cron']['day'] - The day of month at which the cron entry should run (1 - 31). Default value: *
  • node['chef-server-backup']['cron']['month'] - The month in the year on which a cron entry is to run (1 - 12). Default value: *
  • node['chef-server-backup']['cron']['weekday'] - The day of the week on which this entry is to run (0 - 6), where Sunday = 0. Default value: *

Usage

Set up the Chef server backup attributes in a role. For example create a role called chefserver.json the is applied to all Chef standalone server.

{
    "name": "chefserver",
    "description": "Role applied to Chef Servers",
    "chef_type": "role",
    "json_class": "Chef::Role",
    "default_attributes": {
      "chef-server-backup": {
        "mailto": "backup@example.com",
        "retention_days": "8"
      }
    },
    "run_list": ["chef-server-backup"]
}

License and Authors

  • Author:: Andrew Holt
Copyright (C) 2015  Andrew Holt

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Dependent cookbooks

cron ~> 1.7.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.2.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.2.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.2.1 failed this metric

FC064: Ensure issues_url is set in metadata: chef-server-backup/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-server-backup/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-server-backup/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: chef-server-backup/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-server-backup/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.2.1 passed this metric

No Binaries Metric
            

0.2.1 passed this metric

Publish Metric
            

0.2.1 passed this metric

Supported Platforms Metric
            

0.2.1 failed this metric

chef-server-backup should declare what platform(s) it supports.

Testing File Metric
            

0.2.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.2.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number