Open sschueller opened 10 years ago
Sorry for delayed answer. The cpan::default is recipe, but cpan_client is LWRP, initial intention to have a recipe is to do some initialization, like create / delete cache dirs, etc, but I think it's better to move this into LWRP cpan_module and to set initialization logic here. If I got you right you do not want to delete local-lib dir in some cases?
Hi, sorry for the crazy delay (forgot about this).
The issue is that during each chef run the recipe calling cpan_client is marked as updated (although nothing changed). In our setup we have chef run automatically and all recipes are written in a way to not make any changes if not needed. We log only changes but in the moment cpan_client pollutes the logs.
For example the git LWRP does not mark the recipe as updated unless there was a change in the repository and it was pulled from the remote.
Recipe:
Chef Log:
Is there a way to only have the dirs deleted and recreated if the cpan module is not installed?