You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
466 B
14 lines
466 B
{% macro pg_option(option) -%}
|
|
{% if option.value is boolean -%}
|
|
{{- option.key | lower }} = {{ 'on' if option.value else 'off' }}
|
|
{% elif option.value is string and option.key in postgresql_string_parameters -%}
|
|
{{- option.key | lower }} = '{{ option.value }}'
|
|
{% else -%}
|
|
{{- option.key | lower }} = {{ option.value }}
|
|
{% endif -%}
|
|
{% endmacro -%}
|
|
|
|
|
|
{% for option in (config | d({}) | dict2items) -%}
|
|
{{- pg_option(option) -}}
|
|
{%- endfor -%}
|
|
|