Add new Redis cookbook

This commit is contained in:
2021-11-16 13:25:30 -06:00
parent 80ec84782b
commit 18f65c4fc5
66 changed files with 5780 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
config_dir = if platform_family?('freebsd')
'/usr/local/etc/redis'
else
'/etc/redis'
end
default['redisio']['sentinel_defaults'] = {
'user' => 'redis',
'configdir' => config_dir,
'sentinel_bind' => nil,
'sentinel_port' => 26379,
'monitor' => nil,
'down_after_milliseconds' => 30000,
'can-failover' => 'yes',
'parallel-syncs' => 1,
'failover_timeout' => 900000,
'loglevel' => 'notice',
'logfile' => nil,
'syslogenabled' => 'yes',
'syslogfacility' => 'local0',
'quorum_count' => 2,
'data_bag_name' => nil,
'data_bag_item' => nil,
'data_bag_key' => nil,
'announce-ip' => nil,
'announce-port' => nil,
'notification-script' => nil,
'client-reconfig-script' => nil,
'protected_mode' => nil,
}
# Manage Sentinel Config File
## Will write out the base config one time then no longer manage the config allowing sentinel to take over
default['redisio']['sentinel']['manage_config'] = true # Deprecated
default['redisio']['sentinels'] = nil