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

Add bin_name override to daemon.pp #281

Merged
merged 1 commit into from
Dec 9, 2018

Conversation

dudemcbacon
Copy link

Pull Request (PR) description

I have added a bin_name parameter to daemon.pp for cases where you'd like to specifically set the name of the binary that should be executed in the init script rather than relying on the $name supplied to the define type.

This Pull Request (PR) fixes the following issues

This fixes an issue where running multiple instances of an exporter is not possible because changing the name $title of the define type also changes the name of the binary that is executed by the init script. I need to be able to run 8 instances of the mongodb_exporter on a single host because I have eight instances of mongodb running on that host.

@alexjfisher
Copy link
Member

@dudemcbacon Thanks for the PR. Looks like a reasonable addition. Would you be able to look at the test failures and then squash your commits?

(bundle exec rake rubocop:autocorrect will probably fix up most if not all)

@dudemcbacon
Copy link
Author

Rubocop'ed and squashed. Thanks!

@alexjfisher
Copy link
Member

@dudemcbacon Thanks!

@alexjfisher alexjfisher merged commit ace51dd into voxpupuli:master Dec 9, 2018
@alexjfisher alexjfisher added the enhancement New feature or request label Dec 9, 2018
Rovanion pushed a commit to Rovanion/puppet-prometheus that referenced this pull request May 5, 2021
Add bin_name override to daemon.pp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants