24 lines
644 B
Django/Jinja
24 lines
644 B
Django/Jinja
{% set postgres = salt['grains.filter_by']({
|
|
'Debian': {
|
|
'pkg': 'postgresql-9.1',
|
|
'python': 'python-pygresql',
|
|
'service': 'postgresql',
|
|
},
|
|
'RedHat': {
|
|
'pkg': 'postgresql',
|
|
'python': 'postgresql-python',
|
|
'service': 'postgresql',
|
|
},
|
|
'Arch': {
|
|
'pkg': 'postgresql',
|
|
'python': 'python-psycopg2',
|
|
'service': 'postgresql',
|
|
},
|
|
'Ubuntu': {
|
|
'pkg': 'postgresql-9.3',
|
|
'python': 'libpq-dev',
|
|
'service': 'postgresql',
|
|
'pg_hba': '/etc/postgresql/9.3/main/pg_hba.conf',
|
|
},
|
|
}, merge=salt['pillar.get']('postgres:lookup')) %}
|