2015-04-21 13:06:41 -07:00
|
|
|
{% from "postgres/map.jinja" import postgres with context %}
|
|
|
|
|
2015-04-22 17:47:02 -05:00
|
|
|
{% if postgres.use_upstream_repo %}
|
2015-04-21 15:13:42 -07:00
|
|
|
include:
|
|
|
|
- postgres.upstream
|
2015-04-21 13:06:41 -07:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
install-postgresql-client:
|
|
|
|
pkg.installed:
|
|
|
|
- name: {{ postgres.pkg_client }}
|
2015-04-22 17:47:02 -05:00
|
|
|
- refresh: {{ postgres.use_upstream_repo }}
|
2016-09-22 11:22:24 +10:00
|
|
|
{% if postgres.use_upstream_repo %}
|
|
|
|
- require:
|
|
|
|
- pkgrepo: install-postgresql-repo
|
|
|
|
{%- endif %}
|
2015-04-21 13:06:41 -07:00
|
|
|
|
2015-11-23 13:46:35 +03:00
|
|
|
{% if postgres.pkg_libpq_dev %}
|
2015-04-21 13:06:41 -07:00
|
|
|
install-postgres-libpq-dev:
|
|
|
|
pkg.installed:
|
|
|
|
- name: {{ postgres.pkg_libpq_dev }}
|
|
|
|
{% endif %}
|