From b40905670a3ac7ab17754c93bc99d0acd40d5228 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Tue, 21 Jun 2022 13:19:10 +0200 Subject: [PATCH] alternative OS differentiated package selection --- rhel8/packages.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rhel8/packages.md b/rhel8/packages.md index 0ef3ba01..29e77fc1 100644 --- a/rhel8/packages.md +++ b/rhel8/packages.md @@ -65,6 +65,17 @@ base::pkg_group::java: - 'java-11-openjdk' - 'java-17-openjdk:-redhat7' ``` + **possible alternative** + + Certain packages are only used on a given OS Version, so a `os=` with the OS name and the major version selects a package only for given OS, where as a `os!` will filter away given package on hosts with given OS, so they are not installed there. + +``` +base::pkg_group::java: + - 'java-1.8.0-openjdk:os=redhat7' + - 'java-11-openjdk' + - 'java-17-openjdk:os!redhat7' +``` + Note that this tag can be combined with the `latest` and `absent` tag. ### Remove Packages