Skip to content

Commit

Permalink
sap_general_preconfigure: add more fine-grained tags
Browse files Browse the repository at this point in the history
Part of sap-linuxlab#342.

Signed-off-by: Bernd Finger <[email protected]>
  • Loading branch information
berndfinger committed Feb 12, 2024
1 parent d0a0743 commit 7194d55
Show file tree
Hide file tree
Showing 52 changed files with 270 additions and 64 deletions.
15 changes: 5 additions & 10 deletions roles/sap_general_preconfigure/tasks/sapnote/2002167.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,36 @@
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2002167_02
- sap_general_preconfigure_firewall
- sap_general_preconfigure_selinux

- name: Import tasks from '2002167/03-setting-the-hostname.yml'
ansible.builtin.import_tasks: 2002167/03-setting-the-hostname.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2002167_03 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2002167_03
- sap_general_preconfigure_hostname
- sap_general_preconfigure_etc_hosts
- sap_general_preconfigure_dns-name-resolution

- name: Import tasks from '2002167/04-linux-kernel-parameters.yml'
ansible.builtin.import_tasks: 2002167/04-linux-kernel-parameters.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2002167_04 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2002167_04
- sap_general_preconfigure_kernel_parameters
# - sap_general_preconfigure_kernel_parameters

- name: Import tasks from '2002167/05-process-resource-limits.yml'
ansible.builtin.import_tasks: 2002167/05-process-resource-limits.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2002167_05 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2002167_05
- sap_general_preconfigure_nproc_limits
# - sap_general_preconfigure_nproc_limits

- name: Import tasks from '2002167/06-additional-notes-for-installing-sap-systems.yml'
ansible.builtin.import_tasks: 2002167/06-additional-notes-for-installing-sap-systems.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2002167_06 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2002167_06
- sap_general_preconfigure_libldap
- sap_general_preconfigure_liblber
- sap_general_preconfigure_systemd_tmpfiles
# - sap_general_preconfigure_libldap
# - sap_general_preconfigure_liblber
# - sap_general_preconfigure_systemd_tmpfiles
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
- name: Assert 2002167-2a
ansible.builtin.debug:
msg: "SAP note 2002167 Step 2a: Configure the Firewall"
tags:
- sap_general_preconfigure_firewall

- name: Import tasks from '../../RedHat/generic/assert-firewall.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-firewall.yml
tags:
- sap_general_preconfigure_firewall

- name: Assert 2002167-2b
ansible.builtin.debug:
msg: "SAP note 2002167 Step 2b: Configure SELinux"
tags:
- sap_general_preconfigure_selinux

- name: Import tasks from '../../RedHat/generic/assert-selinux.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-selinux.yml
tags:
- sap_general_preconfigure_selinux
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
- name: Configure 2002167-2a
ansible.builtin.debug:
msg: "SAP note 2002167 Step 2a: Configure the Firewall"
tags:
- sap_general_preconfigure_firewall
- sap_general_preconfigure_selinux

- name: Import tasks from '../../RedHat/generic/configure-firewall.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/configure-firewall.yml
tags:
- sap_general_preconfigure_firewall

- name: Configure 2002167-2b
ansible.builtin.debug:
msg: "SAP note 2002167 Step 2b: Configure SELinux"

- name: Import tasks from '../../RedHat/generic/configure-selinux.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/configure-selinux.yml
tags:
- sap_general_preconfigure_selinux
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@
- name: Assert 2002167-3
ansible.builtin.debug:
msg: "SAP note 2002167 Step 3: Setting the Hostname"
tags:
- sap_general_preconfigure_hostname
- sap_general_preconfigure_etc_hosts
- sap_general_preconfigure_dns_name_resolution

- name: Import tasks from '../../RedHat/generic/assert-hostname.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-hostname.yml
tags:
- sap_general_preconfigure_hostname

- name: Import tasks from '../../RedHat/generic/assert-etc-hosts.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-etc-hosts.yml
tags:
- sap_general_preconfigure_etc_hosts

- name: Import tasks from '../../RedHat/generic/assert-dns-name-resolution.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-dns-name-resolution.yml
tags:
- sap_general_preconfigure_dns_name_resolution
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@
- name: Configure 2002167-3
ansible.builtin.debug:
msg: "SAP note 2002167 Step 3: Setting the Hostname"
tags:
- sap_general_preconfigure_hostname
- sap_general_preconfigure_etc_hosts
- sap_general_preconfigure_dns_name_resolution

- name: Import tasks from '../../RedHat/generic/configure-hostname.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/configure-hostname.yml
tags:
- sap_general_preconfigure_hostname

- name: Import tasks from '../../RedHat/generic/configure-etc-hosts.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/configure-etc-hosts.yml
tags:
- sap_general_preconfigure_etc_hosts

