blob: 485daa75b3b5104124b4620ac5017d7c4d42a6c7 (
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
27
28
29
30
31
|
class tarsnap($source=undef, $content=undef) {
package { 'tarsnap':
ensure => installed;
}
package::makepkg { 'acts':
ensure => installed,
require => Package['tarsnap'];
}
file {
'/etc/tarsnap/tarsnap.conf':
source => 'puppet:///modules/tarsnap/tarsnap.conf';
'/etc/acts.conf':
source => $source,
content => $content;
}
cron::job { "acts":
frequency => "daily",
source => 'puppet:///modules/tarsnap/acts',
require => [
File['/etc/acts.conf'],
Package::Makepkg['acts'],
];
}
secret { "/etc/tarsnap/machine-key":
source => 'tarsnap',
}
}
|