mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 17:50:27 +00:00
set dependencies accordingly: if asked to prepare, depend on the cmd being run, otherwise, only depend on the file
This commit is contained in:
parent
6de97ce0f1
commit
187c86fe97
1 changed files with 4 additions and 0 deletions
|
@ -101,7 +101,11 @@ postgresql-config-dir:
|
||||||
- ignore_files
|
- ignore_files
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
- require:
|
- require:
|
||||||
|
{%- if postgres.prepare_cluster.run %}
|
||||||
- cmd: postgresql-cluster-prepared
|
- cmd: postgresql-cluster-prepared
|
||||||
|
{%- else %}
|
||||||
|
- file: postgresql-cluster-prepared
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
{%- set db_port = salt['config.option']('postgres.port') %}
|
{%- set db_port = salt['config.option']('postgres.port') %}
|
||||||
{%- if db_port %}
|
{%- if db_port %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue