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

database_restore (1) Versions 0.2.0

Installs/Configures database_restore

Berkshelf/Librarian
Policyfile
Knife
cookbook 'database_restore', '~> 0.2.0'
cookbook 'database_restore', '~> 0.2.0', :supermarket
knife cookbook site install database_restore
knife cookbook site download database_restore
README
Dependencies
Changelog
Quality 33%

Database Restore Cookbook

Build Status

Cookbook to restore a mysql database backups generated from Backup Gem

Supported Platforms

  • Ubuntu 12.04

Attributes

<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>['database_restore']['s3_bucket']</tt></td> <td>String</td> <td>s3 bucket to grab from</td> <td><tt></tt></td> </tr> <tr> <td><tt>['database_restore']['s3_dir_path']</tt></td> <td>String</td> <td>path inside the s3 bucket to the date directories</td> <td><tt></tt></td> </tr> <tr> <td><tt>['database_restore']['database_name']</tt></td> <td>String</td> <td>database to restore to</td> <td><tt>wordpress</tt></td> </tr> <tr> <td><tt>['database_restore']['database_user']</tt></td> <td>String</td> <td>database user used to restore</td> <td><tt>wordpress</tt></td> </tr> <tr> <td><tt>['database_restore']['database_backup_name']</tt></td> <td>String</td> <td>name of database found inside the backup</td> <td><tt>node[:database_restore][:database_name]</tt></td> </tr> </table>

Resources/Providers

database_restore_download_s3_backup_file "/tmp/database.tgz" do
  aws_access_key_id 'YOUR_KEY_HERE'
  aws_secret_access_key 'YOUR_SECRET_KEY_HERE'
  s3_dir_path 'databases/mydatabase'
  s3_bucket 'mybackups'
  database 'mydatabase'
  action :create
end

database_restore_from_file "/tmp/database.tgz" do
  source "/tmp/database.tgz"
  database_name 'mydatabase'
  database_backup_name 'mydatabase'
  extract_to '/tmp'
  mysql_host 'localhost'
  mysql_username 'databaseuser'
  mysql_password 'password'
end

Usage

database_restore::default

Include database_restore in your node's run_list:

{
  "run_list": [
    "recipe[database_restore::default]"
  ]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author:: Nathan Lee (nathan@globalphobia.com)

Dependent cookbooks

libarchive >= 0.0.0
database >= 0.0.0
mysql >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of database_restore

  • Enhancements

    • an enhancement
  • Bug Fixes

    • a bug fix

Collaborator Number Metric
            

0.2.0 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.0 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.0 failed this metric

FC064: Ensure issues_url is set in metadata: database_restore/metadata.rb:1
FC065: Ensure source_url is set in metadata: database_restore/metadata.rb:1
FC066: Ensure chef_version is set in metadata: database_restore/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: database_restore/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: database_restore/resources/download_s3_backup_file.rb:1
FC074: LWRP should use DSL to define resource's default action: database_restore/resources/from_file.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.2.0 failed this metric

database_restore does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

0.2.0 passed this metric

Publish Metric
            

0.2.0 passed this metric

Supported Platforms Metric
            

0.2.0 failed this metric

database_restore should declare what platform(s) it supports.

Testing File Metric
            

0.2.0 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.0 passed this metric