Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Add reports_retention_age param
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Oct 7, 2014
1 parent 36448b7 commit 3908586
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@
$manifest_path = params_lookup( 'manifest_path' ),
$module_path = params_lookup( 'module_path' ),
$template_dir = params_lookup( 'template_dir' ),
$reports_dir = params_lookup( 'reports_dir' )
$reports_dir = params_lookup( 'reports_dir' ),
$reports_retention_age = params_lookup( 'reports_retention_age' ),
) inherits puppet::params {

$bool_enc_backup=any2bool($enc_backup)
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
$template_dir = '/var/lib/puppet/templates'

$reports_dir = '/var/lib/puppet/reports'
$reports_retention_age = '1w'

# DB package resources
$mysql_conn_package = $::operatingsystem ? {
Expand Down
2 changes: 1 addition & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
### remove stored reports after a week
if $puppet::nodetool == "foreman" or $puppet::nodetool == "dashboard" {
tidy { $puppet::reports_dir:
age => "1w",
age => $puppet::reports_retention_age,
recurse => true,
rmdirs => true,
type => ctime;
Expand Down

0 comments on commit 3908586

Please sign in to comment.