Merge pull request #99 from a-powell/master

Adding pkg dependency for directory permissions.
This commit is contained in:
Wolodja Wentland 2016-06-05 19:53:51 +02:00
commit 4945d0d1ba

View file

@ -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 %}