Skip to content

Commit dcb78cd

Browse files
authored
Merge pull request #9 from fidanf/distro-upgrades
Distro upgrades: Ubuntu 20.04 and Debian 11 support
2 parents 5d95128 + 58949c3 commit dcb78cd

9 files changed

+28
-18
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010
- VAGRANT_DEFAULT_PROVIDER: libvirt
1111
- PY_COLORS: 1
1212
jobs:
13-
- MOLECULE_DISTRO: generic/ubuntu1804
14-
- MOLECULE_DISTRO: generic/debian10
13+
- MOLECULE_DISTRO: generic/ubuntu2004
14+
- MOLECULE_DISTRO: generic/debian11
1515

1616
cache:
1717
directories:

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ PgPool
55

66
Installs and configures PgPool-II for Debian/Ubuntu. The default _running mode_ is **streaming replication mode**.
77

8+
Tested with :
9+
- Debian 10.x :heavy_check_mark:
10+
- Debian 11.x :heavy_check_mark:
11+
- Ubuntu 18.04.x :heavy_check_mark:
12+
- Ubuntu 20.04.x :heavy_check_mark:
13+
814
- [PgPool](#pgpool)
915
- [Requirements](#requirements)
1016
- [Role Variables](#role-variables)
@@ -18,8 +24,8 @@ Installs and configures PgPool-II for Debian/Ubuntu. The default _running mode_
1824
Requirements
1925
------------
2026

21-
Python >=3.6
22-
The role is compatible with Ansible >=2.10 but hasn't yet be tested with Ansible 3.x.
27+
- Python >=3.8
28+
- Ansible-core >=2.12
2329

2430
See [./requirements.txt](./requirements.txt) for detailled dependencies used to develop the role.
2531

molecule/default/molecule.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ driver:
1414
name: libvirt
1515
platforms:
1616
- name: pgsql01
17-
box: ${MOLECULE_DISTRO:-"generic/debian10"}
17+
box: ${MOLECULE_DISTRO:-"generic/debian11"}
1818
groups:
1919
- pgpool
2020
config_options:
@@ -28,7 +28,7 @@ platforms:
2828
ip: 192.168.30.10
2929
auto_config: true
3030
- name: pgsql02
31-
box: ${MOLECULE_DISTRO:-"generic/debian10"}
31+
box: ${MOLECULE_DISTRO:-"generic/debian11"}
3232
config_options:
3333
ssh.keep_alive: yes
3434
ssh.remote_user: "'vagrant'"

molecule/default/prepare.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,22 @@
3434
when: hostvars[item].ansible_eth1.ipv4.address is defined
3535
loop: "{{ groups[repmgr_target_group] }}"
3636

37+
- name: Install acl package
38+
apt:
39+
name: acl
40+
3741
roles:
3842
- name: fidanf.postgresql_ha
3943
vars:
40-
repmgr_version: 5.2
41-
repmgr_version_debian: 5.2.1-1.pgdg100+1
44+
repmgr_version: 5.3
4245
repmgr_master: pgsql01
4346
repmgr_target_group: pgpool
4447
repmgr_promote_command: /usr/bin/repmgr standby promote -f /etc/repmgr.conf --log-to-file
4548
repmgr_follow_command: /usr/bin/repmgr standby follow -f /etc/repmgr.conf --log-to-file --upstream-node-id=%n
4649
repmgr_monitoring_history: "yes"
4750
repmgr_connection_check_type: query
4851
repmgr_log_level: INFO
49-
postgresql_version: 12
52+
postgresql_version: 13
5053
postgresql_listen_addresses: "*"
5154
postgresql_port: 5432
5255
postgresql_max_connections: 128

molecule/default/requirements.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
roles:
33
- src: https://github.com/fidanf/ansible-role-postgresql-ha
44
name: fidanf.postgresql_ha
5-
version: 2.4.2
5+
version: 2.5.1

requirements.txt

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
ansible>=2.10.7,<2.11.0
1+
ansible
22
molecule
3-
molecule-vagrant==0.6.1
4-
pyyaml<6,>=5.1
3+
molecule-vagrant>=1.0.0
54
ansible-lint
65
yamllint
76
python-vagrant
8-
docker
9-
docker-compose
107
netaddr
11-
dnspython
128
cryptography
139
jsondiff
10+
pyyaml
1411
pyOpenSSL

vars/bionic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ ppgool_ping_path: /bin
33
pgpool_if_cmd_path: /sbin
44
pgpool_arping_path: /usr/sbin
55
pgpool_systemctl_path: /bin
6-
pgpool_patch_rsyslog: true
6+
pgpool_patch_syslog: true

vars/bullseye.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
ppgool_ping_path: /usr/bin
3+
pgpool_if_cmd_path: /usr/bin
4+
pgpool_arping_path: /usr/sbin
5+
pgpool_systemctl_path: /usr/bin

vars/focal.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ ppgool_ping_path: /bin
33
pgpool_if_cmd_path: /sbin
44
pgpool_arping_path: /usr/sbin
55
pgpool_systemctl_path: /bin
6-
pgpool_patch_rsyslog: true

0 commit comments

Comments
 (0)