Add Redis replica recipe and role

This commit is contained in:
2024-01-24 18:11:58 +03:00
parent c32e8bc9e5
commit 88e96747e3
5 changed files with 51 additions and 13 deletions

15
roles/redis_replica.rb Normal file
View File

@@ -0,0 +1,15 @@
name "redis_replica"
run_list %w(
kosmos_redis::replica
kosmos_redis::firewall
)
default_attributes({
'redisio' => {
'default_settings' => {
'slaveservestaledata' => 'yes',
'slavereadonly' => 'yes'
}
}
})