Merge "Allow custom time constraints to rotate logs"
This commit is contained in:
commit
27d1302f05
@ -36,7 +36,24 @@ parameters:
|
||||
default: {}
|
||||
description: Parameters specific to the role
|
||||
type: json
|
||||
|
||||
LogrotateMaxsize:
|
||||
description: Configures tme maxsize param for containerized logrotate.
|
||||
type: string
|
||||
default: '10M'
|
||||
LogrotateRotationInterval:
|
||||
description: Configures rotation interval for containerized logrotate.
|
||||
type: string
|
||||
default: 'daily'
|
||||
constraints:
|
||||
- allowed_values: [ 'daily', 'weekly', 'monthly' ]
|
||||
LogrotateRotate:
|
||||
description: Configures the rotate param for containerized logrotate.
|
||||
type: string
|
||||
default: '14'
|
||||
LogrotatePurgeAfterDays:
|
||||
description: Enforces life time (days) of rotated and compressed files.
|
||||
type: string
|
||||
default: '14'
|
||||
|
||||
resources:
|
||||
|
||||
@ -48,7 +65,11 @@ outputs:
|
||||
description: Role data for the crond role.
|
||||
value:
|
||||
service_name: logrotate_crond
|
||||
config_settings: {}
|
||||
config_settings:
|
||||
tripleo::profile::base::logging::logrotate::maxsize: {get_param: LogrotateMaxsize}
|
||||
tripleo::profile::base::logging::logrotate::rotation: {get_param: LogrotateRotationInterval}
|
||||
tripleo::profile::base::logging::logrotate::rotate: {get_param: LogrotateRotate}
|
||||
tripleo::profile::base::logging::logrotate::purge_after_days: {get_param: LogrotatePurgeAfterDays}
|
||||
# BEGIN DOCKER SETTINGS
|
||||
puppet_config:
|
||||
config_volume: crond
|
||||
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The 'LogrotatePurgeAfterDays'
|
||||
enforces cleaning up of information exceeded its life-time
|
||||
(defaults to a 14 days) in the /var/log/containers directory of
|
||||
bare metal overcloud hosts, including upgrade (from containers)
|
||||
cases, when leftovers may be remaining on the host systems.
|
||||
security:
|
||||
- |
|
||||
New heat parameters for containerized services 'LogrotateMaxsize',
|
||||
'LogrotateRotationInterval', 'LogrotateRotate' and
|
||||
'LogrotatePurgeAfterDays' allow customizing size/time-based rules
|
||||
for the containerized services logs rotation.
|
||||
The time based rules prevail over all.
|
Loading…
x
Reference in New Issue
Block a user