How should one handle »Duplicate declarations« between Forge modules?
I'm new to puppet and encountered the problem, that even in simple scenarios modules seem not work together. For example, I want to use NIS and NFS and installed the popular modules from forge ericsson-nisclient und derdanne-nfs. This leads to this error:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Duplicate declaration: Service[rpcbind] is already declared in file /etc/puppetlabs/code/environments/testing/modules/rpcbind/manifests/init.pp:83; cannot redeclare at /etc/puppetlabs/code/environments/testing/modules/nfs/manifests/client/service.pp:43:5 on node test.local
When using desalvo-nis instead of ericsson-nisclient, there is a conflict with ghoneycutt-nsswitch.
My question is: what is the approved way to avoid these conflicts? I want to use puppet forge modules, because I don't want to reinvent the wheel.