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

postgresql : Environment variables options

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: postgresql
    • Labels:
    • Environment:

       

      Puppet 6.11.1

      puppetlabs-postgresql (v6.2.0)

    • Template:
      MODULES Bug Template
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 6.2.0
      Puppet Version: 6.11.1
      OS Name/Version: RHEL 7

      Hi,

      When using SCL (Software Collections) in RHEL (Or CentOS), paths are weird and some variables must be defined so that the commands work corectly.

      Would it be possible to add the possibility to define environment variables in the module?

      In my case, I would like to do the equivalent of:

      export PATH=/opt/rh/rh-postgresql12/root/usr/bin${PATH::$PATH}; }}{{export LIBRARY_PATH=/opt/rh/rh-postgresql12/root/usr/lib64${LIBRARY_PATH::$LIBRARY_PATH}

      These commands are part of a file that is available on the system after installing the main package. It can be sourced. It could also be copied in /etc/profile.d, but I'm not sure if that will all happen before initdb is called.

      Desired Behavior: The module works

      Actual Behavior: The module throws errors of shared libraries not found

      Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ubellavance Ugo Bellavance
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support