Skip to content

Commit a220864

Browse files
committed
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.
1 parent 22ac510 commit a220864

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
- name: Use the cluster role
3+
hosts: hana # ensure only two hosts!
4+
remote_user: cloudadmin
5+
become: true
6+
# become_user: root
7+
any_errors_fatal: true # any_errors_fatal strongly recommended!
8+
9+
pre_tasks:
10+
- name: Load SAP HANA variables
11+
ansible.builtin.include_vars: ./vars/hana_vars.yaml
12+
13+
- name: Ensure ClusterTools2 is installed
14+
community.general.zypper:
15+
name: ClusterTools2
16+
state: present
17+
18+
vars:
19+
platform: 'aws'
20+
stonith: 'native'
21+
primary: "{{ ansible_play_hosts[0] }}"
22+
virtual_ip: "{{ aws_cluster_ip }}" # the Virtual IP address that the cluster will use.
23+
hacluster_password: 'Example_poor_passwo0rd!'
24+
aws_access_key_id: '{{ lookup("env", "AWS_ACCESS_KEY_ID") }}' # access key id of the account to be used to perform stonith actions
25+
aws_secret_access_key: '{{ lookup("env", "AWS_SECRET_ACCESS_KEY") }}' # secret access key of the account to be used to perform stonith actions
26+
27+
hana_sid: "{{ sap_hana_install_sid }}"
28+
hana_instance_number: "{{ sap_hana_install_instance_number }}"
29+
#dual_corosync_rings: true
30+
#enable_hawk: true
31+
roles:
32+
- role: cluster

0 commit comments

Comments
 (0)