Skip to content

Commit

Permalink
Added support for Ubuntu22.
Browse files Browse the repository at this point in the history
Given that edb-ansible supports Ubuntu20, Ubuntu22 should also be
compatible. I didn't physically test every single role, but have
worked extensively with install_dbserver, setup_patroni, and
setup_etcd, which are all necessary to set up a basic Patroni
cluster. None of these were affected simply by adding "Ubuntu22"
as a patch, which was necessary for various unrelated tests.
  • Loading branch information
bonesmoses committed Oct 26, 2023
1 parent fd03afa commit 0de14da
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 9 deletions.
1 change: 1 addition & 0 deletions roles/execute_binary_upgrade/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ supported_os:
- RedHat8
- RedHat9
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
1 change: 1 addition & 0 deletions roles/init_dbserver/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ supported_os:
- RedHat8
- RedHat9
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
1 change: 1 addition & 0 deletions roles/install_dbserver/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ supported_os:
- RedHat8
- RedHat9
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
2 changes: 1 addition & 1 deletion roles/install_dbserver/tasks/install_dbserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
pg_type == 'EPAS' and
((pg_version|int < 12 and os in ['RedHat8','CentOS8','Rocky8','AlmaLinux8']) or
(pg_version|int < 11 and os in ['Ubuntu18', 'Debian9']) or
(pg_version|int < 13 and os in ['Ubuntu20']) or
(pg_version|int < 13 and os in ['Ubuntu20', 'Ubuntu22']) or
(pg_version|int < 12 and os in ['Debian10']))
- name: Remove Postgres packages
Expand Down
2 changes: 1 addition & 1 deletion roles/manage_dbpatches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ When executing the role via ansible these are the required variables:

* ***os***

Operating Systems supported are: CentOS7, CentOS8, RHEL7, RHEL8, Rocky8, AlmaLinux8, Debian10 and Ubuntu20
Operating Systems supported are: CentOS7, CentOS8, RHEL7, RHEL8, Rocky8, AlmaLinux8, Debian10, Ubuntu20, and Ubuntu22

The rest of the variables can be configured and are available in the:

Expand Down
1 change: 1 addition & 0 deletions roles/manage_dbpatches/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ supported_os:
- RedHat7
- RedHat8
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
2 changes: 1 addition & 1 deletion roles/manage_efm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ When executing the role via ansible there are three required variables:

* ***os***

Operating Systems supported are: CentOS7, RHEL7, CentOS8, RHEL8, Debian10, Ubuntu20 and AlmaLinux8
Operating Systems supported are: CentOS7, RHEL7, CentOS8, RHEL8, Debian10, Ubuntu20, Ubuntu22, and AlmaLinux8

* ***pg_version***

Expand Down
1 change: 1 addition & 0 deletions roles/manage_efm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ supported_os:
- RedHat7
- RedHat8
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
2 changes: 1 addition & 1 deletion roles/manage_pgbouncer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ When executing the role via ansible these are the required variables:

* ***os***

Operating Systems supported are: CentOS7, CentOS8, RHEL7, RHEL8, Rocky8, Ubuntu20, Debian10 and AlmaLinux8
Operating Systems supported are: CentOS7, CentOS8, RHEL7, RHEL8, Rocky8, Ubuntu20, Ubuntu22, Debian10 and AlmaLinux8

The rest of the variables can be configured and are available in the:

Expand Down
1 change: 1 addition & 0 deletions roles/manage_pgbouncer/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ supported_os:
- Debian10
- OracleLinux7
- Ubuntu20
- Ubuntu22
1 change: 1 addition & 0 deletions roles/manage_pgpool2/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported_os:
- AlmaLinux8
- OracleLinux7
- Ubuntu20
- Ubuntu22
- Debian10

supported_pg_version:
Expand Down
1 change: 1 addition & 0 deletions roles/setup_barman/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ supported_os:
- AlmaLinux8
- OracleLinux7
- Ubuntu20
- Ubuntu22
1 change: 1 addition & 0 deletions roles/setup_barmanserver/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ supported_os:
- AlmaLinux8
- OracleLinux7
- Ubuntu20
- Ubuntu22
2 changes: 1 addition & 1 deletion roles/setup_efm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ When executing the role via ansible there are three required variables:

* ***os***

Operating Systems supported are: CentOS7, RHEL7, CentOS8, RHEL8, Debian10, Ubuntu20 and AlmaLinux8
Operating Systems supported are: CentOS7, RHEL7, CentOS8, RHEL8, Debian10, Ubuntu20, Ubuntu22, and AlmaLinux8

