postgres-formula/postgres/map.jinja
Niels Abspoel 62b7d6c47f updated postgresql module
added service
added python module
added archlinux support
2014-02-09 17:50:23 +01:00

17 lines
470 B
Django/Jinja

{% set postgres = salt['grains.filter_by']({
'Debian': {
'pkg': 'postgresql-9.1',
'python': 'python-pygresql',
'service': 'postgresql-9-1',
},
'RedHat': {
'pkg': 'postgresql',
'python': 'postgresql-python',
'service': 'postgresql',
},
'Arch': {
'pkg': 'postgresql',
'python': 'python-psycopg2',
'service': 'postgresql',
},
}, merge=salt['pillar.get']('postgres:lookup')) %}