updated postgresql state
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dd5e82a3da
commit
d577a9b420
@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
{%- from "ipbl/map.jinja" import ipbl with context %}
|
{%- from "ipbl/map.jinja" import ipbl with context %}
|
||||||
ipbl-dependencies:
|
|
||||||
pkg.installed:
|
|
||||||
- name: libczmq4
|
|
||||||
|
|
||||||
ipbl-archive-extract:
|
ipbl-archive-extract:
|
||||||
archive.extracted:
|
archive.extracted:
|
||||||
- name: {{ ipbl.release_dir }}/ipbl-{{ ipbl.version }}
|
- name: {{ ipbl.release_dir }}/ipbl-{{ ipbl.version }}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{%- from "postgresql/map.jinja" import postgresql with context %}
|
{%- from "postgresql/map.jinja" import postgresql with context %}
|
||||||
postgresql-config-main:
|
postgresql-config-main:
|
||||||
file.keyvalue:
|
file.keyvalue:
|
||||||
- name: {{ postgresql.configpath }}/postgresql.conf
|
- name: /etc/postgresql/{{ postgresql.version }}/main/postgresql.conf
|
||||||
- key_values: {{ postgresql.config.main }}
|
- key_values: {{ postgresql.config.main }}
|
||||||
- separator: ' = '
|
- separator: ' = '
|
||||||
- uncomment: '# '
|
- uncomment: '# '
|
||||||
@ -13,7 +13,7 @@ postgresql-config-main:
|
|||||||
|
|
||||||
postgresql-config-hba:
|
postgresql-config-hba:
|
||||||
file.managed:
|
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
|
- source: salt://postgresql/templates/pg_hba.conf.j2
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- watch_in:
|
- watch_in:
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
---
|
---
|
||||||
postgresql:
|
postgresql:
|
||||||
|
version: 13
|
||||||
packages:
|
packages:
|
||||||
- postgresql-13
|
- repmgr
|
||||||
- postgresql-13-cron
|
extensions:
|
||||||
- postgresql-13-repmgr
|
- cron
|
||||||
- postgresql-client-13
|
|
||||||
- repmgr
|
- repmgr
|
||||||
databases:
|
databases:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
user: postgres
|
user: postgres
|
||||||
configpath: /etc/postgresql/13/main
|
|
||||||
config:
|
config:
|
||||||
main:
|
main:
|
||||||
listen_addresses: "'*'"
|
listen_addresses: "'*'"
|
||||||
|
@ -1,8 +1,18 @@
|
|||||||
---
|
---
|
||||||
{%- from "postgresql/map.jinja" import postgresql with context %}
|
{%- from "postgresql/map.jinja" import postgresql with context %}
|
||||||
postgresql-install:
|
postgresql-install-base:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- pkgs:
|
- pkgs:
|
||||||
{%- for pkg in postgresql.packages %}
|
- postgresql-{{ postgresql.version }}
|
||||||
- {{ pkg }}
|
- postgresql-client-{{ postgresql.version }}
|
||||||
|
|
||||||
|
postgresql-install-extensions:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs:
|
||||||
|
{%- for extension in postgresql.extensions %}
|
||||||
|
- postgresql-{{ postgresql.version }}-{{ extension }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
postgresql-install-misc:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs: {{ postgresql.packages }}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
{%- from "postgresql/map.jinja" import postgresql with context %}
|
||||||
postgresql-service:
|
postgresql-service:
|
||||||
service.running:
|
service.running:
|
||||||
- name: postgresql@13-main
|
- name: postgresql@{{ postgresql.version }}-main
|
||||||
- enable: true
|
- enable: true
|
||||||
|
Loading…
Reference in New Issue
Block a user