* ***pg_version***

Expand Down
1 change: 1 addition & 0 deletions roles/setup_efm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ supported_os:
- RedHat7
- RedHat8
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
2 changes: 1 addition & 1 deletion roles/setup_etcd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ When executing the role via ansible there are three required variables:

* ***os***

Operating Systems supported are: CentOS7, RHEL7, CentOS8, RHEL8, AlmaLinux8, Debian10 and Ubuntu20
Operating Systems supported are: CentOS7, RHEL7, CentOS8, RHEL8, AlmaLinux8, Debian10, Ubuntu20, and Ubuntu22

* ***pg_version***

Expand Down
1 change: 1 addition & 0 deletions roles/setup_etcd/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ supported_os:
- RedHat7
- RedHat8
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
1 change: 1 addition & 0 deletions roles/setup_fio/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported_os:
- Debian10
- OracleLinux8
- Ubuntu20
- Ubuntu22

use_patroni: false

Expand Down
1 change: 1 addition & 0 deletions roles/setup_hammerdb/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ supported_os:
- Debian10
- OracleLinux8
- Ubuntu20
- Ubuntu22

use_patroni: false

Expand Down
2 changes: 1 addition & 1 deletion roles/setup_patroni/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ When executing the role via ansible there are three required variables:

### os

Operating Systems supported are: CentOS7, RHEL7, CentOS8, RHEL8, AlmaLinux8, Debian10 and Ubuntu20
Operating Systems supported are: CentOS7, RHEL7, CentOS8, RHEL8, AlmaLinux8, Debian10, Ubuntu20, and Ubuntu22

### pg_version

Expand Down
1 change: 1 addition & 0 deletions roles/setup_patroni/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ supported_os:
- RedHat7
- RedHat8
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
1 change: 1 addition & 0 deletions roles/setup_pemagent/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ supported_os:
- OracleLinux7
- Debian10
- Ubuntu20
- Ubuntu22

supported_pg_type:
- EPAS
Expand Down
1 change: 1 addition & 0 deletions roles/setup_pemserver/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ supported_os:
- OracleLinux7
- Debian10
- Ubuntu20
- Ubuntu22

supported_pg_type:
- EPAS
Expand Down
1 change: 1 addition & 0 deletions roles/setup_pgbackrest/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ supported_os:
- AlmaLinux8
- Debian10
- Ubuntu20
- Ubuntu22
1 change: 1 addition & 0 deletions roles/setup_pgbackrestserver/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ supported_os:
- AlmaLinux8
- Debian10
- Ubuntu20
- Ubuntu22

supported_log_level:
- 'off'
Expand Down
1 change: 1 addition & 0 deletions roles/setup_pgbouncer/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ supported_os:
- Debian10
- OracleLinux7
- Ubuntu20
- Ubuntu22
1 change: 1 addition & 0 deletions roles/setup_pgpool2/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ supported_os:
- AlmaLinux8
- OracleLinux7
- Ubuntu20
- Ubuntu22
- Debian10

supported_pg_version:
Expand Down
2 changes: 1 addition & 1 deletion roles/setup_replication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ When executing the role via ansible there are three required variables:

* ***os***

Operating Systems supported are: CentOS7, CentOS8, RHEL7, RHEL8, Rocky8, AlmaLinux8, Debian9, Debian10 and Ubuntu20
Operating Systems supported are: CentOS7, CentOS8, RHEL7, RHEL8, Rocky8, AlmaLinux8, Debian9, Debian10, Ubuntu20, and Ubuntu22

* ***pg_version***

Expand Down
1 change: 1 addition & 0 deletions roles/setup_replication/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ supported_os:
- RedHat8
- RedHat9
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
1 change: 1 addition & 0 deletions roles/setup_repmgr/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ supported_os:
- RedHat8
- RedHat9
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
1 change: 1 addition & 0 deletions roles/setup_repo/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ supported_os:
- RedHat8
- RedHat9
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
Expand Down
2 changes: 1 addition & 1 deletion roles/setup_repo/tasks/setup_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
pg_type == 'EPAS' and
( pg_version|int < 12 and os in ['RedHat8','CentOS8', 'Rocky8', 'AlmaLinux8'] or
pg_version|int < 11 and os in ['Ubuntu18', 'Debian9'] or
pg_version|int < 13 and os in ['Ubuntu20'] or
pg_version|int < 13 and os in ['Ubuntu20', 'Ubuntu22'] or
pg_version|int < 12 and os in ['Debian10'] )
- name: Validate Credentials
Expand Down

0 comments on commit 0de14da

Please sign in to comment.