Skip to content

Commit

Permalink
Remove support for RHEL 7, Debian 10 and Ubuntu 20.04 (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks authored Aug 12, 2024
1 parent 0684a0c commit 63ef2ec
Show file tree
Hide file tree
Showing 23 changed files with 62 additions and 528 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,12 @@ jobs:
- distro: debian11
tag: latest
namespace: geerlingguy
- distro: debian10
tag: latest
namespace: geerlingguy
- distro: ubuntu2404
tag: latest
namespace: geerlingguy
- distro: ubuntu2204
tag: latest
namespace: geerlingguy
- distro: ubuntu2004
tag: latest
namespace: geerlingguy
- distro: rockylinux8
tag: latest
namespace: geerlingguy
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/schedule_pg_debian10.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/schedule_pg_ubuntu2004.yml

This file was deleted.

7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ It requires the installation of a consul in client mode on each application serv
RedHat and Debian based distros (x86_64)

###### Supported Linux Distributions:
- **Debian**: 10, 11, 12
- **Ubuntu**: 20.04, 22.04, 24.04
- **Debian**: 11, 12
- **Ubuntu**: 22.04, 24.04
- **CentOS Stream**: 9
- **Oracle Linux**: 8, 9
- **Rocky Linux**: 8, 9
Expand All @@ -103,11 +103,10 @@ all supported PostgreSQL versions
_Table of results of daily automated testing of cluster deployment:_
| Distribution | Test result |
|--------------|:----------:|
| 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 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) |
| Ubuntu 24.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_ubuntu2404.yml) |
| CentOS Stream 9 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_centosstream9.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_centosstream9.yml) |
| Oracle Linux 8 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_oracle_linux8.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_oracle_linux8.yml) |
| Oracle Linux 9 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/postgresql_cluster/schedule_pg_oracle_linux9.yml?branch=master)](https://github.com/vitabaks/postgresql_cluster/actions/workflows/schedule_pg_oracle_linux9.yml) |
Expand Down
7 changes: 0 additions & 7 deletions deploy_pgcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,10 @@
tags: always

tasks:
- name: Clean yum cache
ansible.builtin.command: yum clean all
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version == '7'

- name: Clean dnf cache
ansible.builtin.command: dnf clean all
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version is version('8', '>=')

- name: Update apt cache
ansible.builtin.apt:
Expand Down
10 changes: 5 additions & 5 deletions group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ os_valid_distributions:
- AlmaLinux

os_minimum_versions:
RedHat: 7
CentOS: 7
RedHat: 8
CentOS: 8
Rocky: 8.4
OracleLinux: 7
Ubuntu: 20.04
Debian: 10
AlmaLinux: 8.3
OracleLinux: 8
Ubuntu: 22.04
Debian: 11
5 changes: 2 additions & 3 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@
delegate_to: localhost
run_once: true # noqa run-once

# Consul package for OracleLinux, Debian 10 (EOL) missing in HashiCorp repository
# Consul package for OracleLinux missing in HashiCorp repository
# Only the installation of a binary file is supported
- name: "Set variables: 'consul_install_from_repo: false' and 'patroni_installation_method: pip'"
ansible.builtin.set_fact:
consul_install_from_repo: false # whether to install consul from repository as opposed to installing the binary directly
patroni_installation_method: "pip" # the "rpm" method is supported only for consul installed from the repository
when:
- dcs_type == "consul"
- ansible_distribution == "OracleLinux" or
(ansible_distribution == "Debian" and ansible_distribution_major_version == '10')
- ansible_distribution == "OracleLinux"

- name: Set variables for custom PostgreSQL data and WAL directory test
ansible.builtin.set_fact:
Expand Down
5 changes: 2 additions & 3 deletions molecule/pg_upgrade/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@
delegate_to: localhost
run_once: true # noqa run-once

# Consul package for OracleLinux, Debian 10 (EOL) missing in HashiCorp repository
# Consul package for OracleLinux missing in HashiCorp repository
# Only the installation of a binary file is supported
- name: "Set variables: 'consul_install_from_repo: false' and 'patroni_installation_method: pip'"
ansible.builtin.set_fact:
consul_install_from_repo: false # whether to install consul from repository as opposed to installing the binary directly
patroni_installation_method: "pip" # the "rpm" method is supported only for consul installed from the repository
when:
- dcs_type == "consul"
- ansible_distribution == "OracleLinux" or
(ansible_distribution == "Debian" and ansible_distribution_major_version == '10')
- ansible_distribution == "OracleLinux"

- name: Set variables for custom PostgreSQL data and WAL directory test
ansible.builtin.set_fact:
Expand Down
60 changes: 0 additions & 60 deletions roles/add-repository/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,66 +56,6 @@
when: install_epel_repo|bool
tags: install_epel_repo

# Install SCL Repository
- name: Install Software Collections (SCL) repository for CentOS 7
ansible.builtin.package:
name: centos-release-scl-rh
state: present
register: package_status
until: package_status is success
delay: 5
retries: 3
when: install_scl_repo|bool and
(ansible_distribution == 'CentOS' and
ansible_distribution_major_version == '7')
tags: install_scl_repo

- name: Add Software Collections (SCL) repository for OracleLinux 7
ansible.builtin.yum_repository:
name: ol7_software_collections
description: Software Collection Library packages for Oracle Linux 7 (x86_64)
baseurl: https://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/x86_64/
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck: true
enabled: true
when: install_scl_repo|bool and
(ansible_distribution == "OracleLinux" and
ansible_distribution_major_version == '7')
tags: install_scl_repo

# Development repository (for llvm-toolset-7-clang)
- name: Add Development repository for OracleLinux 7
ansible.builtin.yum_repository:
name: ol7_developer
description: Packages for test and development - Oracle Linux 7 (x86_64)
baseurl: https://yum.oracle.com/repo/OracleLinux/OL7/developer/x86_64
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck: true
enabled: true
when: (ansible_distribution == "OracleLinux" and
ansible_distribution_major_version == '7')

# Optional Development repository (for libedit-devel)
- name: Add Optional Development repository for OracleLinux 7
ansible.builtin.yum_repository:
name: ol7_optional_developer
description: Developer preview optional packages for Development on Oracle Linux 7 (x86_64)
baseurl: https://yum.oracle.com/repo/OracleLinux/OL7/optional/developer/x86_64
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck: true
enabled: true
when: (ansible_distribution == "OracleLinux" and
ansible_distribution_major_version == '7')

- name: Enable Software Collections (SCL) repository for RedHat 7
become: true
become_user: root
ansible.builtin.command: subscription-manager repos --enable rhel-server-rhscl-7-rpms
when: install_scl_repo|bool and
(ansible_distribution == 'RedHat' and
ansible_distribution_major_version == '7')
tags: install_scl_repo

# Add repository to install dependencies for postgresql<version>-devel package
- block:
# PowerTools repository
Expand Down
Loading

0 comments on commit 63ef2ec

Please sign in to comment.