From 5defc7a8c4287c05562cbece4314b1760e616a08 Mon Sep 17 00:00:00 2001 From: Pradeep Kilambi Date: Wed, 31 Jan 2018 12:35:40 -0500 Subject: [PATCH] Expose params to enable panko expirer cron Partial-Bug: #1746514 Depends-On: I23359239008105cd77a599d2c08c067f132099b7 Change-Id: Iec9825169dcf0f902c57c057e5f375351cf752f2 --- puppet/services/panko-base.yaml | 35 +++++++++++++++++++ .../add-panko-expirer-bac4243971fc23e5.yaml | 4 +++ 2 files changed, 39 insertions(+) create mode 100644 releasenotes/notes/add-panko-expirer-bac4243971fc23e5.yaml diff --git a/puppet/services/panko-base.yaml b/puppet/services/panko-base.yaml index 700cebecee..86b0bfb49b 100644 --- a/puppet/services/panko-base.yaml +++ b/puppet/services/panko-base.yaml @@ -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]} diff --git a/releasenotes/notes/add-panko-expirer-bac4243971fc23e5.yaml b/releasenotes/notes/add-panko-expirer-bac4243971fc23e5.yaml new file mode 100644 index 0000000000..7d5e1ee368 --- /dev/null +++ b/releasenotes/notes/add-panko-expirer-bac4243971fc23e5.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Expose panko expirer params to enable and configure it.