Skip to content

Commit

Permalink
Suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
to-bar committed Nov 27, 2020
1 parent 2f3e42f commit 746eb1e
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 386 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG-0.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Added

- [#921](https://github.com/epiphany-platform/epiphany/issues/921) - Implement log rotation for PgBouncer

### Fixed

- [#1273](https://github.com/epiphany-platform/epiphany/issues/1273) - PostgreSQL replication with repmgr: hot_standby not set in config file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
---
# This file is meant to be also used by upgrade playbook

- name: Load defaults from postgresql role
include_vars:
file: roles/postgresql/defaults/main.yml
name: postgresql_defaults
when: "'postgresql' in group_names"

- name: Copy configuration file (filebeat.yml)
template:
dest: /etc/filebeat/filebeat.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/pgbouncer/pgbouncer.log
- {{ postgresql_defaults.pgbouncer.logfile[ansible_os_family] }}*
exclude_files: [".gz$"]
{% endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,18 @@ repmgr_service_name:

repmgr_config_dir:
RedHat: /etc/repmgr/10
Debian: /etc/postgresql/10/main
Debian: /etc/postgresql/10/main

pgbouncer:
logfile:
RedHat: /var/log/pgbouncer/pgbouncer.log
Debian: /var/log/postgresql/pgbouncer.log
pidfile:
RedHat: /var/run/pgbouncer/pgbouncer.pid
Debian: /var/run/postgresql/pgbouncer.pid
user:
RedHat: pgbouncer
Debian: postgres
group:
RedHat: pgbouncer
Debian: postgres
Loading

0 comments on commit 746eb1e

Please sign in to comment.