-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aws native fencing playbook using role
New cluster configuration playbook using role from community.sles-for-sap repo. Cluster is configured to use AWS native fencing.
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- name: Use the cluster role | ||
hosts: hana # ensure only two hosts! | ||
remote_user: cloudadmin | ||
become: true | ||
# become_user: root | ||
any_errors_fatal: true # any_errors_fatal strongly recommended! | ||
|
||
pre_tasks: | ||
- name: Load SAP HANA variables | ||
ansible.builtin.include_vars: ./vars/hana_vars.yaml | ||
|
||
- name: Ensure ClusterTools2 is installed | ||
community.general.zypper: | ||
name: ClusterTools2 | ||
state: present | ||
|
||
vars: | ||
platform: 'aws' | ||
stonith: 'native' | ||
primary: "{{ ansible_play_hosts[0] }}" | ||
virtual_ip: "{{ aws_cluster_ip }}" # the Virtual IP address that the cluster will use. | ||
hacluster_password: 'Example_poor_passwo0rd!' | ||
aws_access_key_id: '{{ lookup("env", "AWS_ACCESS_KEY_ID") }}' # access key id of the account to be used to perform stonith actions | ||
aws_secret_access_key: '{{ lookup("env", "AWS_SECRET_ACCESS_KEY") }}' # secret access key of the account to be used to perform stonith actions | ||
|
||
hana_sid: "{{ sap_hana_install_sid }}" | ||
hana_instance_number: "{{ sap_hana_install_instance_number }}" | ||
#dual_corosync_rings: true | ||
#enable_hawk: true | ||
roles: | ||
- role: cluster | ||
Check failure on line 32 in ansible/playbooks/sap-hana-cluster_role.yaml GitHub Actions / buildERROR
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters