2014-01-26 04:06:22 +00:00
|
|
|
{% set postgres = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
|
|
|
'pkg': 'postgresql-9.1',
|
2014-02-09 17:50:23 +01:00
|
|
|
'python': 'python-pygresql',
|
2014-02-27 11:37:02 -05:00
|
|
|
'service': 'postgresql',
|
2014-05-15 14:54:53 -07:00
|
|
|
'pg_hba': '/etc/postgresql/9.1/main/pg_hba.conf',
|
2014-01-26 04:06:22 +00:00
|
|
|
},
|
|
|
|
'RedHat': {
|
|
|
|
'pkg': 'postgresql',
|
2014-02-09 17:50:23 +01:00
|
|
|
'python': 'postgresql-python',
|
|
|
|
'service': 'postgresql',
|
|
|
|
},
|
|
|
|
'Arch': {
|
|
|
|
'pkg': 'postgresql',
|
|
|
|
'python': 'python-psycopg2',
|
|
|
|
'service': 'postgresql',
|
2014-01-26 04:06:22 +00:00
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('postgres:lookup')) %}
|