Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

edb-ansible roles/tasks using pg_version variable does not function with RHEL8 appstream repository with enable_edb_repo=false #592

Description

@Lyuven

Hi! This issue might be a bit too specific to apply fixes, but I think it should at least be known:

Red Hat uses Appstream/module solution* which omits the version number in the package name (for example postgresql15-server becomes only postgresql-server in RHEL8 appstream repo). Every role/task that mentions pg_version will automatically fail due to naming conflict where role/task is attempting to [for example] install postgresql15-server when it should be looking for postgresql-server (while enabling v15 like this: yum module enable postgresql-server:15).

This becomes an issue when you set enable_edb_repo=false and you're in an offline environment with restricted access to repositories other than official RHEL8 repositories.

One solution could be to set the pg_version to null which should effectively append nothing while having a secondary variable something like: pg_module_version applied to where-conditions where you want to check version of PG without appending to reponames. Otherwise it might be wise to include an appendix at supported distributions that RHEL >=8 requires external repositories.

Regards,
Lyuven

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions