-
Notifications
You must be signed in to change notification settings - Fork 5
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
Travis CI User
committed
Aug 25, 2022
1 parent
70f05df
commit 8fecfd1
Showing
143 changed files
with
1,797 additions
and
437 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
- name: Disable SELinux | ||
selinux: | ||
state: disabled | ||
... | ||
... |
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,11 @@ | ||
--- | ||
- name: Get the list of services | ||
service_facts: | ||
|
||
- name: Stop and disable abrtd | ||
systemd: | ||
name: abrtd | ||
state: stopped | ||
enabled: no | ||
when: "'abrtd.service' in services" | ||
... |
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
19 changes: 19 additions & 0 deletions
19
cli/ansible/roles/s4appreq/tasks/configurations/hostname_fix_RedHat.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- name: Disable manage_etc_hosts in /etc/cloud/cloud.cfg | ||
replace: | ||
path: /etc/cloud/cloud.cfg | ||
regexp: '(.*manage_etc_hosts.*)' | ||
replace: '#\1' | ||
|
||
- name: Get short hostname | ||
command: hostname -s | ||
register: sap_short_hostname | ||
changed_when: False | ||
|
||
#1054467 - Local host name refers to loopback address | ||
- name: Disable default hostname resolve to loopback address | ||
replace: | ||
path: /etc/hosts | ||
regexp: "^(?!{{ ansible_default_ipv4.address }}.*{{ sap_short_hostname.stdout }})(.*)({{ sap_short_hostname.stdout }}.*)" | ||
replace: '\1' | ||
... |
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,11 @@ | ||
--- | ||
- name: Get the list of services | ||
service_facts: | ||
|
||
- name: Stop and disable kdump | ||
systemd: | ||
name: kdump | ||
state: stopped | ||
enabled: no | ||
when: "'kdump.service' in services" | ||
... |
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
16 changes: 16 additions & 0 deletions
16
cli/ansible/roles/s4appreq/tasks/configurations/kernel_RedHat8.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- name: Set recommended kernel parameters for SAP NW on RedHat 8 | ||
sysctl: | ||
sysctl_file: /etc/sysctl.d/sap.conf | ||
name: "{{ kernel_param.name }}" | ||
value: "{{ kernel_param.value }}" | ||
sysctl_set: yes | ||
state: present | ||
reload: yes | ||
loop: | ||
- { name: vm.max_map_count, value: 2147483647 } | ||
- { name: kernel.pid_max, value: 4194304 } | ||
- { name: kernel.sem, value: "32000 1024000000 500 32000" } | ||
loop_control: | ||
loop_var: kernel_param | ||
... |
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,6 @@ | ||
--- | ||
- name: Reboot target host | ||
reboot: | ||
connect_timeout: 5 | ||
post_reboot_delay: 10 | ||
... |
9 changes: 9 additions & 0 deletions
9
cli/ansible/roles/s4appreq/tasks/configurations/repository_RedHat.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: Wait for cloud init to finish | ||
cloud_init_data_facts: | ||
filter: status | ||
register: res | ||
until: "res.cloud_init_data_facts.status.v1.stage is defined and not res.cloud_init_data_facts.status.v1.stage" | ||
retries: 60 | ||
delay: 10 | ||
... |
5 changes: 5 additions & 0 deletions
5
cli/ansible/roles/s4appreq/tasks/configurations/repository_SLES.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: Wait for SLES repo configurations | ||
wait_for: | ||
path: /etc/SUSEConnect | ||
... |
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
17 changes: 17 additions & 0 deletions
17
cli/ansible/roles/s4appreq/tasks/configurations/saptune.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: Start and enable saptune service | ||
service: | ||
name: saptune | ||
state: started | ||
enabled: yes | ||
|
||
- name: Check if NETWEAVER profile was already set | ||
command: saptune status | ||
register: netweaver_profile | ||
changed_when: False | ||
failed_when: netweaver_profile.rc != 0 and netweaver_profile.rc != 3 | ||
|
||
- name: Select NETWEAVER profile for saptune | ||
command: /usr/sbin/saptune solution apply NETWEAVER | ||
when: "'NETWEAVER' not in netweaver_profile.stdout" | ||
... |
12 changes: 12 additions & 0 deletions
12
cli/ansible/roles/s4appreq/tasks/configurations/umask_RHEL.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: Configure default umask | ||
replace: | ||
path: "{{ file }}" | ||
regexp: '(.*umask 077.*)' | ||
replace: 'umask 022' | ||
loop: | ||
- /etc/profile | ||
- /etc/bashrc | ||
loop_control: | ||
loop_var: file | ||
... |
Oops, something went wrong.