aboutsummaryrefslogtreecommitdiff
path: root/manifests/params.pp
blob: caeff04c533b81f3acde1921742273959875ba50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class backup::params {
  # backup folder
  $backupdir        = "/var/backups"
  $backupdir_remote = "$backupdir/remote"
  $backupdir_ensure = hiera('backup::dir::ensure', 'directory')

  # for data that's going to be encrypted and signed
  $include_unencrypted = [ "/etc", "/var", "/home", ]
  $exclude_unencrypted = [ "$backupdir_remote", "$backupdir/duplicity", "$backupdir/restore", "/var/cache", "/var/log", "/var/vservers", "/var/chroot", "/root/.cache", "/var/lib/dpkg", "/var/lib/apt", "/var/lib/aptitude/", "/var/sites/backups", "/var/data/crypt", "/data/backups", "/data/cache" ]

  # for data that were previously encrypted and signed
  $include_encrypted = [ "$backupdir/duplicity", ]
  $exclude_encrypted = [ "$backupdir/duplicity/.ssh", ]

  # ensure the latest backup version
  $backupninja_ensure_version = 'latest'
}