paulbsd-salt/states/postgresql/config.sls
Paul Lecuq d577a9b420
All checks were successful
continuous-integration/drone/push Build is passing
updated postgresql state
2023-11-10 13:25:50 +01:00

21 lines
630 B
Plaintext

---
{%- from "postgresql/map.jinja" import postgresql with context %}
postgresql-config-main:
file.keyvalue:
- name: /etc/postgresql/{{ postgresql.version }}/main/postgresql.conf
- 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:
- name: /etc/postgresql/{{ postgresql.version }}/main/pg_hba.conf
- source: salt://postgresql/templates/pg_hba.conf.j2
- template: jinja
- watch_in:
- service: postgresql-service