-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(SERVER-2500) Use DNF modules to install postgres on RHEL 8 #337
base: main
Are you sure you want to change the base?
Conversation
puppetdb::database::postgresql is a classthat may have no external impact to Forge modules. puppetdb::params is a classthat may have no external impact to Forge modules. This module is declared in 33 of 578 indexed public
|
For the postgresql module change, see puppetlabs/puppetlabs-postgresql#1239. This resolves the following issue seen when trying to enable install PDB with this module on RHEL 8 in our acceptance tests:
This is because the package string is invalid for
|
I wasn't sure if this should be exposed to users or not. |
c84fe30
to
fb6133d
Compare
I tested this on 7.x and was surprised to see us still trying to install postgres 9.6 there... then I realized this module hasn't been released in a while, so we were not getting 3ea57a5. I think this is necessary even after that goes in, though, since we're still using a non-default version (11 instead of 10). |
The postgresql module added support for DNF modules to install postgres at specific versions on RHEL 8. However in order to install a non-default version, like we need to test Puppet Platform 6, which only supports Postgres 9.6, `manage_dnf_module` must be set to true for the `puppetlabs-postgresql` module. This commit ensures that mode is set when isntalling on RHEL 8. Note that when the default version is being installed (postgres 10 on RHEL8), the code path that this flag opts into is already being used.
fb6133d
to
ff5eb97
Compare
On further investigation, I think this may not be what we want. DNF modules can't be used to install Postgres 11, which means with this change we are even more broken in Puppet 7 land. It seems what we really want is something that follows these instructions:
Not sure yet if there's a way to force the postgresql module to do that. |
I'm returning to the world of Puppet after a four year break. Is there any reason this project is tied to Postgresql 9.6 and 11? I've installed PSQL 10, 11 and 12 and (so far) haven't had any issues. |
|
psql 11 is EOL and 12 is the oldest version that we need to worry about supporting. |
@@ -25,6 +25,12 @@ | |||
$manage_pg_repo = false | |||
} | |||
|
|||
if $::osfamily =~ /RedHat/ and $facts['os']['release']['major'] == '8' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be changed to check for either any version >= 8 or match EL8 & EL9.
The postgresql module added support for DNF modules to install postgres
at specific versions on RHEL 8. However in order to install a
non-default version, like we need to test Puppet Platform 6, which
only supports Postgres 9.6,
manage_dnf_module
must be set to true forthe
puppetlabs-postgresql
module. This commit ensures that mode is setwhen isntalling on RHEL 8.
Note that when the default version is being installed (postgres 10 on
RHEL8), the code path that this flag opts into is already being used.