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

RSS

mediawiki_backup (3) Versions 0.3.3

Installs/Configures mediawiki_backup

Policyfile
Berkshelf
Knife
cookbook 'mediawiki_backup', '~> 0.3.3', :supermarket
cookbook 'mediawiki_backup', '~> 0.3.3'
knife supermarket install mediawiki_backup
knife supermarket download mediawiki_backup
README
Dependencies
Quality 17%

MediaWiki Backup Cookbook

This cookbook will backup a standalone MediaWiki server.

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

Attributes

  • node['mediawiki_backup']['mailto'] - Email address for notifications. Default is root
  • node['mediawiki_backup']['retention_days'] - Number of days to keep backups. Default is an 8 day rotation.
  • node['mediawiki_backup']['backup_name'] - Name of the backup Tar file. Default is wiki_backup.
  • node['mediawiki_backup']['wiki_dir'] - Location of the MediaWiki directory. Default is '/var/www/mediawiki'.
  • node['mediawiki_backup']['wiki_conf'] - Location of the MediaWiki configuration. Default is '/etc/mediawiki'.
  • node['mediawiki_backup']['ssl_certs'] - Locations of the Apache SSL Certs. Default is in EL '/etc/pki/tls/private/server.key', '/etc/pki/tls/certs/server.crt'.
  • node['mediawiki_backup']['working_dir'] - Temporary working directory. Default is '/tmp'.
  • node['mediawiki_backup']['backup_store'] - Which directory to store backups '/etc/wiki_backup'.
  • node['mediawiki_backup']['cron']['minute'] - The minute at which the cron entry should run (0 - 59). Default value: *
  • node['mediawiki_backup']['cron']['hour'] - The hour at which the cron entry is to run (0 - 23). Default value: 23
  • node['mediawiki_backup']['cron']['day'] - The day of month at which the cron entry should run (1 - 31). Default value: *
  • node['mediawiki_backup']['cron']['month'] - The month in the year on which a cron entry is to run (1 - 12). Default value: *
  • node['mediawiki_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 MediaWiki server backup attributes in a role. For example create a role called
wikiserver.json the is applied to all MediaWiki standalone server.

{
    "name": "wikiserver",
    "description": "Role applied to MediaWiki Servers",
    "chef_type": "role",
    "json_class": "MediaWiki::Role",
    "default_attributes": {
      "mediawiki_backup": {
        "mailto": "backup@example.com",
        "retention_days": "8"
        "ssl_certs": [
          "/etc/pki/tls/private/server.key",
          "/etc/pki/tls/certs/server.crt"
        ]
      }
    },
    "run_list": ["mediawiki_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/>.

Wiki Page

Dependent cookbooks

cron ~> 1.7.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.3.3 failed this metric

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

Contributing File Metric
            

0.3.3 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.3.3 failed this metric

FC066: Ensure chef_version is set in metadata: mediawiki_backup/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mediawiki_backup/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.3.3 passed this metric

Testing File Metric
            

0.3.3 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.3.3 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