example42 / puppet-perl

Puppet module to manage Perl and CPAN modules
Other
4 stars 26 forks source link

Fix for Issue #1 #2

Closed lieutdan13 closed 11 years ago

lieutdan13 commented 11 years ago

This fixes Issue #1, but I still think there should be some "requires" for each module that is installed. I'm not sure how to handle this if we leave the $doc_package empty.

alvagante commented 11 years ago

Try something like: $require = $doc_package ? { '' => undef, default => Package[$doc_package] , }

and use the variable inside resource arguments (that depend on the doc package) : require => $perl::require,