Move cloud::cache to cloud::database::nosql::memcached
Move memcached to a new nosql backend for future consistency with Redis & MongoDB. Change-Id: Id257b0173855c0432c22ecc2201d08f9ab4d58b8
This commit is contained in:
parent
1fdf6a616b
commit
541f2b89a0
@ -13,9 +13,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
# == Class: cloud::cache
|
||||
# == Class: cloud::database::nosql::memcached
|
||||
#
|
||||
# Install a cache server (used by OpenStack services)
|
||||
# Install a Memcached server (used by OpenStack services)
|
||||
#
|
||||
# === Parameters:
|
||||
#
|
||||
@ -28,12 +28,12 @@
|
||||
# Should be an hash.
|
||||
# Default to {}
|
||||
#
|
||||
class cloud::cache (
|
||||
class cloud::database::nosql::memcached (
|
||||
$listen_ip = '127.0.0.1',
|
||||
$firewall_settings = {},
|
||||
){
|
||||
|
||||
class { 'memcached':
|
||||
class { '::memcached':
|
||||
listen_ip => $listen_ip,
|
||||
max_memory => '60%',
|
||||
}
|
@ -13,14 +13,14 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
# Unit tests for cloud::cache
|
||||
# Unit tests for cloud::cache::memcached
|
||||
#
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
describe 'cloud::cache' do
|
||||
describe 'cloud::database::nosql::memcached' do
|
||||
|
||||
shared_examples_for 'cache server' do
|
||||
shared_examples_for 'memcached server' do
|
||||
|
||||
let :params do
|
||||
{ :listen_ip => '10.0.0.1' }
|
||||
@ -70,7 +70,7 @@ describe 'cloud::cache' do
|
||||
{ :osfamily => 'Debian' }
|
||||
end
|
||||
|
||||
it_configures 'cache server'
|
||||
it_configures 'memcached server'
|
||||
end
|
||||
|
||||
context 'on RedHat platforms' do
|
||||
@ -78,7 +78,7 @@ describe 'cloud::cache' do
|
||||
{ :osfamily => 'RedHat' }
|
||||
end
|
||||
|
||||
it_configures 'cache server'
|
||||
it_configures 'memcached server'
|
||||
end
|
||||
|
||||
end
|
@ -13,7 +13,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
# Unit tests for cloud::cache
|
||||
# Unit tests for cloud::selinux
|
||||
#
|
||||
|
||||
require 'spec_helper'
|
||||
|
Loading…
x
Reference in New Issue
Block a user