Add redis-server

Redis server will be the persistent cache replacement of
memcache service.

Change-Id: I51a29346b114949847e738f6809031ecb8858fae
This commit is contained in:
Marton Kiss 2017-02-28 13:13:04 +01:00
parent 7d1ca74fc7
commit 5e0f581ba5
1 changed files with 13 additions and 0 deletions

View File

@ -26,6 +26,11 @@ class stackalytics (
$memcached_max_memory = '4096',
$memcached_port = '11211',
$vhost_name = $::fqdn,
$redis_port = '6378',
$redis_max_memory = '1gb',
$redis_bind = '127.0.0.1',
$redis_version = '2.8.4',
$redis_password = undef,
) {
include ::httpd
include ::httpd::mod::wsgi
@ -51,6 +56,14 @@ class stackalytics (
udp_port => $memcached_port,
}
class { 'redis':
redis_port => $redis_port,
redis_max_memory => $redis_max_memory,
redis_bind => $redis_bind,
redis_password => $redis_password,
version => $redis_version ,
}
group { 'stackalytics':
ensure => present,
}