mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 01:30:25 +00:00
commit
1d950295f4
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ postgres:
|
||||||
|
|
||||||
# Backup extension for configuration files, defaults to ``.bak``.
|
# Backup extension for configuration files, defaults to ``.bak``.
|
||||||
# Set ``False`` to stop creation of backups when config files change.
|
# Set ``False`` to stop creation of backups when config files change.
|
||||||
{%- if 'status.time' in salt.keys() %}
|
{%- if salt['status.time']|default(none) is callable %}
|
||||||
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
|
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{%- from "postgres/map.jinja" import postgres with context -%}
|
{%- from "postgres/map.jinja" import postgres with context -%}
|
||||||
{%- from "postgres/macros.jinja" import format_state with context -%}
|
{%- from "postgres/macros.jinja" import format_state with context -%}
|
||||||
|
|
||||||
{%- if not salt.get('postgres.user_create') %}
|
{%- if salt['postgres.user_create']|default(none) is not callable %}
|
||||||
|
|
||||||
# Salt states for managing PostgreSQL is not available,
|
# Salt states for managing PostgreSQL is not available,
|
||||||
# need to provision client binaries first
|
# need to provision client binaries first
|
||||||
|
|
Loading…
Add table
Reference in a new issue