blob: eb9e343465f0f1dde001aa23f6db0bba23ce5254 [file] [log] [blame]
{% set server = salt['grains.filter_by']({
'Arch': {
'pkgs': ['redis'],
'service': 'redis',
'conf_dir': '/etc/redis.conf',
'bind': {
'address': '127.0.0.1',
'port': '6379'
}
},
'Debian': {
'pkgs': ['redis-server'],
'service': 'redis-server',
'conf_dir': '/etc/redis/',
'bind': {
'address': '127.0.0.1',
'port': '6379'
}
},
'RedHat': {
'pkgs': ['redis'],
'service': 'redis',
'conf_dir': '/etc/redis/redis.conf',
'bind': {
'address': '127.0.0.1',
'port': '6379'
}
},
}, merge=salt['pillar.get']('redis:server')) %}
{% set cluster = salt['grains.filter_by']({
'Debian': {
'enabled': False
},
}, merge=salt['pillar.get']('redis:cluster')) %}