Enable caching in more services
This enables caching using oslo.cache in the following services, to test the related deployment logics. - ec2-api - neutron - watcher - zaqar Change-Id: Ia58a85701107bab747e0f33133486e63be54a0a9
This commit is contained in:
parent
6cc6f37a64
commit
fc190c54d7
@ -29,6 +29,11 @@ class openstack_integration::ec2api {
|
|||||||
|
|
||||||
case $facts['os']['family'] {
|
case $facts['os']['family'] {
|
||||||
'RedHat': {
|
'RedHat': {
|
||||||
|
class { 'ec2api::cache':
|
||||||
|
backend => 'dogpile.cache.pymemcache',
|
||||||
|
enabled => true,
|
||||||
|
memcache_servers => $::openstack_integration::config::memcache_servers,
|
||||||
|
}
|
||||||
class { 'ec2api::db':
|
class { 'ec2api::db':
|
||||||
database_connection => os_database_connection({
|
database_connection => os_database_connection({
|
||||||
'dialect' => 'mysql+pymysql',
|
'dialect' => 'mysql+pymysql',
|
||||||
|
@ -257,6 +257,11 @@ class openstack_integration::neutron (
|
|||||||
Anchor['neutron::service::end'] ~> Exec['check-neutron-server'] -> Neutron_network<||>
|
Anchor['neutron::service::end'] ~> Exec['check-neutron-server'] -> Neutron_network<||>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class { 'neutron::cache':
|
||||||
|
backend => 'dogpile.cache.pymemcache',
|
||||||
|
enabled => true,
|
||||||
|
memcache_servers => $::openstack_integration::config::memcache_servers,
|
||||||
|
}
|
||||||
class { 'neutron::db':
|
class { 'neutron::db':
|
||||||
database_connection => os_database_connection({
|
database_connection => os_database_connection({
|
||||||
'dialect' => 'mysql+pymysql',
|
'dialect' => 'mysql+pymysql',
|
||||||
|
@ -21,6 +21,11 @@ class openstack_integration::watcher {
|
|||||||
password => 'watcher',
|
password => 'watcher',
|
||||||
host => $::openstack_integration::config::host,
|
host => $::openstack_integration::config::host,
|
||||||
}
|
}
|
||||||
|
class { 'watcher::cache':
|
||||||
|
backend => 'dogpile.cache.pymemcache',
|
||||||
|
enabled => true,
|
||||||
|
memcache_servers => $::openstack_integration::config::memcache_servers,
|
||||||
|
}
|
||||||
class { 'watcher::db':
|
class { 'watcher::db':
|
||||||
database_connection => os_database_connection({
|
database_connection => os_database_connection({
|
||||||
'dialect' => 'mysql+pymysql',
|
'dialect' => 'mysql+pymysql',
|
||||||
|
@ -34,6 +34,11 @@ class openstack_integration::zaqar {
|
|||||||
auth_url => "${::openstack_integration::config::keystone_auth_uri}/v3",
|
auth_url => "${::openstack_integration::config::keystone_auth_uri}/v3",
|
||||||
password => 'a_big_secret'
|
password => 'a_big_secret'
|
||||||
}
|
}
|
||||||
|
class { 'zaqar::cache':
|
||||||
|
backend => 'dogpile.cache.pymemcache',
|
||||||
|
enabled => true,
|
||||||
|
memcache_servers => $::openstack_integration::config::memcache_servers,
|
||||||
|
}
|
||||||
class { 'zaqar::management::sqlalchemy':
|
class { 'zaqar::management::sqlalchemy':
|
||||||
uri => os_database_connection({
|
uri => os_database_connection({
|
||||||
'dialect' => 'mysql+pymysql',
|
'dialect' => 'mysql+pymysql',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user