summaryrefslogtreecommitdiffstats
path: root/modules/tarsnap/manifests/init.pp
blob: 38c4a7ed61b15f8edf33e853e1ffba7b2055081d (plain) (blame)
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
class tarsnap {
  include cron

  package { 'tarsnap':
    ensure => installed;
  }

  package::makepkg { 'acts':
    ensure => installed,
    require => Package['tarsnap'];
  }

  file {
    # XXX /etc/tarsnap.conf
    '/etc/acts.conf':
      source => 'puppet:///modules/tarsnap/acts.conf';
    '/etc/cron.daily/acts':
      source => 'puppet:///modules/tarsnap/acts',
      mode => '0755',
      require => [
        File['/etc/acts.conf'],
        Package::Makepkg['acts'],
        Class['cron'],
      ];
  }
}