Skip to content

pass in password via hiera#514

Merged
truthbk merged 2 commits intoDataDog:masterfrom
cabrinha:patch-1
May 4, 2019
Merged

pass in password via hiera#514
truthbk merged 2 commits intoDataDog:masterfrom
cabrinha:patch-1

Conversation

@cabrinha
Copy link
Copy Markdown

We should be able to use this class with include datadog_agent::integrations::postgres, but without specifying a password, this fails:

Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Class[Datadog_agent::Integrations::Postgres]: expects a value for parameter 'password'

cabrinha and others added 2 commits April 15, 2019 16:40
We should be able to use this class with `include datadog_agent::integrations::postgres`, but without specifying a password, this fails:

Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Class[Datadog_agent::Integrations::Postgres]: expects a value for parameter 'password'
@truthbk
Copy link
Copy Markdown
Member

truthbk commented May 3, 2019

Hey @cabrinha! You're absolutely right, we've got a few places that don't really play well with hiera. Haven't forgetten about this - just want to make sure I give it a test run before merging.

This, or a variation on top of this, will be shipping with the upcoming release.

Thanks!

@truthbk truthbk added this to the 2.6.0 milestone May 3, 2019
Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

Tested it! Looks good 👌

Although this could potentially generate an incomplete check configuration if the user specifies no password and no instances - thought that would be on the user - given the presence of the instances parameter, all options should either have defaults or be optional to play well with hiera which is exactly what @cabrinha is doing here. Thank you and kudos!

@truthbk truthbk merged commit a8b313f into DataDog:master May 4, 2019
@cabrinha cabrinha deleted the patch-1 branch May 6, 2019 15:38
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
* pass in password via hiera

We should be able to use this class with `include datadog_agent::integrations::postgres`, but without specifying a password, this fails:

Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Class[Datadog_agent::Integrations::Postgres]: expects a value for parameter 'password'

* it should compile with default params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants