updated postgresql state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-11-10 13:25:50 +01:00
parent dd5e82a3da
commit d577a9b420
5 changed files with 21 additions and 15 deletions

View File

@ -1,9 +1,5 @@
---
{%- from "ipbl/map.jinja" import ipbl with context %}
ipbl-dependencies:
pkg.installed:
- name: libczmq4
ipbl-archive-extract:
archive.extracted:
- name: {{ ipbl.release_dir }}/ipbl-{{ ipbl.version }}

View File

@ -2,7 +2,7 @@
{%- from "postgresql/map.jinja" import postgresql with context %}
postgresql-config-main:
file.keyvalue:
- name: {{ postgresql.configpath }}/postgresql.conf
- name: /etc/postgresql/{{ postgresql.version }}/main/postgresql.conf
- key_values: {{ postgresql.config.main }}
- separator: ' = '
- uncomment: '# '
@ -13,7 +13,7 @@ postgresql-config-main:
postgresql-config-hba:
file.managed:
- name: {{ postgresql.configpath }}/pg_hba.conf
- name: /etc/postgresql/{{ postgresql.version }}/main/pg_hba.conf
- source: salt://postgresql/templates/pg_hba.conf.j2
- template: jinja
- watch_in:

View File

@ -1,15 +1,14 @@
---
postgresql:
version: 13
packages:
- postgresql-13
- postgresql-13-cron
- postgresql-13-repmgr
- postgresql-client-13
- repmgr
extensions:
- cron
- repmgr
databases:
- name: postgres
user: postgres
configpath: /etc/postgresql/13/main
config:
main:
listen_addresses: "'*'"

View File

@ -1,8 +1,18 @@
---
{%- from "postgresql/map.jinja" import postgresql with context %}
postgresql-install:
postgresql-install-base:
pkg.installed:
- pkgs:
{%- for pkg in postgresql.packages %}
- {{ pkg }}
- postgresql-{{ postgresql.version }}
- postgresql-client-{{ postgresql.version }}
postgresql-install-extensions:
pkg.installed:
- pkgs:
{%- for extension in postgresql.extensions %}
- postgresql-{{ postgresql.version }}-{{ extension }}
{%- endfor %}
postgresql-install-misc:
pkg.installed:
- pkgs: {{ postgresql.packages }}

View File

@ -1,5 +1,6 @@
---
{%- from "postgresql/map.jinja" import postgresql with context %}
postgresql-service:
service.running:
- name: postgresql@13-main
- name: postgresql@{{ postgresql.version }}-main
- enable: true