aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2016-10-17 14:47:33 -0400
committerDan Prince <dprince@redhat.com>2016-10-18 07:57:54 -0400
commit2e234e2e3510e405de2ff97754b96681bf49bcff (patch)
tree5747aa27c50f009b0461ea3ad67eef3c4fed5a1e /manifests
parent4cd125fceb1182f9a041c2c2fb9774145ece793a (diff)
Set memcached_servers for nova API
This patch updates the Nova profile so that we set memcached servers correctly for the Nova keystone auth_token middleware. Most of the hiera settings for ::nova::keystone::authtoken are already included in the t-h-t nova-api service. Change-Id: I3b7ff02abbd0d5e0c38232d02b33e4c7bc411120 Closes-bug: #1633595
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile/base/nova/api.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/profile/base/nova/api.pp b/manifests/profile/base/nova/api.pp
index c3e9ec4..e45f4b0 100644
--- a/manifests/profile/base/nova/api.pp
+++ b/manifests/profile/base/nova/api.pp
@@ -39,6 +39,16 @@ class tripleo::profile::base::nova::api (
if $step >= 4 or ($step >= 3 and $sync_db) {
+ if hiera('nova::use_ipv6', false) {
+ $memcache_servers = suffix(any2array(normalize_ip_for_uri(hiera('memcached_node_ips_v6'))), ':11211')
+ } else {
+ $memcache_servers = suffix(any2array(normalize_ip_for_uri(hiera('memcached_node_ips'))), ':11211')
+ }
+
+ class { '::nova::keystone::authtoken':
+ memcached_servers => $memcache_servers
+ }
+
class { '::nova::api':
service_name => 'httpd', # Temporary: will be moved to t-h-t
sync_db => $sync_db,