- name: Import tasks from '../../RedHat/generic/check-dns-name-resolution.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/check-dns-name-resolution.yml
tags:
- sap_general_preconfigure_dns_name_resolution
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
- name: Assert 2002167-4
ansible.builtin.debug:
msg: "SAP note 2002167 Step 4: Linux Kernel Parameters"
tags:
- sap_general_preconfigure_kernel_parameters

- name: Import tasks from '../../RedHat/generic/assert-kernel-parameters.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-kernel-parameters.yml
tags:
- sap_general_preconfigure_kernel_parameters
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
- name: Configure 2002167-4
ansible.builtin.debug:
msg: "SAP note 2002167 Step 4: Linux Kernel Parameters"
tags:
- sap_general_preconfigure_kernel_parameters

- name: Import tasks from '../../RedHat/generic/configure-kernel-parameters.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/configure-kernel-parameters.yml
tags:
- sap_general_preconfigure_kernel_parameters
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
- name: Assert 2002167-5
ansible.builtin.debug:
msg: "SAP note 2002167 Step 5: Process Resource Limits"
tags:
- sap_general_preconfigure_nproc_limits

- name: Import tasks from '../../RedHat/generic/assert-limits-conf-file.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-limits-conf-file.yml
tags:
- sap_general_preconfigure_nproc_limits

- name: Import tasks from '../../RedHat/generic/assert-nproc-limits.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-nproc-limits.yml
tags:
- sap_general_preconfigure_nproc_limits
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
- name: Configure 2002167-5
ansible.builtin.debug:
msg: "SAP note 2002167 Step 5: Process Resource Limits"
tags:
- sap_general_preconfigure_nproc_limits

- name: Import tasks from '../../RedHat/generic/increase-nproc-limits.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/increase-nproc-limits.yml
tags:
- sap_general_preconfigure_nproc_limits
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,28 @@
- name: Configure 2002167-6
ansible.builtin.debug:
msg: "SAP note 2002167 Step 6: Additional notes for installing SAP systems"
tags:
- sap_general_preconfigure_libldap
- sap_general_preconfigure_liblber
- sap_general_preconfigure_systemd_tmpfiles

- name: Link LDAP library libldap
ansible.builtin.file:
src: /usr/lib64/libldap-2.3.so.0
dest: /usr/lib64/libldap.so.199
state: link
tags:
- sap_general_preconfigure_libldap

- name: Link LDAP library liblber
ansible.builtin.file:
src: /usr/lib64/liblber-2.3.so.0
dest: /usr/lib64/liblber.so.199
state: link
tags:
- sap_general_preconfigure_liblber

- name: Import tasks from '../../RedHat/generic/configure-systemd-tmpfiles.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/configure-systemd-tmpfiles.yml
tags:
- sap_general_preconfigure_systemd_tmpfiles
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,26 @@
- name: Assert 2002167-6
ansible.builtin.debug:
msg: "SAP note 2002167 Step 6: Additional notes for installing SAP systems"
tags:
- sap_general_preconfigure_libldap
- sap_general_preconfigure_liblber
- sap_general_preconfigure_systemd_tmpfiles

- name: Get info about file /usr/lib64/libldap.so.199
ansible.builtin.stat:
path: /usr/lib64/libldap.so.199
register: __sap_general_preconfigure_register_stat_libldap_assert
tags:
- sap_general_preconfigure_libldap

- name: Assert that file /usr/lib64/libldap.so.199 exists
ansible.builtin.assert:
that: __sap_general_preconfigure_register_stat_libldap_assert.stat.exists
fail_msg: "FAIL: File /usr/lib64/libldap.so.199 does not exist!"
success_msg: "PASS: File /usr/lib64/libldap.so.199 exist."
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
tags:
- sap_general_preconfigure_libldap

- name: Assert that file /usr/lib64/libldap.so.199 is a link
ansible.builtin.assert:
Expand All @@ -23,6 +31,8 @@
success_msg: "PASS: File /usr/lib64/libldap.so.199 is a link."
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
when: __sap_general_preconfigure_register_stat_libldap_assert.stat.exists
tags:
- sap_general_preconfigure_libldap

- name: Assert that file /usr/lib64/libldap.so.199 is a link to /usr/lib64/libldap-2.3.so.0
ansible.builtin.assert:
Expand All @@ -31,18 +41,24 @@
success_msg: "PASS: File /usr/lib64/libldap.so.199 is a link to /usr/lib64/libldap-2.3.so.0."
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
when: __sap_general_preconfigure_register_stat_libldap_assert.stat.exists
tags:
- sap_general_preconfigure_libldap

- name: Get info about file /usr/lib64/liblber.so.199
ansible.builtin.stat:
path: /usr/lib64/liblber.so.199
register: __sap_general_preconfigure_register_stat_liblber_assert
tags:
- sap_general_preconfigure_liblber

