Expose params to enable panko expirer cron

Partial-Bug: #1746514

Depends-On: I23359239008105cd77a599d2c08c067f132099b7

Change-Id: Iec9825169dcf0f902c57c057e5f375351cf752f2
This commit is contained in:
Pradeep Kilambi 2018-01-31 12:35:40 -05:00
parent 50f3daacc5
commit 5defc7a8c4
2 changed files with 39 additions and 0 deletions

View File

@ -48,6 +48,35 @@ parameters:
type: string
default: 'regionOne'
description: Keystone region for endpoint
EnablePankoExpirer:
type: boolean
default: true
description: Enable panko expirer to periodically delete events from db
PankoExpirerMinute:
type: string
description: >
Cron to delete events data from db - Minute
default: '1'
PankoExpirerHour:
type: string
description: >
Cron to delete events data from db - Hour
default: '0'
PankoExpirerMonthday:
type: string
description: >
Cron to delete events data from db - Month Day
default: '*'
PankoExpirerMonth:
type: string
description: >
Cron to delete events data from db - Month
default: '*'
PankoExpirerWeekday:
type: string
description: >
Cron to delete events from db - Week Day
default: '*'
conditions:
service_debug_unset: {equals : [{get_param: PankoDebug}, '']}
@ -58,6 +87,7 @@ outputs:
value:
service_name: panko_base
config_settings:
enable_panko_expirer: {get_param: EnablePankoExpirer}
panko::db::database_connection:
make_url:
scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
@ -83,6 +113,11 @@ outputs:
panko::auth::auth_password: {get_param: PankoPassword}
panko::auth::auth_region: {get_param: KeystoneRegion}
panko::auth::auth_tenant_name: 'service'
panko::expirer::minute: {get_param: PankoExpirerMinute}
panko::expirer::hour: {get_param: PankoExpirerHour}
panko::expirer::monthday: {get_param: PankoExpirerMonthday}
panko::expirer::month: {get_param: PankoExpirerMonth}
panko::expirer::weekday: {get_param: PankoExpirerWeekday}
service_config_settings:
keystone:
panko::keystone::auth::public_url: {get_param: [EndpointMap, PankoPublic, uri]}

View File

@ -0,0 +1,4 @@
---
fixes:
- |
Expose panko expirer params to enable and configure it.