2022-07-27 23:49:02 +02:00
|
|
|
---
|
|
|
|
{%- from "postgresql/map.jinja" import postgresql with context %}
|
|
|
|
postgresql-config-main:
|
|
|
|
file.keyvalue:
|
2023-11-10 13:25:50 +01:00
|
|
|
- name: /etc/postgresql/{{ postgresql.version }}/main/postgresql.conf
|
2022-07-27 23:49:02 +02:00
|
|
|
- key_values: {{ postgresql.config.main }}
|
|
|
|
- separator: ' = '
|
|
|
|
- uncomment: '# '
|
|
|
|
- key_ignore_case: True
|
|
|
|
- append_if_not_found: True
|
|
|
|
- watch_in:
|
|
|
|
- service: postgresql-service
|
|
|
|
|
|
|
|
postgresql-config-hba:
|
|
|
|
file.managed:
|
2023-11-10 13:25:50 +01:00
|
|
|
- name: /etc/postgresql/{{ postgresql.version }}/main/pg_hba.conf
|
2022-07-27 23:49:02 +02:00
|
|
|
- source: salt://postgresql/templates/pg_hba.conf.j2
|
|
|
|
- template: jinja
|
|
|
|
- watch_in:
|
|
|
|
- service: postgresql-service
|