Skip to content
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

(MODULES-4682) Pass default_connect_settings to validate service #862

Merged
merged 2 commits into from
Jul 27, 2017
Merged

(MODULES-4682) Pass default_connect_settings to validate service #862

merged 2 commits into from
Jul 27, 2017

Conversation

vinzent
Copy link
Contributor

@vinzent vinzent commented Apr 10, 2017

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

@@ -33,6 +34,7 @@
run_as => $user,
database_name => $default_database,
database_port => $port,
connect_settings => $connect_settings,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinzent , looks like the linter is complaining about the hash rocket alignment in this resource. please make sure they all line up.

@vinzent
Copy link
Contributor Author

vinzent commented May 23, 2017

@eputnam rebased and updated

@eputnam
Copy link
Contributor

eputnam commented Jul 26, 2017

gah, now a rebase and it should be good @vinzent

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`
@eputnam eputnam merged commit 8bfae80 into puppetlabs:master Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants