This module installs and manages a Redis server. All redis.conf options are accepted in the parameterized class.
Tested on CentOS 6.3 and Debian Squeeze.
Use the default parameters:
class { 'redis': }
To change the port and listening network interface:
class { 'redis':
conf_port => '6379',
conf_bind => '0.0.0.0',
}
Check the init.pp file for a complete list of parameters accepted.
- custom sysctl
To enable and set important Linux kernel sysctl parameters as described in the Redis Admin Guide - use the following configuration option:
class { 'redis':
system_sysctl => true
}
By default, this sysctl parameter will not be enabled. Furthermore, you will need the sysctl module defined in the Modulefile file.
- service restart
If you need to execute a controlled restart of redis after changes due master/slave relationships to avoid that both are restarted at the same time use the parameter below.
class { 'redis':
service_restart => false
}
By default service restart is true.
Copyright (C) 2012 Felipe Salum
Felipe Salum can be contacted at: [email protected]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.