mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 09:40:26 +00:00
21 lines
508 B
Text
21 lines
508 B
Text
{% from "postgres/map.jinja" import postgres with context %}
|
|
|
|
{% if postgres.use_upstream_repo %}
|
|
include:
|
|
- postgres.upstream
|
|
{% endif %}
|
|
|
|
install-postgresql-client:
|
|
pkg.installed:
|
|
- name: {{ postgres.pkg_client }}
|
|
- refresh: {{ postgres.use_upstream_repo }}
|
|
{% if postgres.use_upstream_repo %}
|
|
- require:
|
|
- pkgrepo: install-postgresql-repo
|
|
{%- endif %}
|
|
|
|
{% if postgres.pkg_libpq_dev %}
|
|
install-postgres-libpq-dev:
|
|
pkg.installed:
|
|
- name: {{ postgres.pkg_libpq_dev }}
|
|
{% endif %}
|