Puppet Class: masterless
- Defined in:
- manifests/init.pp
Overview
Sets up puppet to run masterlessly via a systemd timer
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'manifests/init.pp', line 3
class masterless(
$repodir = '/opt/halyard/repo',
$logdir = '/opt/halyard/logs',
$bindir = '/usr/local/bin',
$bootdelay = '1min',
$frequency = '3600'
) {
case $::osfamily {
'Darwin': { include masterless::darwin }
'Archlinux': { include masterless::systemd }
default: { fail("Module does not support ${::osfamily}") }
}
tidy { $logdir:
age => '90d',
recurse => true,
matches => 'puppet-run.*',
}
}
|