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

Use service_name param instead of static collectd, #688 #738

Closed
wants to merge 1 commit into from

Conversation

fnoop
Copy link

@fnoop fnoop commented Dec 4, 2017

This PR is to fix behaviour reported in #688. puppet-collectd currently refers to the controlled service as Service['collectd']. This means that if you specify $collectd::service_name, you still cannot control the actual 'collectd' service outside of puppet-collectd. This PR changes all references from 'collectd' to $collectd::service_name.

@alexjfisher
Copy link
Member

Could you look at the test failures?

it { is_expected.to contain_file(filename).that_notifies('Service[collectd]') }
needs updating since the service_name doesn't default to 'collectd' for all supported OSes.

@fnoop
Copy link
Author

fnoop commented Jan 19, 2018

Is this because the manifests now refer to "service { $service_name:" instead of "service { 'collectd':"?
I have no idea how to fix the tests for this, sorry.

juniorsysadmin added a commit to juniorsysadmin/puppet-collectd that referenced this pull request Mar 31, 2018
The $service_name variable exists but is useless as
Service['collectd'] is used in most places.

More or less identical to voxpupuli#738 by @fnoop

Fixes voxpupuli#688
juniorsysadmin added a commit to juniorsysadmin/puppet-collectd that referenced this pull request Mar 31, 2018
The $service_name variable exists but is useless as
Service['collectd'] is used in most places.

More or less identical to voxpupuli#738 by @fnoop

Fixes voxpupuli#688
@bastelfreak
Copy link
Member

We implemented this in #771

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.

3 participants