Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap_general_preconfigure: At the end of a playbook run, print a summary of all changes done on each managed node (lsr/sap-preconfigure issue #151) #6

Open
berndfinger opened this issue Jan 28, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@berndfinger
Copy link
Member

Copy of linux-system-roles/sap-preconfigure#151 (comment), reported by https://github.com/berndfinger:

A simple solution might be to run:
# awk 'BEGIN{a=1}/TASK/{gsub ("*", ""); task=$0}/RUNNING HANDLER/{a=0}/changed:/&&a==1{printf ("%s %s\n", $0, task)}'
on the output. It will print the task names in case a change was triggered by the task. Example:

changed: [managed_node_1] TASK [sap-preconfigure : Ensure required package groups are installed] 
changed: [managed_node_1] TASK [sap-preconfigure : Ensure required packages are installed] 
changed: [managed_node_1] TASK [sap-preconfigure : Call Reboot handler if necessary] 
changed: [managed_node_1] TASK [sap-preconfigure : Set SELinux state] 
changed: [managed_node_1] TASK [sap-preconfigure : Call Reboot handler if necessary] 
changed: [managed_node_1] TASK [sap-preconfigure : Ensure short system hostname is set] 
changed: [managed_node_1] TASK [sap-preconfigure : Ensure that the entry in /etc/hosts is correct] 
changed: [managed_node_1] TASK [sap-preconfigure : Stop and disable service firewalld] 
changed: [managed_node_1] TASK [sap-preconfigure : Configure tmpfs in /etc/fstab] 
changed: [managed_node_1] TASK [sap-preconfigure : Trigger remounting if /dev/shm has not the expected size] 
changed: [managed_node_1] => (item={'name': 'vm.max_map_count', 'value': '2147483647'}) TASK [sap-preconfigure : Set kernel parameters] 
changed: [managed_node_1] => (item={'name': 'kernel.pid_max', 'value': '4194304'}) TASK [sap-preconfigure : Set kernel parameters] 
changed: [managed_node_1] => (item=hard) TASK [sap-preconfigure : Set the hard and soft limit for the max number of open files per process (nofile) to 65536 for group sapsys] 
changed: [managed_node_1] => (item=soft) TASK [sap-preconfigure : Set the hard and soft limit for the max number of open files per process (nofile) to 65536 for group sapsys] 
changed: [managed_node_1] => (item=hard) TASK [sap-preconfigure : Set the hard and soft limit for the max number of processes per user (nproc) to unlimited for group sapsys] 
changed: [managed_node_1] => (item=soft) TASK [sap-preconfigure : Set the hard and soft limit for the max number of processes per user (nproc) to unlimited for group sapsys] 
changed: [managed_node_1] TASK [sap-preconfigure : Copy file /etc/tmpfiles.d/sap.conf] 
@berndfinger berndfinger added the enhancement New feature or request label Jan 28, 2022
@berndfinger berndfinger self-assigned this Jan 28, 2022
ja9fuchs added a commit to ja9fuchs/community.sap_install that referenced this issue Jun 2, 2022
* obsolete 'sudo' removed

* PKI file handling only by secondary node(s) ; temp files cleanup added

* include backup tasks only for primary node & minor improvments

* apply tags to included tasks, else it only runs the include-task

* pki file cleanup delegated to localhost

* minor whitespace fix

* do not fail task and use rc

* removed subscription handling and replaced yum commands with yum modules

* security: removed rhsm credentials

* updated some fqcn

* fqcn update and use systemd module for service start/enable

* removed unused task and whitespace at end of file

* fqcn update; task name improvement; removed last empty line

* some improvements

* preconfig/software covered in new preconfig role

* node auth must be run on primary

* sudoer handling not part of pacemaker setup role

* remove firewall tasks

* removed redundant tasks and resource defaults update vs. OS release

* reverted defaults for group/user IDs to blank

Co-authored-by: Markus Moster <mmoster@redhat.com>
berndfinger referenced this issue in berndfinger/community.sap_install Jul 6, 2022
berndfinger added a commit that referenced this issue Oct 14, 2022
sync from sap-linuxlab dev branch
@Wabri
Copy link
Member

Wabri commented Jan 17, 2024

I think this can be close @berndfinger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants