Keystone token flushing
authorJiri Stransky <jistr@redhat.com>
Wed, 22 Jul 2015 12:23:30 +0000 (14:23 +0200)
committerJiri Stransky <jistr@redhat.com>
Fri, 24 Jul 2015 16:00:35 +0000 (18:00 +0200)
Set up a cron job to flush keystone tokens periodically. The job runs
once a day near midnight per puppet-keystone defaults, and we pass
maxdelay 3600 which means each controller will wait a random delay of up
to 1 hour before running the task.

Change-Id: I351f0273c61106c182aa3945b7ad1ce8f5c7d12b

puppet/hieradata/controller.yaml
puppet/manifests/overcloud_controller.pp
puppet/manifests/overcloud_controller_pacemaker.pp

index 3cc6497..38505ff 100644 (file)
@@ -40,6 +40,9 @@ swift::proxy::authtoken::admin_tenant_name: 'service'
 ceilometer::api::keystone_tenant: 'service'
 heat::keystone_tenant: 'service'
 
+# keystone
+keystone::cron::token_flush::maxdelay: 3600
+
 #swift
 swift::proxy::pipeline:
   - 'catch_errors'
index c9ff86c..5452430 100644 (file)
@@ -451,3 +451,7 @@ if hiera('step') >= 3 {
   hiera_include('controller_classes')
 
 } #END STEP 3
+
+if hiera('step') >= 4 {
+  include ::keystone::cron::token_flush
+} #END STEP 4
index 480ac55..8e2075f 100644 (file)
@@ -866,6 +866,8 @@ if hiera('step') >= 3 {
 } #END STEP 3
 
 if hiera('step') >= 4 {
+  include ::keystone::cron::token_flush
+
   if $pacemaker_master {
 
     # Keystone