Skip to content

Commit

Permalink
tidy reports
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Nov 15, 2024
1 parent a5b9423 commit 863b58b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
#
# @param repodir path for storing local checkout of repository
# @param logdir path for puppet log storage
# @param reportdir sets where to tidy reports
# @param bindir path for storing symlink to run script
# @param bootdelay how long to wait after boot before first run
# @param frequency how often to run in seconds
#
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'
Expand All @@ -26,4 +28,10 @@
recurse => true,
matches => 'puppet-run.*',
}

tidy { $reportdir:
age => '90d',
recurse => true,
matches => '*.yaml',
}
}

0 comments on commit 863b58b

Please sign in to comment.