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

Using $manage_service in zabbix::proxy #374

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

Samgarr
Copy link
Contributor

@Samgarr Samgarr commented Apr 3, 2017

This PR allowing use of $manage_service in zabbix::proxy class.

Package["zabbix-proxy-${db}"],
File[$include_dir],
File[$proxy_configfile_path]],
if $manage_service == true {
Copy link
Member

Choose a reason for hiding this comment

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

this should be enough:

if $manage_service {

@bastelfreak
Copy link
Member

Thanks for the PR @Samgarr. Are you able to also add spec tests for this change?

@Samgarr
Copy link
Contributor Author

Samgarr commented Apr 3, 2017

I'm not sure right now, Ruby is new for me, spec tests also.

@bastelfreak
Copy link
Member

Don't worry. Feel free to join our IRC channel #voxpupuli on freenode. We're happy to help you with the tests.

zabbix_proxy => $zabbix_proxy,
zabbix_proxy_ip => $zabbix_proxy_ip,
before => [
Service[$proxy_service_name],
Copy link
Member

Choose a reason for hiding this comment

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

is this the only different line? We shouldt do code duplication here. Please write Service[$proxy_service_name] into a variable and use that in the before parameter.

Signed-off-by: Samgarr <honza@pechek.cz>
@Samgarr
Copy link
Contributor Author

Samgarr commented Dec 18, 2017

Rebased, spec tests added.

@bastelfreak
Copy link
Member

Thanks!

@bastelfreak bastelfreak added enhancement New feature or request and removed needs-tests labels Dec 18, 2017
@bastelfreak bastelfreak merged commit c6fff68 into voxpupuli:master Dec 18, 2017
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.

None yet

3 participants