aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/backups/manifests/init.pp
blob: ba2d16d52d6267ed7b42647834e482cb4072621e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class backups {
    class server {

        $backups_dir = '/data/backups'
        $confdir = "${backups_dir}/conf"

        class { 'rsnapshot::base':
            confdir => $confdir,
        }

        file { $backups_dir:
            ensure => directory,
            owner  => root,
            group  => root,
            mode   => '0700',
        }

        rsnapshot::backup{ 'neru':
            snapshot_root => "${backups_dir}/neru",
            backup        => [ "root@neru.${::domain}:/home/irc_bots/meetings meetbot" ],
        }
    }
}