- name: Assert that file /usr/lib64/liblber.so.199 exists
ansible.builtin.assert:
that: __sap_general_preconfigure_register_stat_liblber_assert.stat.exists
fail_msg: "FAIL: File /usr/lib64/liblber.so.199 does not exist!"
success_msg: "PASS: File /usr/lib64/liblber.so.199 exist."
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
tags:
- sap_general_preconfigure_liblber

- name: Assert that file /usr/lib64/liblber.so.199 exists and is a link
ansible.builtin.assert:
Expand All @@ -51,6 +67,8 @@
success_msg: "PASS: File /usr/lib64/liblber.so.199 is a link."
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
when: __sap_general_preconfigure_register_stat_liblber_assert.stat.exists
tags:
- sap_general_preconfigure_liblber

- name: Assert that file /usr/lib64/liblber.so.199 is a link to /usr/lib64/liblber-2.3.so.0
ansible.builtin.assert:
Expand All @@ -59,6 +77,10 @@
success_msg: "PASS: File /usr/lib64/liblber.so.199 is a link to /usr/lib64/liblber-2.3.so.0."
ignore_errors: "{{ sap_general_preconfigure_assert_ignore_errors | d(false) }}"
when: __sap_general_preconfigure_register_stat_liblber_assert.stat.exists
tags:
- sap_general_preconfigure_liblber

- name: Import tasks from '../../RedHat/generic/assert-systemd-tmpfiles.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-systemd-tmpfiles.yml
tags:
- sap_general_preconfigure_systemd_tmpfiles
11 changes: 0 additions & 11 deletions roles/sap_general_preconfigure/tasks/sapnote/2772999.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,70 +14,59 @@
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_02
- sap_general_preconfigure_selinux

- name: Import tasks from '2772999/03-configure-hostname.yml'
ansible.builtin.import_tasks: 2772999/03-configure-hostname.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2772999_03 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_03
- sap_general_preconfigure_hostname
- sap_general_preconfigure_etc_hosts
- sap_general_preconfigure_dns-name-resolution

- name: Import tasks from '2772999/04-configure-network-time-and-date.yml'
ansible.builtin.import_tasks: 2772999/04-configure-network-time-and-date.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2772999_04 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_04
- sap_general_preconfigure_network_time_and_date

- name: Import tasks from '2772999/05-configure-firewall.yml'
ansible.builtin.import_tasks: 2772999/05-configure-firewall.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2772999_05 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_05
- sap_general_preconfigure_firewall

- name: Import tasks from '2772999/06-configure-uuidd.yml'
ansible.builtin.import_tasks: 2772999/06-configure-uuidd.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2772999_06 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_06
- sap_general_preconfigure_configure_uuidd

- name: Import tasks from '2772999/07-configure-tmpfs.yml'
ansible.builtin.import_tasks: 2772999/07-configure-tmpfs.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2772999_07 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_07
- sap_general_preconfigure_configure_tmpfs

- name: Import tasks from '2772999/08-configure-linux-kernel-parameters.yml'
ansible.builtin.import_tasks: 2772999/08-configure-linux-kernel-parameters.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2772999_08 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_08
- sap_general_preconfigure_kernel_parameters

- name: Import tasks from '2772999/09-configure-process-resource-limits.yml'
ansible.builtin.import_tasks: 2772999/09-configure-process-resource-limits.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2772999_09 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_09
- sap_general_preconfigure_nproc_limits

- name: Import tasks from '2772999/10-configure-systemd-tmpfiles.yml'
ansible.builtin.import_tasks: 2772999/10-configure-systemd-tmpfiles.yml
when: sap_general_preconfigure_config_all | d(true) or sap_general_preconfigure_2772999_10 | d(false)
tags:
- sap_general_preconfigure_configuration_all_steps
- sap_general_preconfigure_2772999_10
- sap_general_preconfigure_systemd_tmpfiles
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
- name: Assert 2772999-2
ansible.builtin.debug:
msg: "SAP note 2772999 Step 2: Configure SELinux"
tags:
- sap_general_preconfigure_selinux

- name: Import tasks from '../../RedHat/generic/assert-selinux.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/assert-selinux.yml
tags:
- sap_general_preconfigure_selinux
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
- name: Configure 2772999-2
ansible.builtin.debug:
msg: "SAP note 2772999 Step 2: Configure SELinux"
tags:
- sap_general_preconfigure_selinux

- name: Import tasks from '../../RedHat/generic/configure-selinux.yml'
ansible.builtin.import_tasks: ../../RedHat/generic/configure-selinux.yml
tags:
- sap_general_preconfigure_selinux
Loading

0 comments on commit 7194d55

Please sign in to comment.