You can use a define:

define perl::installCPAN () {
  exec { "cpan_install_$name":
    command => "/usr/bin/cpan -i \"$name\"",
    timeout => 600,
    unless  => "perl -e \"use $name\"",
    require => Package['perl'],
  }
}

On 27.09.2011, at 16:59, Jeffrey Ollie wrote:

> Google searches don't turn up anything very promising in terms of a
> Puppet CPAN package provider.  What are people using to manage Perl
> modules installed through CPAN?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to