HomeSoftware Heritage

(MODULES-4682) Pass default_connect_settings to validate service

Description

(MODULES-4682) Pass default_connect_settings to validate service

If using CentOS or RedHat Enterprise Linux with PostgreSQL from
SoftwareCollections the validation of the service fails because
it needs the LD_LIBRARY_PATH environment variable to work properly.

To pass the env for example for postgresql_psql one can only set

class {'postgresql::globals':
  default_connect_settings => {
    'LD_LIBRARY_PATH' => '/opt/rh/rh-postgresql95/root/usr/lib64',
}

This patch passes the default_connect_settings to the
validate_db_connection resource in postgresql::service

Details

Provenance
Thomas Mueller <thomas@chaschperli.ch>Authored on Apr 10 2017, 2:00 PM
olasdPushed on Sep 12 2017, 2:54 PM
Parents
rSPPG0466e855c608: Merge pull request #905 from pmcmaw/updateDoc
Branches
Unknown
Tags
Unknown

Event Timeline

Thomas Mueller <thomas@chaschperli.ch> committed rSPPGaa15af39cab2: (MODULES-4682) Pass default_connect_settings to validate service (authored by Thomas Mueller <thomas@chaschperli.ch>).Jul 27 2017, 8:30 AM