mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-15 17:20:25 +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
|
||||
- makedirs: True
|
||||
- require:
|
||||
{%- if postgres.prepare_cluster.run %}
|
||||
- cmd: postgresql-cluster-prepared
|
||||
{%- else %}
|
||||
- file: postgresql-cluster-prepared
|
||||
{%- endif %}
|
||||
|
||||
{%- set db_port = salt['config.option']('postgres.port') %}
|
||||
{%- if db_port %}
|
||||
|
|
Loading…
Add table
Reference in a new issue