Skip to content

Commit 8ba0d72

Browse files
Use community role for HANA installation
1 parent 7894c9d commit 8ba0d72

5 files changed

Lines changed: 16 additions & 2 deletions

File tree

ansible/playbooks/sap-hana-install.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,19 @@
2424
ansible.builtin.set_fact:
2525
hana_installed: "{{ sid_file_check.state }}"
2626

27-
- name: Execute hana install role
27+
- name: Execute hana install role (upstream)
28+
ansible.builtin.include_role:
29+
name: community.sap_install.sap_hana_install
30+
when:
31+
- hana_installed == 'absent'
32+
- enable_community_sap_roles | bool
33+
34+
- name: Execute hana install role (local)
2835
ansible.builtin.include_role:
2936
name: sap_hana_install
30-
when: hana_installed == 'absent'
37+
when:
38+
- hana_installed == 'absent'
39+
- not enable_community_sap_roles | bool
3140

3241
- name: Write status file
3342
ansible.builtin.file:

requirements.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ collections:
66
version: 1.5.4
77
- name: community.general
88
version: 9.5.12
9+
- name: community.sap_install
10+
version: 1.7.1

terraform/aws/inventory.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ all:
77
cluster_ip: ${cluster_ip}
88
aws_stonith_tag: ${stonith_tag}
99
aws_region: ${region}
10+
enable_community_sap_roles: ${enable_community_sap_roles}
1011
children:
1112
hana:
1213
hosts:

terraform/azure/inventory.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ all:
77
subscription_id: ${subscription_id}
88
tenant_id: ${tenant_id}
99
cluster_ip: ${cluster_ip}
10+
enable_community_sap_roles: ${enable_community_sap_roles}
1011
children:
1112
hana:
1213
hosts:

terraform/gcp/inventory.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ all:
88
project: ${gcp_project}
99
primary_zone: ${gcp_primary_zone}
1010
secondary_zone: ${gcp_secondary_zone}
11+
enable_community_sap_roles: ${enable_community_sap_roles}
1112
children:
1213
hana:
1314
hosts:

0 commit comments

Comments
 (0)