mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-17 10:10:31 +00:00
Adding pkg dependency for directory permissions.
This commit is contained in:
parent
a5012f0168
commit
dca04c76d1
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
|||
# -*- mode: yaml -*-
|
||||
# vim: syntax=yaml:sw=2
|
||||
|
||||
{% from "postgres/map.jinja" import postgres with context %}
|
||||
|
||||
{% if postgres.use_upstream_repo %}
|
||||
|
@ -11,8 +14,9 @@ postgresql-config-dir:
|
|||
- user: {{ postgres.user }}
|
||||
- group: {{ postgres.group }}
|
||||
- makedirs: True
|
||||
{% if postgres.conf_dir == postgres.data_dir %}
|
||||
- require:
|
||||
- pkg: postgresql-installed
|
||||
{% if postgres.conf_dir == postgres.data_dir %}
|
||||
- cmd: postgresql-cluster-prepared
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue