{{% if product in ["sle12"] %}} {{% set smartcard_packages = ['pam_pkcs11', 'mozilla-nss', 'mozilla-nss-tools', 'pcsc-ccid', 'pcsc-lite', 'pcsc-tools', 'opensc', 'coolkey'] %}} {{% elif product in ["sle15"] %}} {{% set smartcard_packages = ['pam_pkcs11', 'mozilla-nss', 'mozilla-nss-tools', 'pcsc-ccid', 'pcsc-lite', 'pcsc-tools', 'opensc'] %}} {{% elif product in ["rhel7", "ol7"] %}} {{% set smartcard_packages = ['pam_pkcs11'] %}} {{% else %}} {{% set smartcard_packages = ['openssl-pkcs11'] %}} {{% endif %}}

{{{ oval_metadata("The " + pkg_system|upper + " packages " + smartcard_packages|join(',') + " should be installed.", affected_platforms=["multi_platform_sle"]) }}} {{% for pkg in smartcard_packages %}} {{% endfor %}}

{{% for pkg in smartcard_packages %}} {{{ oval_test_package_installed(package=pkg, evr=EVR, test_id="test_package_" + pkg + "_installed") }}} {{% endfor %}}