Ask Your Question

Revision history [back]

unfortunately exec always returns success or fail .. there is a logoutput attribute but that only controls output of command not pass/fail.

you could maybe change the exec so that it subscribes to something else .. e.g. for cpan :

file {"/root/.cpan/CPAN/"}

then in exec:

subscribe => File["/root/.cpan/CPAN/"] refreshonly => true

and similarly for the modules...