Skip to content

Commit

Permalink
Replace pacemaker deprecated commands for Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
BillAnastasiadis committed Jan 21, 2025
1 parent 0d639aa commit 6bfd82c
Showing 1 changed file with 42 additions and 4 deletions.
46 changes: 42 additions & 4 deletions ansible/playbooks/tasks/azure-cluster-hana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@
AUTOMATED_REGISTER="false"
when: hana_resource | length == 0

- name: Create HANA resource clone
- name: Gather the package facts to check cloud-regionsrv-client in 15sp2
ansible.builtin.package_facts:
manager: auto

- name: Create HANA resource clone [deprecated - <15sp4]
ansible.builtin.command:
cmd: >-
crm configure ms
Expand All @@ -111,7 +115,27 @@
target-role="Started"
interleave="true"
maintenance="true"
when: hana_clone | length == 0
when:

Check failure on line 118 in ansible/playbooks/tasks/azure-cluster-hana.yaml

View workflow job for this annotation

GitHub Actions / build

118:8 [trailing-spaces] trailing spaces
- hana_clone | length == 0
- ansible_facts.packages['pacemaker'][0].version is version('2.1.9', '<')

- name: Create HANA resource clone [non-deprecated - >=15sp4]
ansible.builtin.command:
cmd: >-
crm configure clone
msl_SAPHanaCtl_{{ sap_hana_install_sid }}_HDB{{ sap_hana_install_instance_number }}
{{ rsc_saphanactl }}
meta
notify="true"
clone-max="2"
clone-node-max="1"
target-role="Started"
interleave="true"
maintenance="true"
promotable="true"
when:

Check failure on line 136 in ansible/playbooks/tasks/azure-cluster-hana.yaml

View workflow job for this annotation

GitHub Actions / build

136:8 [trailing-spaces] trailing spaces
- hana_clone | length == 0
- ansible_facts.packages['pacemaker'][0].version is version('2.1.9', '>=')

- name: Validate cluster IP
vars:
Expand Down Expand Up @@ -158,15 +182,29 @@
{{ rsc_socat }}
when: ip_grp | length == 0

- name: Configure hana/IP colocation
- name: Configure hana/IP colocation [deprecated - <15sp4]
ansible.builtin.command:
cmd: >-
crm configure colocation
col_saphana_ip_{{ sap_hana_install_sid }}_HDB{{ sap_hana_install_instance_number }}
4000:
g_ip_{{ sap_hana_install_sid }}_HDB{{ sap_hana_install_instance_number }}:Started
msl_SAPHanaCtl_{{ sap_hana_install_sid }}_HDB{{ sap_hana_install_instance_number }}:Master
when: ip_colo | length == 0
when:

Check failure on line 193 in ansible/playbooks/tasks/azure-cluster-hana.yaml

View workflow job for this annotation

GitHub Actions / build

193:8 [trailing-spaces] trailing spaces
- ip_colo | length == 0
- ansible_facts.packages['pacemaker'][0].version is version('2.1.9', '<')

- name: Configure hana/IP colocation [non-deprecated - >=15sp4]
ansible.builtin.command:
cmd: >-
crm configure colocation
col_saphana_ip_{{ sap_hana_install_sid }}_HDB{{ sap_hana_install_instance_number }}
4000:
g_ip_{{ sap_hana_install_sid }}_HDB{{ sap_hana_install_instance_number }}:Started
msl_SAPHanaCtl_{{ sap_hana_install_sid }}_HDB{{ sap_hana_install_instance_number }}:Promoted
when:

Check failure on line 205 in ansible/playbooks/tasks/azure-cluster-hana.yaml

View workflow job for this annotation

GitHub Actions / build

205:8 [trailing-spaces] trailing spaces
- ip_colo | length == 0
- ansible_facts.packages['pacemaker'][0].version is version('2.1.9', '>=')

- name: Configure order
ansible.builtin.command:
Expand Down

0 comments on commit 6bfd82c

Please sign in to comment.