Added multiple postgres instances and fixed pgbouncer#372
Merged
truthbk merged 2 commits intoDataDog:masterfrom Dec 12, 2017
Merged
Added multiple postgres instances and fixed pgbouncer#372truthbk merged 2 commits intoDataDog:masterfrom
truthbk merged 2 commits intoDataDog:masterfrom
Conversation
Contributor
Author
|
Just for reference/testing, here's an example to declare multiple postgres instances in hiera for a node |
truthbk
reviewed
Dec 1, 2017
| $_instances = $instances | ||
| } | ||
|
|
||
| file { "$dst": |
Member
There was a problem hiding this comment.
This line has a minor stylistic issue:
manifests/integrations/postgres.pp:96:only_variable_string:WARNING:string containing only a variable
manifests/integrations/postgres.pp:96:variables_not_enclosed:WARNING:variable not enclosed in {}
The line was originally:
file { $dst:
which I think is fine, but if you have your reasons for changing that you might have to address it some other way.
Contributor
Author
|
I reverted the file definition. Do you know of an example for testing passing an array of instances? I looked in the mysql tests but didn't see a test for an array so I'm not sure how to do it. |
Member
|
@rothgar that's OK, I'm working on puppet right now, so I'll add the tests to the suite myself - there are tests for |
cegeka-jenkins
pushed a commit
to cegeka/puppet-datadog_agent
that referenced
this pull request
Jan 31, 2018
* Added postgress instances and fixed pgbouncer * Revert file name variable quoting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a problem with pgbouncer class not including the datadog_agent (error if not otherwise included)
It also allows multiple postgres instances on the same node. It's based on the mysql template and manifest but now can be applied to postgres.