Version information
released Jan 24th 2019
This version is compatible with:
- ,
Start using this module
Add this module to your Puppetfile:
mod 'denver-backups', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
denver/backups — version 0.1.0 Jan 24th 2019
base
Table of Contents
Description
This module will deploy a user to execute backups and a cron job to create encrypted backup artifacts.
Usage
Linux
Backing up a directory
class { '::backups':
gpg_keyfile => 'pubkey.gpg'
gpg_keyid => 'keyname'
}
backups::backup { 'service-name':
backup_type => 'file',
backup_file => '/etc/conf/dir',
cron_hour => 1,
cron_minute => 30,
}
Backing up a postgres database.
class { '::backups':
gpg_keyfile => 'pubkey.gpg'
gpg_keyid => 'keyname'
}
backups::backup { 'postgresdbname':
backup_type => 'pg_db',
backup_db => 'dbname',
}
Backing up a mysql database.
class { '::backups':
gpg_keyfile => 'pubkey.gpg'
gpg_keyid => 'keyname'
}
backups::backup { 'mysqldbname':
backup_type => 'mysql_db',
backup_db => 'dbname',
}
Development
When adding to this module, be sure to add and update the unit tests where appropriate. You can run the tests locally with the following commands...
To execute general tests (lint, validate, spec)
bundle install
bundle exec rake test
Dependencies
- puppetlabs-stdlib (>= 1.0.0 < 4.25.1)
- phinze-sudoers (>= 0.1.3)