---
redis::ensure: 'present'
redis::enable: true

redis::config_values:
  port:    "%{hiera('redis::port')}"
  pidfile: "%{hiera('redis::pidfile')}"
  bind:    "%{hiera('redis::host')}"
  daemonize: no
  timeout: 0
  loglevel: verbose
  logfile: stdout

  databases: 16

  save:
    - 900 1
    - 300 10
    - 60 10000

  rdbcompression: yes
  dbfilename: dump.rdb
  dir: "%{hiera('redis::datadir')}"

  appendonly: no
  appendfsync: everysec
  no-appendfsync-on-rewrite: no
  auto-aof-rewrite-percentage: 100
  auto-aof-rewrite-min-size: 64mb

  slowlog-log-slower-than: 10000
  slowlog-max-len: 1024

  list-max-ziplist-entries: 512
  list-max-ziplist-value: 64

  set-max-intset-entries: 512

  zset-max-ziplist-entries: 128
  zset-max-ziplist-value: 64

  activerehashing: yes

---
redis::ensure: 'present'
redis::enable: true

redis::config_values:
  port:    "%{hiera('redis::port')}"
  pidfile: "%{hiera('redis::pidfile')}"
  bind:    "%{hiera('redis::host')}"
  daemonize: no
  timeout: 0
  loglevel: verbose
  logfile: stdout

  databases: 16

  save:
    - 900 1
    - 300 10
    - 60 10000

  rdbcompression: yes
  dbfilename: dump.rdb
  dir: "%{hiera('redis::datadir')}"

  appendonly: no
  appendfsync: everysec
  no-appendfsync-on-rewrite: no

  slowlog-log-slower-than: 10000
  slowlog-max-len: 1024

  list-max-ziplist-entries: 512
  list-max-ziplist-value: 64

  set-max-intset-entries: 512

  activerehashing: yes

Remove default config for non-2.2-compatible bits
Remove default config for non-2.2-compatible bits
