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.