Merge "Fixup the memcached servers string in nova.conf for v6"

This commit is contained in:
Jenkins 2016-03-08 09:11:04 +00:00 committed by Gerrit Code Review
commit bb05fa304a
2 changed files with 16 additions and 1 deletions

View File

@ -139,6 +139,14 @@ resources:
list_join:
- "','"
- {get_param: memcache_node_ips}
memcache_node_ips_v6:
str_replace:
template: "['inet6:[SERVERS_LIST]']"
params:
SERVERS_LIST:
list_join:
- "]','inet6:["
- {get_param: memcache_node_ips}
mysql_node_ips:
str_replace:
template: "['SERVERS_LIST']"

View File

@ -628,8 +628,15 @@ if hiera('step') >= 3 {
include ::glance::notify::rabbitmq
include join(['::glance::backend::', $glance_backend])
$nova_ipv6 = hiera('nova::use_ipv6', false)
if $nova_ipv6 {
$memcached_servers = suffix(hiera('memcache_node_ips_v6'), ':11211')
} else {
$memcached_servers = suffix(hiera('memcache_node_ips'), ':11211')
}
class { '::nova' :
memcached_servers => suffix(hiera('memcache_node_ips'), ':11211'),
memcached_servers => $memcached_servers
}
include ::nova::config