Skip to content

Commit

Permalink
Added initial support for Debian 12
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejHome committed Jun 11, 2023
1 parent 8ff6015 commit d8ac3cc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ This role depend on role [ondrejhome.pcs-modules-2](https://github.com/OndrejHom

**Debian Buster** Tested with version 20210310 with ansible version **2.10** and **Debian Bullseye** Tested with version 20220326 with ansible version **2.12**. Debian part of this role does not include the stonith configuration and the firewall configuration. **Note:** This role went only through limited testing on Debian - not all features of this role were tested.

**Debian Bookworm** Tested with ansible version **2.14** and **Debian Bookwork**. Debian part of this role does not include the stonith configuration and the firewall configuration. **Note:** This role went only through limited testing on Debian - not all features of this role were tested.

Ansible version **2.9.10** and **2.9.11** will fail with error `"'hostvars' is undefined"` when trying to configure remote nodes. This applies only when there is at least one node with `cluster_node_is_remote=True`. **Avoid these Ansible versions** if you plan to configure remote nodes with this role.

On **CentOS Linux 8** you have to ensure that BaseOS and Appstream repositories are working properly. As the CentOS Linux 8 is in the End-Of-Life phase, this role will configure HA repository to point to vault.centos.org if repository configuration (`enable_repos: true`) is requested (it is by default).
Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ galaxy_info:
versions:
- 'buster'
- 'bullseye'
- 'bookworm'
galaxy_tags:
- clustering
- pacemaker
Expand Down
2 changes: 1 addition & 1 deletion tasks/install_normal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
packages_for_installation: "{{ packages_for_installation + ['python3-distutils'] }}"
when:
- ansible_distribution == 'Debian'
- ansible_distribution_major_version in ['10','11']
- ansible_distribution_major_version in ['10','11','12']

- name: "Packages: Add firewall packages"
set_fact:
Expand Down
15 changes: 15 additions & 0 deletions vars/debian12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
pacemaker_packages:
- pcs
- pacemaker
pacemaker_remote_packages:
- pcs
- pacemaker-remote
fence_kdump_packages:
- kdump-tools

kdump_service_name: 'kdump-tools'
cluster_configure_fence_xvm: false
cluster_firewall: false

pcsd_configuration_file: /etc/default/pcsd

0 comments on commit d8ac3cc

Please sign in to comment.