Added option to disable creation of backup file when postgresql.conf changes
This commit is contained in:
@@ -15,6 +15,7 @@ postgres:
|
||||
acls: []
|
||||
databases: {}
|
||||
tablespaces: {}
|
||||
postgresconf_backup: True
|
||||
postgresconf: ""
|
||||
pg_hba.conf: salt://postgres/pg_hba.conf
|
||||
commands:
|
||||
|
||||
@@ -59,6 +59,9 @@ postgresql-conf:
|
||||
{{ postgres.postgresconf|indent(8) }}
|
||||
- show_changes: True
|
||||
- append_if_not_found: True
|
||||
{% if not postgres.postgresconf_backup|default(True) -%}
|
||||
- backup: False
|
||||
{% endif -%}
|
||||
- watch_in:
|
||||
- service: run-postgresql
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user