From e68374cf4384a45afee82c6c6bb9499bfc941520 Mon Sep 17 00:00:00 2001 From: Norbert Varzariu Date: Tue, 19 Jan 2016 17:37:59 +0100 Subject: [PATCH] bump version and update README --- README.md | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- metadata.json | 2 +- 2 files changed, 48 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 77c6d55..158109c 100644 --- a/README.md +++ b/README.md @@ -358,6 +358,53 @@ Default is: } ``` +#### `$backup_scripts` +Additional scripts to create, possible values are: mysql, psql, misc + +Default is: + +```puppet + $backup_scripts = { + mysql => { + dbbackup_user => 'root', + dbbackup_password => 'myFancyPassWord', + }, + psql => { + dbbackup_user => 'postgres', + dbbackup_password => '', + }, + misc => {}, + } +``` + +Configuration example: + +```yaml +rsnapshot::backup_scripts: + mysql: + dbbackup_user: 'dbbackup' + dbbackup_password: 'hunter2' + psql: + dbbackup_user: 'dbbackup' + dbbackup_password: 'yeshorsebatterystaple' + +rsnapshot::hosts: + foobar.com: + backup_scripts: + mysql: + psql: + bazqux:de: + backup_scripts: + mysql: + dbbackup_user: 'myuser' + dbbackup_password: 'mypassword' +``` + +This creates +- a mysql and a psql backup script for `foobar.com` using the credentials `dbbackup:hunter2` for mysql and `dbbackup:yeshorsebatterystaple` for psql +- a mysql backup script for `bazqux.de` using the credentials `myuser:mypassword` + + ### rsnapshot configuration variables Please read up on the following in the [rsnapshot manpage](http://linux.die.net/man/1/rsnapshot) @@ -493,9 +540,6 @@ Default is: 1 #### `$use_lazy_deletes` Default is: false -#### `$backup_scripts` -Default is: {} - ## Limitations Currently, this module support CentOS, Fedora, Ubuntu and Debian. diff --git a/metadata.json b/metadata.json index f0873e1..61ca00a 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "loomsen-rsnapshot", - "version": "0.3.2", + "version": "0.4.0", "author": "loomsen", "summary": "Configures rsnapshot.", "license": "Apache-2.0",