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

bacula (5) Versions 1.3.0

Installs and autoconfigures bacula backup system

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

Build Status

Code Repo: http://github.com/computerlyrik/chef-bacula

Description

Tested on Ubuntu 12.04 server (should also work on Debian - please report!)

Supports File backup on a dedicated storage server with a single bacula director and multiple clients to be backed up.

Painlessly autoconfigures itself and the Jobs to be done.
Backs up daily incremental, full weekly. (see usage)
Also supports installation of bacula console to observe your backup progresses.

Autogenerated Jobs

  • Files
  • Mysql
  • LDAP
  • Chef server

Recipes

Bacula Director (bacula-dir)

bacula::server 

Central backup server

Bacula File Daemon (bacula-fd)

bacula::client

Used by each client to be backed up

Bacula Storage Daemon (bacula-sd)

bacula::storage (bacula-sd)

For use on storage system

Bacula Administration Tool BAT (bacula-console-qt)

bacula::bat

Used for Systems with graphic environment - installs and configures "bat" Bacula qt-console

Requirements

Cookbooks:
ruby
mysql
database
openssl #for password generation

Attributes

default.rb

Configure the bacula user
ruby
node['bacula']['user']
node['bacula']['group']

server.rb

Set properties for File based backup
ruby
node['bacula']['volume_size'] = "1G"
node['bacula']['volume_max'] = 20
node['bacula']['label_format'] = "BaculaFile"

client.rb

Set files to be backed up (see Usage below)
ruby
node['bacula']['fd']['files']

storage.rb

Set up destination of File-Storage
ruby
default['bacula']['sd']['backup_dir'] = "/backup"

Usage

Backup Job generation

To autogenerate jobs the following expressions need to be true on bacula::client machine:

Mysql

node['mysql'] && node['mysql']['server_root_password']

Ldap

node['openldap'] && node['openldap']['slapd_type'] == "master"

Chef Server

node['fqdn'] == "chef.#{node['domain']}"

Default deployment

  • node A => bacula::server
  • node B => bacula::storage (with much storage)
  • node C-Z => bacula::client

Examples

Howto backup files (do not use in production)

Set on your bacula::client node
ruby
node.set['bacula']['fd']['files'] = {
'includes' => ['/']],
'excludes' => [ '/dev','sys']
}

Howto change the backup cycle

To change the backup cycle make changes in templates/default/bacula-dir.conf

Todo/Ideas

  • Add restore jobs
  • more datastores (postgresql, sqlite)
  • make attributes out of the listening port
  • make mailing work

Contact

see metadata.rb

Dependent cookbooks

mysql >= 3.0.0
openssl >= 0.0.0
database >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

1.3.0 failed this metric

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

Contributing File Metric
            

1.3.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
            

1.3.0 failed this metric

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

No Binaries Metric
            

1.3.0 passed this metric

Testing File Metric
            

1.3.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
            

1.3.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 include a tag that matches this cookbook version number