aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/backups/manifests/init.pp
blob: 84822ef57b07d35dfc4a988fb823e401c71cde7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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{ 'alamut':
            snapshot_root => "${backups_dir}/alamut",
            backup        => [ "root@alamut.${::domain}:/srv/wiki wiki" ],
        }

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