This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
772 additions
and
397 deletions.
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,3 @@ | ||
*.swp | ||
*.retry | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
galaxy_info: | ||
author: Markus Koch, Thomas Bludau | ||
description: Configures a RHEL OS to be ready for SAP HANA installation | ||
license: Apache 2.0 | ||
author: Markus Koch, Thomas Bludau, Bernd Finger <bfinger@redhat.com>, Than Ngo <than@redhat.com> | ||
description: Configures a RHEL OS to be ready for SAP HANA installation | ||
license: GNU General Public License v3.0 | ||
min_ansible_version: 2.5 | ||
platforms: | ||
- name: EL | ||
versions: [ 6, 7 ] | ||
versions: [ 6, 7, 8 ] | ||
|
||
galaxy_tags: [ 'system', 'sap', 'hana', 'beta' ] | ||
|
||
dependencies: [] | ||
# List your role dependencies here, one per line. Be sure to remove the '[]' above, | ||
# if you add dependencies to this list. | ||
|
||
... |
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,17 @@ | ||
--- | ||
|
||
#- name: Enable Debugging | ||
# debug: | ||
# verbosity: "{{ debuglevel }}" | ||
# | ||
- name: list of required SAP Notes | ||
debug: | ||
var: sap_hana_preconfigure_sapnotes | difference(['']) | ||
|
||
- name: include configuration actions for required sapnotes | ||
include_tasks: "sapnote/{{ item }}.yml" | ||
with_items: "{{ sap_hana_preconfigure_sapnotes | difference(['']) }}" | ||
|
||
- include: "{{ './' + ansible_distribution + '_' + ansible_distribution_major_version + '/recommendations.yml' }}" | ||
|
||
... |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
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,41 @@ | ||
--- | ||
|
||
## This creates the SAP Users in case you define them in your playbook | ||
## This has been done for providers who want to create the SAP users before handing | ||
## over the image to clients | ||
- name: ensure sapadm group and sapadm user is created | ||
block: | ||
- name: ensure sapdm user exists | ||
group: | ||
name: sapsys | ||
gid: "{{ sap_sapsys_gid }}" | ||
- name: ensure sapadm user exists | ||
user: | ||
name: sapadm | ||
uid: "{{ sap_sapadm_uid }}" | ||
group: sapsys | ||
password: "{{ sap_sapadm_pw_clear|password_hash('sha512') }}" | ||
when: | ||
- sap_sapsys_gid is defined | ||
- sap_sapadm_uid is defined | ||
- sap_sapadm_pw_clear is defined | ||
|
||
### Disable tempfile handling, otherwise things are gone after reboot | ||
- name: disable temp file handling for SAP applications | ||
copy: src=etc/tmpfiles.d/sap.conf dest=/etc/tmpfiles.d/sap.conf | ||
|
||
- name: increase file handles to at least 32800 for sapsys group | ||
pam_limits: | ||
dest: /etc/security/limits.d/99-sapsys.conf | ||
domain: "@sapsys" | ||
limit_item: nofile | ||
limit_type: "{{ line_item }}" | ||
value: 32800 | ||
use_max: yes | ||
with_items: | ||
- soft | ||
- hard | ||
loop_control: | ||
loop_var: line_item | ||
|
||
... |
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
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,15 @@ | ||
--- | ||
|
||
#- name: Enable Debugging | ||
# debug: | ||
# verbosity: "{{ debuglevel }}" | ||
# | ||
- name: list of required SAP Notes | ||
debug: | ||
var: sap_hana_preconfigure_sapnotes | difference(['']) | ||
|
||
- name: include configuration actions for required sapnotes | ||
include_tasks: "tasks/sapnote/{{ item }}/installation.yml" | ||
with_items: "{{ sap_hana_preconfigure_sapnotes | difference(['']) }}" | ||
|
||
... |
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,23 @@ | ||
--- | ||
|
||
|
||
## TODO: Next task should be moved to sap-deploy, or sap-hostagent install ! | ||
- name: ensure sapadm group and sapadm user is created | ||
block: | ||
- name: ensure sapadm user exists | ||
group: | ||
name: sapsys | ||
gid: "{{ sap_sapsys_gid }}" | ||
- name: ensure sapadm user exists | ||
user: | ||
name: sapadm | ||
uid: "{{ sap_sapadm_uid }}" | ||
group: sapsys | ||
password: "{{ sap_sapadm_pw_clear|password_hash('sha512') }}" | ||
when: | ||
- sap_sapsys_gid is defined | ||
- sap_sapadm_uid is defined | ||
- sap_sapadm_pw_clear is defined | ||
|
||
|
||
... |
Oops, something went wrong.