aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-07-19 18:09:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2009-07-19 18:09:53 -0300
commit57fd1de8fb87e8de7948cfa781dcd1f19b2ceb6f (patch)
tree4f125ea3f99bd1fadcd6802ddabdfa6386646ad4
parentbc167339c62ad2e06c8cdcd298364f20afa04658 (diff)
parent0b9d05cf596fab6b8fe4b03e21e6f8cb802238fe (diff)
downloadpuppet-backupninja-57fd1de8fb87e8de7948cfa781dcd1f19b2ceb6f.tar.gz
puppet-backupninja-57fd1de8fb87e8de7948cfa781dcd1f19b2ceb6f.tar.bz2
Merge branch 'master' of git://labs.riseup.net/module_backupninja
-rw-r--r--README11
-rw-r--r--manifests/client.pp18
2 files changed, 29 insertions, 0 deletions
diff --git a/README b/README
index bf4eb49..4fc5c34 100644
--- a/README
+++ b/README
@@ -20,6 +20,7 @@ backupninja::mysql { all_databases:
sqldump => true
}
+include backupninja::client::rdiff_backup
backupninja::rdiff { backup_all:
directory => '/media/backupdisk',
include => ['/var/backups', '/home', '/var/lib/dpkg/status'],
@@ -35,6 +36,16 @@ A remote rdiff backup handler:
user => "backup-$hostname",
}
+If you include the backupninja::client::rdiff_backup class, you will
+get the rdiff-backup package installed automatically, this also works
+for the backupninja::client::maildir class (installs needed rsync package)
+
+If you need to specify a specific version of the rdiff-backup, or rsync package, you can do so
+by specifying the variables:
+
+$rdiff_backup_ensure_version = "1.2.5-1~bpo40+1"
+$rsync_ensure_version = "3.0.6-1~bpo50+1"
+
If you configure a backupninja::server, it will collect those users and create
them. We have yet to create proper authorized_keys management to make that
process completely automatic.
diff --git a/manifests/client.pp b/manifests/client.pp
index 66dbd1c..a3d2242 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -86,4 +86,22 @@ class backupninja::client {
}
}
+class backupninja::client::maildir inherits backupninja::client {
+ if !defined(Package["rsync"]) {
+ if $rsync_ensure_version == '' { $rsync_ensure_version = 'installed' }
+ package { 'rsync':
+ ensure => $rsync_ensure_version,
+ }
+ }
+}
+
+class backupninja::client::rdiff_backup inherits backupninja::client {
+
+ if !defined(Package["rdiff-backup"]) {
+ if $rdiff_backup_ensure_version == '' { $rdiff_backup_ensure_version = 'installed' }
+ package { 'rdiff-backup':
+ ensure => $rdiff_backup_ensure_version,
+ }
+ }
+}