Bind redis-sentinel to its network
authorMichele Baldessari <michele@acksyn.org>
Fri, 17 Mar 2017 11:01:15 +0000 (12:01 +0100)
committerMichele Baldessari <michele@acksyn.org>
Fri, 17 Mar 2017 11:01:15 +0000 (12:01 +0100)
We currently do not bind redis-sentinel to any IP:
redis      21144  0.0  0.0 142908  5908 ?        Ssl  07:43   0:11 /usr/bin/redis-sentinel *:26379 [sentinel]

Let's bind it to the same network as redis.

Change-Id: I8a782ae1db84eb614aa3995a1638a2f370e70d06
Partial-Bug: #1673715

puppet/services/database/redis-base.yaml

index 2b7dd43..af89ffb 100644 (file)
@@ -42,3 +42,4 @@ outputs:
         redis::sentinel::master_name: "%{hiera('bootstrap_nodeid')}"
         redis::sentinel::redis_host: "%{hiera('bootstrap_nodeid_ip')}"
         redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'
+        redis::sentinel::sentinel_bind: {get_param: [ServiceNetMap, RedisNetwork]}