edb-ansible icon indicating copy to clipboard operation
edb-ansible copied to clipboard

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

Open Lyuven opened this issue 9 months ago • 1 comments

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.

  • (see 4.2, 4.3, 4.4: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/installing_managing_and_removing_user-space_components/installing-rhel-8-content_using-appstream#selecting-a-stream-before-installation-of-packages_installing-rhel-8-content)

Regards, Lyuven

Lyuven avatar Sep 19 '23 19:09 Lyuven