Merge "Enable caching"
This commit is contained in:
commit
1e03b3e260
@ -15,6 +15,18 @@ class packstack::heat ()
|
||||
workers => lookup('CONFIG_SERVICE_WORKERS'),
|
||||
}
|
||||
|
||||
$memcache_servers = lookup('CONFIG_IP_VERSION') ? {
|
||||
'ipv6' => ['[::1]:11211'],
|
||||
default => ['127.0.0.1:11211'],
|
||||
}
|
||||
class {'heat::cache':
|
||||
enabled => true,
|
||||
backend => 'dogpile.cache.pymemcache',
|
||||
memcache_servers => $memcache_servers,
|
||||
}
|
||||
include packstack::memcached
|
||||
Class['memcached'] -> Anchor['heat::service::begin']
|
||||
|
||||
$heat_cfg_ctrl_host = lookup('CONFIG_KEYSTONE_HOST_URL')
|
||||
|
||||
class { 'heat::engine':
|
||||
|
@ -60,6 +60,18 @@ class packstack::keystone ()
|
||||
region => lookup('CONFIG_KEYSTONE_REGION'),
|
||||
}
|
||||
|
||||
$memcache_servers = lookup('CONFIG_IP_VERSION') ? {
|
||||
'ipv6' => ['[::1]:11211'],
|
||||
default => ['127.0.0.1:11211'],
|
||||
}
|
||||
class { 'keystone::cache':
|
||||
enabled => true,
|
||||
backend => 'dogpile.cache.pymemcache',
|
||||
memcache_servers => $memcache_servers,
|
||||
}
|
||||
include packstack::memcached
|
||||
Class['memcached'] -> Anchor['keystone::dbsync::begin']
|
||||
|
||||
# default assignment driver is SQL
|
||||
$assignment_driver = 'keystone.assignment.backends.sql.Assignment'
|
||||
|
||||
|
@ -36,6 +36,7 @@ class packstack::nova::api ()
|
||||
service_name => 'httpd',
|
||||
}
|
||||
|
||||
include packstack::nova::cache
|
||||
class { 'nova::metadata':
|
||||
neutron_metadata_proxy_shared_secret => lookup('CONFIG_NEUTRON_METADATA_PW_UNQUOTED', undef, undef, undef),
|
||||
}
|
||||
|
14
packstack/puppet/modules/packstack/manifests/nova/cache.pp
Normal file
14
packstack/puppet/modules/packstack/manifests/nova/cache.pp
Normal file
@ -0,0 +1,14 @@
|
||||
class packstack::nova::cache ()
|
||||
{
|
||||
$memcache_servers = lookup('CONFIG_IP_VERSION') ? {
|
||||
'ipv6' => ['[::1]:11211'],
|
||||
default => ['127.0.0.1:11211'],
|
||||
}
|
||||
class { 'nova::cache':
|
||||
enabled => true,
|
||||
backend => 'dogpile.cache.pymemcache',
|
||||
memcache_servers => $memcache_servers,
|
||||
}
|
||||
include packstack::memcached
|
||||
Class['memcached'] -> Anchor['nova::service::begin']
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
class packstack::nova::conductor ()
|
||||
{
|
||||
include packstack::nova::cache
|
||||
class { 'nova::conductor':
|
||||
enabled => true,
|
||||
workers => lookup('CONFIG_SERVICE_WORKERS'),
|
||||
|
@ -1,7 +1,7 @@
|
||||
class packstack::nova::sched ()
|
||||
{
|
||||
include packstack::nova::cache
|
||||
include nova::scheduler::filter
|
||||
|
||||
class { 'nova::scheduler':
|
||||
enabled => true,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user