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

Automate configuration of _hosts parameters and clarify documentation #5

Merged
merged 1 commit into from
Dec 17, 2018
Merged

Automate configuration of _hosts parameters and clarify documentation #5

merged 1 commit into from
Dec 17, 2018

Conversation

tkishel
Copy link
Contributor

@tkishel tkishel commented Dec 4, 2018

With this commit:

Default <service_name>_hosts parameters are specified via a PuppetDB query.
Installation and configuration documentation is prioritized.
Module parameters are documented.

@tkishel tkishel requested a review from npwalker December 4, 2018 22:36
With this commit:

Default <service_name>_hosts parameters are specified via a PuppetDB query.
Installation and configuration documentation is prioritized.
Module parameters are documented.
Copy link
Contributor

@jarretlavallee jarretlavallee left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@tkishel
Copy link
Contributor Author

tkishel commented Dec 6, 2018

Four puppetdb_query queries every run_interval should not be significant.

These change makes the module significantly easier to configure and comprehend, and allow it to be used by the HealthCheckLite project without manual configuration.

Copy link
Contributor

@npwalker npwalker left a comment

Choose a reason for hiding this comment

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

seems good

@npwalker npwalker merged commit b744bd0 into puppetlabs:master Dec 17, 2018
function puppet_metrics_collector::hosts_with_pe_profile($profile) {
if $settings::storeconfigs {
$_profile = capitalize($profile)
$hosts = puppetdb_query("resources[certname] {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if this should have specified environment to only return hosts in the current environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants