alternative OS differentiated package selection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user