diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-03-22 22:31:13 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-03-22 22:31:13 -0300 |
commit | d9e4598757f87f353b6ca6d411a71f2ea61f4f18 (patch) | |
tree | 00085ba1c4334974ca1f583b0755c68da55dc207 /manifests | |
parent | 032b36d3b8d2a08a45a211ca91c56a77d3697200 (diff) | |
download | puppet-backup-d9e4598757f87f353b6ca6d411a71f2ea61f4f18.tar.gz puppet-backup-d9e4598757f87f353b6ca6d411a71f2ea61f4f18.tar.bz2 |
Adding remotes parameter to configure where backups from other nodes are stored
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 5 |
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, |