Skip to content

Commit

Permalink
Add CentOS Stream 10 and AlmaLinux 10 beta initial support with newer…
Browse files Browse the repository at this point in the history
… pcs-modules-2 (31.0.0) pcs-0.12 capable version
  • Loading branch information
OndrejHome committed Nov 2, 2024
1 parent 9a119f1 commit 740407e
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ha-cluster-pacemaker
=========

Role for configuring and expanding basic pacemaker cluster on CentOS/RHEL 6/7/8/9, AlmaLinux 8/9, Rocky Linux 8/9, Fedora 31/32/33/34/35/36/37/38/39/40 and CentOS 8/9 Stream systems.
Role for configuring and expanding basic pacemaker cluster on CentOS/RHEL 6/7/8/9, AlmaLinux 8/9, Rocky Linux 8/9, Fedora 31/32/33/34/35/36/37/38/39/40 and CentOS 8/9 Stream systems. Initial support for CentOS 10 Stream and AlmaLinux 10 Beta.

This role can configure following aspects of pacemaker cluster:
- enable needed system repositories
Expand Down Expand Up @@ -55,6 +55,8 @@ On **CentOS Linux 8** you have to ensure that BaseOS and Appstream repositories

**pcs-0.11** version distributions (AlmaLinux 9, Rocky Linux 9, RHEL 9, Fedora 36/37/38) are supported only with ondrejhome.pcs-modules-2 version 27.0.0 or higher.

**pcs-0.12** version distributions (AlmaLinux 10, CentOS Stream 10) are supported only with ondrejhome.pcs-modules-2 version 31.0.0 or higher.

Role Variables
--------------

Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ galaxy_info:
- 7
- 8
- 9
- 10
- name: Fedora
versions:
- 31
Expand Down
4 changes: 2 additions & 2 deletions tasks/almalinux_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
and enable_repos | bool
and ansible_distribution_major_version in ['8']
- name: Enable highavailability repository (AlmaLinux 9)
- name: Enable highavailability repository (AlmaLinux 9/10)
ini_file:
dest: '/etc/yum.repos.d/almalinux-highavailability.repo'
section: 'highavailability'
Expand All @@ -31,4 +31,4 @@
when: >-
'HighAvailability' not in yum_repolist.stdout
and enable_repos | bool
and ansible_distribution_major_version in ['9']
and ansible_distribution_major_version in ['9','10']
4 changes: 2 additions & 2 deletions tasks/centos_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
and ansible_distribution_major_version in ['8']
and ansible_distribution_version not in ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
- name: Enable highavailability repository (CentOS 9 Stream)
- name: Enable highavailability repository (CentOS 9/10 Stream)
ini_file:
dest: '/etc/yum.repos.d/centos-addons.repo'
section: 'highavailability'
Expand All @@ -109,4 +109,4 @@
when: >-
'HighAvailability' not in yum_repolist.stdout
and enable_repos | bool
and ansible_distribution_major_version in ['9']
and ansible_distribution_major_version in ['9', '10']
1 change: 1 addition & 0 deletions tasks/install_normal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
when:
- not (ansible_distribution in ['RedHat','CentOS','AlmaLinux','Rocky'] and ansible_distribution_major_version == '8')
- not (ansible_distribution in ['RedHat','CentOS','AlmaLinux','Rocky'] and ansible_distribution_major_version == '9')
- not (ansible_distribution in ['CentOS','AlmaLinux'] and ansible_distribution_major_version == '10')
- not (ansible_distribution == 'Fedora' and ansible_distribution_major_version >= '31')
- not (ansible_distribution == 'Debian')

Expand Down
21 changes: 21 additions & 0 deletions vars/almalinux10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
pacemaker_packages:
- pcs
pacemaker_remote_packages:
- pcs
- pacemaker-remote
fence_xvm_packages:
- fence-virt
fence_kdump_packages:
- fence-agents-kdump
- kexec-tools
fence_vmware_soap_packages:
- fence-agents-vmware-soap
fence_vmware_rest_packages:
- fence-agents-vmware-rest
fence_aws_packages:
- fence-agents-aws
firewall_packages:
- firewalld

pcsd_configuration_file: /etc/sysconfig/pcsd
21 changes: 21 additions & 0 deletions vars/centos10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
pacemaker_packages:
- pcs
pacemaker_remote_packages:
- pcs
- pacemaker-remote
fence_xvm_packages:
- fence-virt
fence_kdump_packages:
- fence-agents-kdump
- kexec-tools
fence_vmware_soap_packages:
- fence-agents-vmware-soap
fence_vmware_rest_packages:
- fence-agents-vmware-rest
fence_aws_packages:
- fence-agents-aws
firewall_packages:
- firewalld

pcsd_configuration_file: /etc/sysconfig/pcsd

0 comments on commit 740407e

Please sign in to comment.