2018-05-02 15:54:53 +02:00
|
|
|
{% from tpldir + "/map.jinja" import postgres with context %}
|
2015-11-23 14:08:00 +03:00
|
|
|
|
|
|
|
postgresql-dead:
|
|
|
|
service.dead:
|
|
|
|
- name: {{ postgres.service }}
|
|
|
|
|
|
|
|
postgresql-removed:
|
|
|
|
pkg.removed:
|
|
|
|
- pkgs:
|
|
|
|
{% if postgres.pkg %}
|
|
|
|
- {{ postgres.pkg }}
|
|
|
|
{% endif %}
|
|
|
|
{% if postgres.pkg_client %}
|
|
|
|
- {{ postgres.pkg_client }}
|
|
|
|
{% endif %}
|
|
|
|
{% if postgres.pkg_dev %}
|
|
|
|
- {{ postgres.pkg_dev }}
|
|
|
|
{% endif %}
|
|
|
|
{% if postgres.pkg_libpq_dev %}
|
|
|
|
- {{ postgres.pkg_libpq_dev }}
|
|
|
|
{% endif %}
|
|
|
|
{% if postgres.pkgs_extra %}
|
|
|
|
{% for pkg in postgres.pkgs_extra %}
|
|
|
|
- {{ pkg }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
postgres-dir-absent:
|
|
|
|
file.absent:
|
2018-06-18 23:46:29 +01:00
|
|
|
- names:
|
|
|
|
- {{ postgres.conf_dir }}
|
|
|
|
- {{ postgres.data_dir }}
|