aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-22 22:31:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-22 22:31:13 -0300
commitd9e4598757f87f353b6ca6d411a71f2ea61f4f18 (patch)
tree00085ba1c4334974ca1f583b0755c68da55dc207
parent032b36d3b8d2a08a45a211ca91c56a77d3697200 (diff)
downloadpuppet-backup-d9e4598757f87f353b6ca6d411a71f2ea61f4f18.tar.gz
puppet-backup-d9e4598757f87f353b6ca6d411a71f2ea61f4f18.tar.bz2
Adding remotes parameter to configure where backups from other nodes are stored
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 90882a9..2ae0606 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -37,7 +37,8 @@ $backupninja_ensure_version = 'latest'
class backup(
$when = hiera('backup::when', 'everyday at 01:00'),
- $audit_rsync = hiera('backup::audit_rsync', True)
+ $audit_rsync = hiera('backup::audit_rsync', True),
+ $remotes = hiera('backup::remotes', 'directory')
) {
include backupninja::server
@@ -54,7 +55,7 @@ class backup(
}
file { "$backupdir_remote":
- ensure => directory,
+ ensure => $remotes,
owner => root,
group => root,
mode => 0755,