Merge pull request #99 from a-powell/master
Adding pkg dependency for directory permissions.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
# -*- mode: yaml -*-
|
||||||
|
# vim: syntax=yaml:sw=2
|
||||||
|
|
||||||
{% from "postgres/map.jinja" import postgres with context %}
|
{% from "postgres/map.jinja" import postgres with context %}
|
||||||
|
|
||||||
{% if postgres.use_upstream_repo %}
|
{% if postgres.use_upstream_repo %}
|
||||||
@@ -11,8 +14,9 @@ postgresql-config-dir:
|
|||||||
- user: {{ postgres.user }}
|
- user: {{ postgres.user }}
|
||||||
- group: {{ postgres.group }}
|
- group: {{ postgres.group }}
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
{% if postgres.conf_dir == postgres.data_dir %}
|
|
||||||
- require:
|
- require:
|
||||||
|
- pkg: postgresql-installed
|
||||||
|
{% if postgres.conf_dir == postgres.data_dir %}
|
||||||
- cmd: postgresql-cluster-prepared
|
- cmd: postgresql-cluster-prepared
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user