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

Make wget installation optional #15

Merged
merged 1 commit into from
Jun 27, 2015

Conversation

danieldreier
Copy link
Contributor

Add an install_wget parameter to allow users to entirely disable management of wget. The require on an exec will still expect the resource to be exist, so it must be provided via another module if install_wget is set to false.

@danieldreier
Copy link
Contributor Author

To clarify my use case here, we have wget set to ensure => latest, so the create_resource wrapping wget in this module doesn't detect that as an identical resource and attempts to create a wget package resource, which conflicts with the one we declared previously.

@nibalizer
Copy link
Member

Are you sure this is what you wanted to push up? We've added a parameter that, as far as I can tell, doesn't do any thing. Unless ensure_resource knows how to look up the install_wget variable, which would be vomit inducing.

@danieldreier danieldreier force-pushed the optional_wget_install branch from 5710238 to c4e3ae2 Compare June 26, 2015 23:37
ensure_resource only matches resources as duplicate if all parameters
are identical to the previously declared version. Using an explicit if
not present avoids resource conflicts in the situation where wget was
previously declared with ensure => latest.
@danieldreier danieldreier force-pushed the optional_wget_install branch from c4e3ae2 to b4d6b98 Compare June 26, 2015 23:37
@danieldreier
Copy link
Contributor Author

@nibalizer you're right, I forgot to include the relevant conditional. I actually changed the approach and switched out the parameter to just check for resource conflicts using if ! defined instead of relying on ensure_resource.

nibalizer added a commit that referenced this pull request Jun 27, 2015
@nibalizer nibalizer merged commit d922560 into voxpupuli:master Jun 27, 2015
@igalic
Copy link
Contributor

igalic commented Jan 13, 2016

what does puppet-kafka (or kafka?) use wget for?

elmendalerenda pushed a commit to elmendalerenda/puppet-kafka that referenced this pull request Mar 30, 2018
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.

3 participants