mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 01:30:25 +00:00
18 lines
524 B
Django/Jinja
18 lines
524 B
Django/Jinja
{% set postgres = salt['grains.filter_by']({
|
|
'Debian': {
|
|
'pkg': 'postgresql-9.1',
|
|
'python': 'python-pygresql',
|
|
'service': 'postgresql',
|
|
'pg_hba': '/etc/postgresql/9.1/main/pg_hba.conf',
|
|
},
|
|
'RedHat': {
|
|
'pkg': 'postgresql',
|
|
'python': 'postgresql-python',
|
|
'service': 'postgresql',
|
|
},
|
|
'Arch': {
|
|
'pkg': 'postgresql',
|
|
'python': 'python-psycopg2',
|
|
'service': 'postgresql',
|
|
},
|
|
}, merge=salt['pillar.get']('postgres:lookup')) %}
|