diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-09-16 20:32:55 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-09-16 20:32:55 +0000 |
commit | 8c7c15734cef74d9676f204f7975df76bac2aea9 (patch) | |
tree | f78babe5ca995b07f333cee8f8732fd5ab48751d /deployment/backups/manifests | |
parent | 764feeb52d90fc0a0419ad19ba8e16d01f724b14 (diff) | |
download | puppet-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.pp | 23 |
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' ], + } + } +} |