Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10951

postgresql : Module doesn't use the correct baseurl for Yum repo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: postgresql
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      Be able to set the version with major and minor numbers and the installation works correctly.

      Show
      Be able to set the version with major and minor numbers and the installation works correctly.
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 6.2.0
      Puppet Version: 5.5.22
      OS Name/Version: CentOS 7

      When managing the Yum repository, the baseurl presents problems if the version has a dot, so I can't set the minor version, just the major.

      That's the line which configures the baseurl on the file manifests/repo/yum_postgresql_org.pp:

      $default_baseurl = "https://download.postgresql.org/pub/repos/yum/${postgresql::repo::version}/${label1}/${label2}\$releasever\$basearch"

       

       

      If the variable is, let's say, 12, works fine. If has a dot on it, let's say, 12.1, doesn't work anymore because the repository doesn't exist.

      The idea would be replace the variable `${postgresql::repo::version}` with `${version_parts[0]}`. This variable contains just the major version.

      But probably we could have issues with 9.5 and 9.6 versions. This versions still have separated repositories for each minor.

      Desired Behavior:

      Be able to install a version of PostgreSQL defining the major version and the minor version too.

      Actual Behavior:

      Because the version is used as part of baseurl value, if I set a version with major and minor numbers the repository isn't found (since version 10 the repository is defined as the major version).

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mhalano Marcos Alano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support