Closed marcusphi closed 10 years ago
what about using stdlib's ensure_package('curl') ?
@fedecz I would actually prefer this solution but it seems there are a lot of people trying to avoid the use of puppetlabs/stdlib at all costs and wouldn't be happy if we introduced this dependency.
@joschi Alright, I understand what you mean, but may I ask why is people trying to avoid puppetlabs/stdlib's ? I'm using it in a very large project and now I'm afraid that i'm missing something :)
I've read up on the duplicate package problem within the context of shared modules. It's a tricky problem. A good discussion is https://groups.google.com/d/topic/puppet-users/OF_WYN41dMI
I will close this issue. I think stdlib is good but I'm not convinced ensure_package is a good solution. Current state is ok.
Maybe add something like if !defined(Package['curl']) { ... } in archive::prerequisites for all packages.
It seems unnecessary having to provide a full custom dependency_class and keep that in sync with archive::prerequisites.