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/MyConfig.pm"}

then in exec:

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

and similarly for the modules...