mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-17 10:10:31 +00:00
add dropped state
This commit is contained in:
parent
2204733990
commit
2f6cbb39b6
1 changed files with 30 additions and 0 deletions
30
postgres/dropped.sls
Normal file
30
postgres/dropped.sls
Normal file
|
@ -0,0 +1,30 @@
|
|||
{% from "postgres/map.jinja" import postgres with context %}
|
||||
|
||||
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:
|
||||
- name: {{ postgres.conf_dir }}
|
Loading…
Add table
Reference in a new issue