summaryrefslogtreecommitdiff
path: root/manifests/svn.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-05-17 23:31:38 +0000
committerMicah Anderson <micah@riseup.net>2008-05-17 23:31:38 +0000
commit6406454bbf71595c511d8ccf838a6007b4fe1e5e (patch)
tree0ebf457c71357fc140758703cf2c9744bde4d578 /manifests/svn.pp
parente726de219e33706f34060ecfd7d94ae4da83ebbb (diff)
create a backupninja svn piece to the module
Diffstat (limited to 'manifests/svn.pp')
-rw-r--r--manifests/svn.pp32
1 files changed, 32 insertions, 0 deletions
diff --git a/manifests/svn.pp b/manifests/svn.pp
new file mode 100644
index 0000000..db46ad9
--- /dev/null
+++ b/manifests/svn.pp
@@ -0,0 +1,32 @@
+# Subversion dumps, as part of a backupninja run.
+#
+# Valid attributes for this type are:
+#
+# order: The prefix to give to the handler config filename, to set
+# order in which the actions are executed during the backup run.
+#
+# ensure: Allows you to delete an entry if you don't want it any more
+# (but be sure to keep the configdir, name, and order the same, so
+# that we can find the correct file to remove).
+#
+# user, dbusername, dbpassword, dbhost, databases, backupdir,
+# hotcopy, sqldump, compress, configfile: As defined in the
+# backupninja documentation, with the caveat that hotcopy, sqldump,
+# and compress take true/false rather than yes/no.
+#
+define backupninja::svn($order = 20,
+ $ensure = present,
+ $src = '/var/lib/svn',
+ $dest = '/var/backups/svn',
+ $tmp = '/var/backups/svn.tmp',
+ $vsname = false,
+ ) {
+ file { "${backupninja::client::configdir}/${order}_${name}.svn":
+ ensure => $ensure,
+ content => template('backupninja/svn.conf.erb'),
+ owner => root,
+ group => root,
+ mode => 0600,
+ require => File["${backupninja::client::configdir}"]
+ }
+}