diff --git a/priv/catalog/222A57.yaml b/priv/catalog/222A57.yaml new file mode 100644 index 00000000..284b2f35 --- /dev/null +++ b/priv/catalog/222A57.yaml @@ -0,0 +1,25 @@ +id: "222A57" +name: supported sbd version +group: OS and package versions +description: | + SBD version is supported +remediation: | + ## Abstract + Installed SBD version must be equal or higher than the recommended value + + ## Remediation + Install or upgrade to a supported SBD version + + ## Reference + - https://documentation.suse.com/en-us/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/ + +when: env.provider in ["azure", "nutanix", "kvm"] + +facts: + - name: package_sbd + gatherer: package_version + argument: sbd,1.4.0 + +expectations: + - name: expectations_sbd_version + expect: facts.package_sbd < 1 diff --git a/priv/catalog/9FAAD0.yaml b/priv/catalog/9FAAD0.yaml new file mode 100644 index 00000000..59ad53ad --- /dev/null +++ b/priv/catalog/9FAAD0.yaml @@ -0,0 +1,23 @@ +id: "9FAAD0" +name: unsupported pacemaker version +group: OS and package versions +description: | + Pacemaker version is not the recommended value +remediation: | + ## Abstract + Installed Pacemaker version must not be equal than the recommended value + + ## Remediation + Install or upgrade to a supported Pacemaker version + + ## Reference + - https://documentation.suse.com/en-us/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/ + +facts: + - name: exclude_package_pacemaker + gatherer: package_version + argument: pacemaker,2.0.3+20200511.2b248d828 + +expectations: + - name: expectations_pacemaker_version_to_exclude + expect: facts.exclude_package_pacemaker != 0 diff --git a/priv/catalog/9FEFB0.yaml b/priv/catalog/9FEFB0.yaml new file mode 100644 index 00000000..841fbf25 --- /dev/null +++ b/priv/catalog/9FEFB0.yaml @@ -0,0 +1,23 @@ +id: "9FEFB0" +name: supported pacemaker version +group: OS and package versions +description: | + Pacemaker version is supported +remediation: | + ## Abstract + Installed Pacemaker version must be equal or higher than the recommended value + + ## Remediation + Install or upgrade to a supported Pacemaker version + + ## Reference + - https://documentation.suse.com/en-us/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/ + +facts: + - name: package_pacemaker + gatherer: package_version + argument: pacemaker,2.0.1 + +expectations: + - name: expectations_pacemaker_version + expect: facts.package_pacemaker < 1 diff --git a/priv/catalog/C3166E.yaml b/priv/catalog/C3166E.yaml new file mode 100644 index 00000000..3ac45cc3 --- /dev/null +++ b/priv/catalog/C3166E.yaml @@ -0,0 +1,25 @@ +id: "C3166E" +name: unsupported sbd version +group: OS and package versions +description: | + SBD version is not the recommended value +remediation: | + ## Abstract + Installed SBD version must not be equal than the recommended value + + ## Remediation + Install or upgrade to a supported SBD version + + ## Reference + - https://documentation.suse.com/en-us/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/ + +when: env.provider in ["azure", "nutanix", "kvm"] + +facts: + - name: exclude_package_sbd + gatherer: package_version + argument: sbd,1.4.0+20190326.c38c5e6 + +expectations: + - name: expectations_sbd_version_to_exclude + expect: facts.exclude_package_sbd != 0 diff --git a/priv/catalog/CAEFF1.yaml b/priv/catalog/CAEFF1.yaml new file mode 100644 index 00000000..6c36f863 --- /dev/null +++ b/priv/catalog/CAEFF1.yaml @@ -0,0 +1,41 @@ +id: "CAEFF1" +name: OS flavor SLES_SAP +group: OS and package versions +description: | + Operating system vendor is supported +remediation: | + ## Abstract + SAPHanaSR is only supported on SUSE Linux Enterprise Server for SAP Applications. + + ## Remediation + Please use SUSE Linux Enterprise Server for SAP Applications. + + ## Reference + Azure: + + - https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/sap-hana-high-availability + + AWS: + + - https://docs.aws.amazon.com/sap/latest/sap-hana/sap-hana-on-aws-ha-cluster-configuration-on-sles.html + + GCP: + + - https://cloud.google.com/solutions/sap/docs/sap-hana-os-support + + Nutanix: + + - https://documentation.suse.com/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/#id-planning-the-installation + + SUSE / KVM: + + - https://documentation.suse.com/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/#id-planning-the-installation + +facts: + - name: os_flavor + gatherer: package_version + argument: SLES_SAP-release + +expectations: + - name: expectations_sles_sap + expect: facts.os_flavor != () diff --git a/priv/catalog/D028B9.yaml b/priv/catalog/D028B9.yaml new file mode 100644 index 00000000..e568deef --- /dev/null +++ b/priv/catalog/D028B9.yaml @@ -0,0 +1,23 @@ +id: "D028B9" +name: OS version SLES_SAP +group: OS and package versions +description: | + Operating system version is supported +remediation: | + ## Abstract + You need at least SUSE Linux Enterprise Server for SAP Applications 15 SP1 or newer + + ## Remediation + Please install or upgrade to a supported OS version + + ## Reference + - https://documentation.suse.com/en-us/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/ + +facts: + - name: sles_sap_version + gatherer: package_version + argument: SLES_SAP-release,15.1 + +expectations: + - name: expectations_sles_sap_version + expect: facts.sles_sap_version < 1 diff --git a/priv/catalog/DC5429.yaml b/priv/catalog/DC5429.yaml new file mode 100644 index 00000000..8d91266b --- /dev/null +++ b/priv/catalog/DC5429.yaml @@ -0,0 +1,23 @@ +id: "DC5429" +name: supported corosync version +group: OS and package versions +description: | + Corosync version is supported +remediation: | + ## Abstract + Installed Corosync version must be equal or higher than the recommended value + + ## Remediation + Install or upgrade to a supported Corosync version + + ## Reference + - https://documentation.suse.com/en-us/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/ + +facts: + - name: package_corosync + gatherer: package_version + argument: corosync,2.4.5 + +expectations: + - name: expectations_corosync_version + expect: facts.package_corosync < 1 diff --git a/priv/catalog/F50AF5.yaml b/priv/catalog/F50AF5.yaml new file mode 100644 index 00000000..c1c0ed9e --- /dev/null +++ b/priv/catalog/F50AF5.yaml @@ -0,0 +1,23 @@ +id: "F50AF5" +name: supported python3 version +group: OS and package versions +description: | + Python3 version is supported +remediation: | + ## Abstract + Installed Python3 version must be equal or higher than the recommended value + + ## Remediation + Install or upgrade to a supported Python3 version + + ## Reference + - https://documentation.suse.com/en-us/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/ + +facts: + - name: package_python3 + gatherer: package_version + argument: python3,3.6.5 + +expectations: + - name: expectations_python3_version + expect: facts.package_python3 < 1