Browse Source

Unset memcached_servers by default

This change make sure that OIDCMemCacheServers is not set when
the memcached_servers is not set, to avoid setting empty value.

Change-Id: Id9dfbab25b7a064e5fee6d8bf4fe6a171fba9b15
(cherry picked from commit 5c1632c100)
(cherry picked from commit 9cbe5a1bd6)
(cherry picked from commit 1dd6ad7ccc)
changes/68/818168/1
Alessandro Italiano 2 years ago committed by Takashi Kajinami
parent
commit
063d524dbf
  1. 6
      manifests/federation/openidc.pp
  2. 2
      templates/openidc.conf.erb

6
manifests/federation/openidc.pp

@ -163,7 +163,11 @@ class keystone::federation::openidc (
}
}
$memcached_servers_real = join(any2array($memcached_servers), ' ')
if $memcached_servers != undef {
$memcached_servers_real = join(any2array($memcached_servers), ' ')
} else {
$memcached_servers_real = undef
}
# Note: if puppet-apache modify these values, this needs to be updated
if $template_order <= 330 or $template_order >= 999 {

2
templates/openidc.conf.erb

@ -22,7 +22,7 @@
<%- if scope['::keystone::federation::openidc::openidc_cache_clean_interval'] != nil -%>
OIDCCacheFileCleanInterval scope['::keystone::federation::openidc::openidc_cache_clean_interval'] %>
<%- end -%>
<%- if scope['::keystone::federation::openidc::memcached_servers_real'] -%>
<%- if scope['::keystone::federation::openidc::memcached_servers_real'] != nil -%>
OIDCMemCacheServers "<%= scope['::keystone::federation::openidc::memcached_servers_real'] %>"
<%- end -%>
<%- if scope['::keystone::federation::openidc::redis_server'] != nil -%>

Loading…
Cancel
Save