Managing conflicting forge dependencies

345 views
Skip to first unread message

Andrei-Florian Staicu

unread,
Oct 28, 2013, 4:21:09 AM10/28/13
to puppet...@googlegroups.com
Hi all,

How do you manage different forge modules that require conflicting versions for the same module?
The most common example is ripienaar/concat vs puppetlabs/concat:
puppetlabs/puppetdb requires puppetlabs/postgreql 2.x, which requires ripienaar/concat
puppetlabs/apache requires puppetlabs/concat

Thanks.

Garrett Honeycutt

unread,
Oct 28, 2013, 12:42:29 PM10/28/13
to puppet...@googlegroups.com, andrei...@gmail.com

Looks like you a hit that issue while they were transitioning from ripienaar to puppetlabs. The postgresql module now correctly refers to the new puppetlabs/concat module[1].

As for managing modules that require conflicting versions for dependencies, there is not an easy solution; you have to resolve the dependencies. This usually entails upgrading something.

For the specific issue you had above, I believe that would have been caught by librarian-puppet, since it does dependency checking, though it should have just worked if you used librarian-puppet-simple[2].

[1] - https://github.com/puppetlabs/puppetlabs-postgresql/blob/master/Modulefile#L13
[2] - https://github.com/bodepd/librarian-puppet-simple

Cheers,
-g

Andrei-Florian Staicu

unread,
Oct 28, 2013, 1:43:32 PM10/28/13
to puppet...@googlegroups.com
Yes, that dependency is solved with the puppetdb module upgrade to 3.0
Unfortunately, there are other interesting modules that still depend on ripienaar, such as example42/sudo.
I guess I'll just have to wait for updates.

Thanks for your time.

On an unrelated issue (and since I'm still starting with modules), would this list be a good place to present a new module for review?

--
Beware of programmers who carry screwdrivers!
Reply all
Reply to author
Forward
0 new messages