Skip to content

Commit

Permalink
Merge branch 'master' into pgbouncer-processes
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Nov 7, 2023
2 parents 391e291 + 655de8d commit fb2af1e
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .config/python/dev/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ six==1.16.0
subprocess-tee==0.4.1
text-unidecode==1.3
tomli==2.0.1
urllib3==1.26.17
urllib3==1.26.18
wcmatch==8.4.1
websocket-client==1.5.2
yamllint==1.31.0
3 changes: 0 additions & 3 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ jobs:
- distro: ubuntu2004
tag: latest
namespace: geerlingguy
- distro: ubuntu1804
tag: latest
namespace: geerlingguy
- distro: rockylinux8
tag: latest
namespace: geerlingguy
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/molecule_pgpro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- centos8
- debian10
- debian11
- ubuntu1804
- ubuntu2004
- ubuntu2204

Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/schedule_pg_ubuntu1804.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ _Table of results of daily automated testing of cluster deployment:_
| Debian 10 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_debian10.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_debian10.yml) |
| Debian 11 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_debian11.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_debian11.yml) |
| Debian 12 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_debian11.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_debian12.yml) |
| Ubuntu 18.04 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_ubuntu1804.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_ubuntu1804.yml) |
| Ubuntu 20.04 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_ubuntu2004.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_ubuntu2004.yml) |
| Ubuntu 22.04 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_ubuntu2204.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_ubuntu2204.yml) |
| CentOS Stream 8 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_centosstream8.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_centosstream8.yml) |
Expand Down
2 changes: 1 addition & 1 deletion group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ os_minimum_versions:
CentOS: 7
Rocky: 8.4
OracleLinux: 7
Ubuntu: 18.04
Ubuntu: 20.04
Debian: 10
AlmaLinux: 8.3
3 changes: 2 additions & 1 deletion roles/patroni/templates/patroni.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ etcd3:
{% endif %}
{% if dcs_exists|bool and dcs_type == 'etcd' %}
etcd3:
hosts: {% for etcd_hosts in patroni_etcd_hosts %}{{etcd_hosts.host}}:{{etcd_hosts.port}}{% if not loop.last %},{% endif %}{% endfor +%}
hosts: {% for etcd_hosts in patroni_etcd_hosts %}{{etcd_hosts.host}}:{{etcd_hosts.port}}{% if not loop.last %},{% endif %}{% endfor %}

{% if patroni_etcd_username | default('') | length > 0 %}
username: {{ patroni_etcd_username | default('') }}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion roles/pgbouncer/config/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
become: true
become_user: postgres
ansible.builtin.command: >-
{{ postgresql_bin_dir }}/psql -p {{ postgresql_port }} -U {{ patroni_superuser_username }} -d postgres -tAXcq
{{ postgresql_bin_dir }}/psql -p {{ postgresql_port }} -U {{ patroni_superuser_username }} -d postgres -tAXc
"SELECT concat('\"', usename, '\" \"', passwd, '\"') FROM pg_shadow where usename != '{{ patroni_replication_username }}'"
register: pg_shadow_result
changed_when: false
Expand Down
1 change: 0 additions & 1 deletion vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ os_specific_packages:
Debian-10: [python, python-dev, python-psycopg2, python-setuptools]
Debian-11: [python3] # python 2 is not required
Debian-12: [python3] # python 2 is not required
Ubuntu-18: [python, python-dev, python-psycopg2, python-setuptools]
Ubuntu-20: [python3] # python 2 is not required
Ubuntu-22: [python3] # python 2 is not required
system_packages:
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ vip_interface: "{{ ansible_default_ipv4.interface }}" # interface name (e.g., "
# - For the "Type B" scheme: Use libpq `target_session_attrs`, ensuring read/write connections go to the primary database, as an alternative to cluster_vip.

patroni_cluster_name: "postgres-cluster" # the cluster name (must be unique for each cluster)
patroni_install_version: "3.1.0" # or 'latest'
patroni_install_version: "3.2.0" # or 'latest'

patroni_superuser_username: "postgres"
patroni_superuser_password: "postgres-pass" # please change password
Expand Down

0 comments on commit fb2af1e

Please sign in to comment.