Skip to content

Commit

Permalink
sap_ha_pacemaker_cluster: moved cluster commands to rhel/sles chosen …
Browse files Browse the repository at this point in the history
…syntax
  • Loading branch information
ja9fuchs committed Sep 25, 2023
1 parent 98df776 commit 05f89d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/sap_ha_pacemaker_cluster/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
- name: "SAP HA Install Pacemaker - Check resource defaults"
ansible.builtin.command:
cmd: |
pcs resource defaults config
{{ __sap_ha_pacemaker_cluster_command.resource_defaults_show }}
register: __sap_ha_pacemaker_cluster_check_resource_defaults
run_once: true
changed_when: false
Expand All @@ -185,7 +185,7 @@
- __sap_ha_pacemaker_cluster_resource_defaults | length > 0
ansible.builtin.command:
cmd: |
pcs resource defaults update {{ item.key }}={{ item.value }}
{{ __sap_ha_pacemaker_cluster_command.resource_defaults_update }} {{ item.key }}={{ item.value }}
loop: "{{ __sap_ha_pacemaker_cluster_resource_defaults | dict2items }}"
loop_control:
label: "{{ item.key }}={{ item.value }}"
Expand Down
2 changes: 2 additions & 0 deletions roles/sap_ha_pacemaker_cluster/vars/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ __sap_ha_pacemaker_cluster_connector_config_lines:
__sap_ha_pacemaker_cluster_command:
resource_stop: "pcs resource disable"
resource_start: "pcs resource enable"
resource_defaults_show: "pcs resource defaults config"
resource_defaults_update: "pcs resource defaults update"
2 changes: 2 additions & 0 deletions roles/sap_ha_pacemaker_cluster/vars/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ __sap_ha_pacemaker_cluster_connector_config_lines:
__sap_ha_pacemaker_cluster_command:
resource_stop: "crm resource stop"
resource_start: "crm resource start"
resource_defaults_show: "crm configure show type:rsc_defaults"
resource_defaults_update: "crm configure rsc_defaults"

0 comments on commit 05f89d3

Please sign in to comment.