aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/backups/manifests
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-09-16 20:32:55 +0000
committerNicolas Vigier <boklm@mageia.org>2012-09-16 20:32:55 +0000
commit8c7c15734cef74d9676f204f7975df76bac2aea9 (patch)
treef78babe5ca995b07f333cee8f8732fd5ab48751d /deployment/backups/manifests
parent764feeb52d90fc0a0419ad19ba8e16d01f724b14 (diff)
downloadpuppet-8c7c15734cef74d9676f204f7975df76bac2aea9.tar
puppet-8c7c15734cef74d9676f204f7975df76bac2aea9.tar.gz
puppet-8c7c15734cef74d9676f204f7975df76bac2aea9.tar.bz2
puppet-8c7c15734cef74d9676f204f7975df76bac2aea9.tar.xz
puppet-8c7c15734cef74d9676f204f7975df76bac2aea9.zip
add backups module
Diffstat (limited to 'deployment/backups/manifests')
-rw-r--r--deployment/backups/manifests/init.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/deployment/backups/manifests/init.pp b/deployment/backups/manifests/init.pp
new file mode 100644
index 00000000..439cbfd0
--- /dev/null
+++ b/deployment/backups/manifests/init.pp
@@ -0,0 +1,23 @@
+class backups {
+ class server {
+
+ $backups_dir = '/backups'
+ $confdir = "${backups_dir}/conf"
+
+ class { 'rsnapshot::base':
+ confdir => $confdir,
+ }
+
+ file { $backups_dir:
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => 700,
+ }
+
+ rsnapshot::backup{ 'alamut':
+ snapshot_root => "${backups_dir}/alamut",
+ backup => [ 'root@alamut.mageia.org:/srv/wiki wiki' ],
+ }
+ }
+}