Commit 9f2a54f9 authored by Thomas Goirand's avatar Thomas Goirand

Configure redis for clustering.

parent 624ea49e
......@@ -311,14 +311,19 @@ export OS_CACERT=/etc/ssl/certs/oci-pki-oci-ca-chain.pem
if $has_subrole_gnocchi {
if $is_first_master {
class { '::redis':
bind => $machine_ip,
masterauth => $pass_redis,
bind => $machine_ip,
appendonly => true,
cluster_enabled => true,
cluster_config_file => 'nodes.conf',
cluster_node_timeout => 5000,
}
} else {
class { '::redis':
bind => $machine_ip,
slaveof => "${first_master_ip} 6379",
masterauth => $pass_redis,
bind => $machine_ip,
appendonly => true,
cluster_enabled => true,
cluster_config_file => 'nodes.conf',
cluster_node_timeout => 5000,
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment