OpenSibleOpenSible Stack Hub
← All blueprints

Valkey + Sentinel

OSS

Valkey (open-source Redis fork) 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 Valkey + Sentinel and press Use.

Requirements

  • ansible >=2.14

Default variables

defaults.json
{
  "bind": "0.0.0.0",
  "port": 6379,
  "nodes": [
    {
      "ip": "",
      "name": "valkey-1",
      "ssh_port": "",
      "ssh_user": ""
    },
    {
      "ip": "",
      "name": "valkey-2",
      "ssh_port": "",
      "ssh_user": ""
    },
    {
      "ip": "",
      "name": "valkey-3",
      "ssh_port": "",
      "ssh_user": ""
    }
  ],
  "become": true,
  "flavor": "valkey",
  "quorum": 2,
  "maxmemory": "",
  "appendonly": true,
  "cluster_id": "opensible-valkey",
  "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 for the Valkey + Sentinel blueprint.
flavor: valkey
cluster_id: opensible-valkey
primary_name: mymaster

# 3 nodes recommended for real HA. First entry is the initial primary.
nodes:
  - { name: valkey-1, ip: 10.0.0.11, ssh_user: root, ssh_port: 22 }
  - { name: valkey-2, ip: 10.0.0.12, ssh_user: root, ssh_port: 22 }
  - { name: valkey-3, ip: 10.0.0.13, ssh_user: root, ssh_port: 22 }

bind: 0.0.0.0
port: 6379
sentinel_port: 26379

# Set a strong password to enable auth (requirepass + masterauth + sentinel auth-pass).
requirepass: ""

quorum: 2
down_after_ms: 5000
failover_timeout_ms: 10000
parallel_syncs: 1

maxmemory: ""
maxmemory_policy: noeviction
appendonly: true

open_firewall: true
become: true

Versions (1)

  • v1.0.0playbook.yml