Skip to content

Conversation

@kdvalin
Copy link
Member

@kdvalin kdvalin commented Nov 4, 2025

Description

This adds the ability for package_tool to install packages based off the OS version instead of solely the OS vendor. This will not change the behavior of only having a list of packages for a vendor.

Additionally, the version number can be done via only a major (to cover stuff like the entirety of RHEL 9) or a major/minor version pair to handle specific versions if needed.

Before/After Comparison

Before

The wrapper_config can only differentiate based off the OS vendor.

After

The wrapper_config can differentiate based off OS Vendor and OS version.

Clerical Stuff

This closes #109
Relates to JIRA: RPOPC-672

…_config

Fixes a bug where installing JQ for the first time causes messages to
reach stdout, which messes with the list of packages to install.
Adds the ability to specify dependencies on an OS version level.  The
previous way of working with dependencies is still supported ("osname":
[<list of packages]) and will work as expected.  This adds support for
checking the full version, major version, and then a default set of
packages for an OS.  An example is below
```json
"rhel": {
  "9.6": ["gcc"],
  "9": ["g++"],
  "default": ["gawk"]
}
```

That will install gcc on 9.6, install g++ on 9.* versions (except 9.6),
and then gawk on all versions (except 9.*).
@kdvalin kdvalin requested a review from a team November 4, 2025 13:07
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

This relates to RPOPC-672

package_tool Outdated
if [[ -n "$wrapper_config" ]]; then
wrapper_pkgs=$(parse_json $wrapper_config $running_os)
if [[ $? -ne 0 ]]; then
exit 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error message.

package_tool Outdated
fi
wrapper_pip=$(parse_json $wrapper_config pip)
if [[ $? -ne 0 ]]; then
exit $?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error message.

Copy link
Contributor

@dvalinrh dvalinrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation updates required.
Error messaging when exiting out.

@kdvalin kdvalin requested review from a team and dvalinrh November 10, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

package_tool: Support wrapper_config for various OS versions

3 participants