]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Adding backupkeytype parameter at backup::rdiff
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Aug 2009 01:30:59 +0000 (22:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Aug 2009 01:30:59 +0000 (22:30 -0300)
manifests/init.pp

index 30a28ad72a649759a52eb83e3e509175531c1a7f..50cb9f2232c559eb0140f8964bc6874aa39c55bb 100644 (file)
@@ -39,22 +39,23 @@ class backup {
   }
 
   # default backupninja::rdiff configuration
-  define rdiff($port = '22', $ensure = present, $installkey = false) {
+  define rdiff($port = '22', $ensure = present, $installkey = true) {
     backupninja::rdiff { "rdiff-$title.$domain":
-      ensure     => $ensure,
-      options    => "--remote-schema 'ssh -p $port -C %s rdiff-backup --server'",
+      ensure        => $ensure,
+      options       => "--remote-schema 'ssh -p $port -C %s rdiff-backup --server'",
       # [source]
-      keep       => "10",
-      include    => $backup_include_encrypted,
-      exclude    => $backup_exclude_encrypted,
+      keep          => "10",
+      include       => $backup_include_encrypted,
+      exclude       => $backup_exclude_encrypted,
       # [dest]
-      type       => "remote",
-      host       => "$title.$domain",
-      home       => "/var/backups/remote/$fqdn",
-      directory  => "/var/backups/remote/$fqdn/rdiff",
-      user       => "$hostname",
-      sshoptions => "-p $port",
-      installkey => $installkey,
+      type          => "remote",
+      host          => "$title.$domain",
+      home          => "/var/backups/remote/$fqdn",
+      directory     => "/var/backups/remote/$fqdn/rdiff",
+      user          => "$hostname",
+      sshoptions    => "-p $port",
+      installkey    => $installkey,
+      backupkeytype => "dsa",
     }
   }