Puppet Class: serverless
- Defined in:
-
manifests/init.pp
Summary
serverless sets up puppet to run from a local repository on a timer
Overview
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'manifests/init.pp', line 10
class serverless (
String $repodir = '/opt/halyard/repo',
String $logdir = '/opt/halyard/logs',
String $reportdir = '/opt/halyard/puppet/cache/reports/',
String $bindir = '/usr/local/bin',
String $bootdelay = '1min',
String $frequency = '3600'
) {
case $facts['os']['name'] {
'Darwin': { include serverless::darwin }
'Archlinux': { include serverless::systemd }
'Arch': { include serverless::systemd }
'Ubuntu': { include serverless::systemd }
default: { fail("Module does not support ${facts['os']['family']}") }
}
tidy { $logdir:
age => '7d',
recurse => true,
matches => '*puppet-run.*',
type => 'mtime',
}
tidy { $reportdir:
age => '7d',
recurse => true,
matches => '*.yaml',
}
}
|