feat: create redisha module
- manage redis/sentinel clusters - ensure ulimit_managed is false - dynamically find servers in role to identify master - add redisadm and sentineladm commands - add script to check if the current host in the master
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# manage RedisHA
|
||||
class redisha (
|
||||
Boolean $manage_repo = $redisha::params::manage_repo,
|
||||
Boolean $redisha_members_lookup = $redisha::params::redisha_members_lookup,
|
||||
Optional[String] $redisha_members_role = $redisha::params::redisha_members_role,
|
||||
Array $redisha_servers = $redisha::params::redisha_servers,
|
||||
) inherits redisha::params {
|
||||
|
||||
include redisha::redis
|
||||
include redisha::sentinel
|
||||
include redisha::tools
|
||||
|
||||
Class['redisha::redis'] -> Class['redisha::sentinel'] -> Class['redisha::tools']
|
||||
}
|
||||
Reference in New Issue
Block a user