alternative OS differentiated package selection

This commit is contained in:
2022-06-21 13:19:10 +02:00
parent 65da785c85
commit b40905670a
+11
View File
@@ -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