OP#233 add variable for puppetdb logs max age
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
# @param [String] pt_pptdb_ca_crt placeholder for the ca.crt
|
# @param [String] pt_pptdb_ca_crt placeholder for the ca.crt
|
||||||
# @param [String] pt_pptdb_server_crt placeholder for the server.crt
|
# @param [String] pt_pptdb_server_crt placeholder for the server.crt
|
||||||
# @param [String] pt_pptdb_server_key placeholder for the server.crt
|
# @param [String] pt_pptdb_server_key placeholder for the server.crt
|
||||||
|
# @param [String] pt_pptdb_log_max_age the max age for puppetdb logs in days
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class confdroid_puppet::params (
|
class confdroid_puppet::params (
|
||||||
|
|
||||||
@@ -121,6 +122,7 @@ class confdroid_puppet::params (
|
|||||||
String $pt_pptdb_ca_crt = 'Changeme',
|
String $pt_pptdb_ca_crt = 'Changeme',
|
||||||
String $pt_pptdb_server_crt = 'Changeme',
|
String $pt_pptdb_server_crt = 'Changeme',
|
||||||
String $pt_pptdb_server_key = 'Changeme',
|
String $pt_pptdb_server_key = 'Changeme',
|
||||||
|
String $pt_pptdb_log_max_age = '30',
|
||||||
|
|
||||||
## jetty
|
## jetty
|
||||||
String $pt_http_port = '8080',
|
String $pt_http_port = '8080',
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<fileNamePattern>/var/log/puppetlabs/puppetdb/puppetdb-status-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
<fileNamePattern>/var/log/puppetlabs/puppetdb/puppetdb-status-%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
||||||
<!-- each file should be at most 200MB, keep 90 days worth of history, but at most 1GB total-->
|
<!-- each file should be at most 200MB, keep 90 days worth of history, but at most 1GB total-->
|
||||||
<maxFileSize>200MB</maxFileSize>
|
<maxFileSize>200MB</maxFileSize>
|
||||||
<maxHistory>90</maxHistory>
|
<maxHistory><%= @pt_pptdb_log_max_age %></maxHistory>
|
||||||
<totalSizeCap>1GB</totalSizeCap>
|
<totalSizeCap>1GB</totalSizeCap>
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
<encoder>
|
<encoder>
|
||||||
|
|||||||
Reference in New Issue
Block a user