OpenSibleOpenSible Stack Hub
← All blueprints

Redis + Sentinel

OSS

Redis primary/replica with Sentinel for automatic failover. Distro packages + systemd — no Docker, no Bitnami. First node is the initial primary; add 3+ nodes for real HA.

by opensible· ⬇ 0 installs· Databases· v1.0.0· template redis-sentinel

Use in the OpenSible console

Open Infrastructure → Stack Hub Blueprints, switch the source to Cloud hub, then pick Redis + Sentinel and press Use.

Requirements

  • ansible >=2.14

Default variables

defaults.json
{
  "bind": "0.0.0.0",
  "port": 6379,
  "nodes": [
    {
      "ip": "",
      "name": "redis-1",
      "ssh_port": "",
      "ssh_user": ""
    },
    {
      "ip": "",
      "name": "redis-2",
      "ssh_port": "",
      "ssh_user": ""
    },
    {
      "ip": "",
      "name": "redis-3",
      "ssh_port": "",
      "ssh_user": ""
    }
  ],
  "become": true,
  "flavor": "redis",
  "quorum": 2,
  "maxmemory": "",
  "appendonly": true,
  "cluster_id": "opensible-redis",
  "requirepass": "",
  "primary_name": "mymaster",
  "down_after_ms": 5000,
  "open_firewall": true,
  "sentinel_port": 26379,
  "parallel_syncs": 1,
  "maxmemory_policy": "noeviction",
  "ssh_port_default": 22,
  "ssh_user_default": "root",
  "failover_timeout_ms": 10000
}

vars.example.yml

vars.example.yml
# Example variables — copy to vars.yml and edit
flavor: redis
cluster_id: opensible-redis
primary_name: mymaster
port: 6379
sentinel_port: 26379
quorum: 2
down_after_ms: 5000
failover_timeout_ms: 10000
parallel_syncs: 1
maxmemory_policy: noeviction
appendonly: true
bind: 0.0.0.0
# requirepass: "change-me-strong-password"
open_firewall: true
become: true

Versions (1)

  • v1.0.0playbook.yml