Skip to content

Commit

Permalink
Rename CPE template cond_package into platform_package
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyz committed Dec 1, 2022
1 parent 43c49af commit 48ddab7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions shared/applicability/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "cpe:/a:{arg}"
title: "Package {pkgname} is installed"
bash_conditional: {{{ bash_pkg_conditional("{pkgname}") }}}
ansible_conditional: {{{ ansible_pkg_conditional("{pkgname}") }}}
check_id: cond_package_{arg}
check_id: platform_package_{arg}
template:
name: cond_package
name: platform_package
args:
ntp:
pkgname: ntp
Expand Down
11 changes: 0 additions & 11 deletions shared/templates/cond_package/oval.template

This file was deleted.

11 changes: 11 additions & 0 deletions shared/templates/platform_package/oval.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<def-group>
<definition class="inventory" id="platform_{{{ _RULE_ID }}}"
version="1">
{{{ oval_metadata("The " + pkg_system|upper + " package " + PKGNAME + " should be installed.", affected_platforms=["multi_platform_all"]) }}}
<criteria>
<criterion comment="Package {{{ PKGNAME }}} is installed"
test_ref="platform_test_{{{ _RULE_ID }}}_installed" />
</criteria>
</definition>
{{{ oval_test_package_installed(package=PKGNAME, test_id="platform_test_" + _RULE_ID + "_installed") }}}
</def-group>
File renamed without changes.

0 comments on commit 48ddab7

Please sign in to comment.