postgresql_server: new shiny template .conf file for postgresql 12

I took the default postgresql.conf from postgresql 12 and then added in
various changes we already manually made and variable substitions we
already had setup back in the postgresq 9.2 days.

This will apply to db-koji01, db-qa01, db-datanommer01 at least.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-06-22 15:08:23 -07:00
parent dc81298aa6
commit 8530a1c075
2 changed files with 794 additions and 1 deletions

View file

@ -93,7 +93,7 @@
- config
- postgresql
- name: postgresql config template
- name: postgresql config template (el7 / postgresql 9.2)
template: dest=/var/lib/pgsql/data/postgresql.conf src=postgresql.conf
when: (ansible_distribution_major_version|int < 8 and ansible_distribution == 'RedHat') or ansible_distribution != 'RedHat'
notify:
@ -102,6 +102,15 @@
- config
- postgresql
- name: postgresql config template (el8 / postgresql 12)
template: dest=/var/lib/pgsql/data/postgresql.conf src=postgresql.conf-12
when: ansible_distribution_major_version|int > 7 and ansible_distribution == 'RedHat'
notify:
- restart postgresql
tags:
- config
- postgresql
- name: Ensure postgres has a place to backup to
file: dest=/backups state=directory owner=postgres
tags: