I''m trying to create a simple CPAN type and started with the code from this page: http://www.windley.com/archives/2008/10/using_puppet_and_cpan.shtml I''ve tried all versions of code from that page, and what I''d like to do is: class perl { define install-cpan () { exec { "cpan_load_${name}": command => "perl -I.cpan -MCPAN -e ''\$ENV{PERL_MM_USE_DEFAULT} =1; install $name''", cwd => "/root", path => "/usr/bin:/usr/sbin:/bin:/sbin", unless => "perl -M$name -e 1", } } package { ''perl'': ensure => installed } } perl::install-cpan { "Bundle::CPAN": } No matter what I try, I get an error: err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "Perl::Install-cpan[Bundle::CPAN]" What am I doing wrong? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Aug 6, 11:13 am, Douglas Wilson <douglasg.wil...@gmail.com> wrote:> I''m trying to create a simple CPAN type and started with the code from > this page:http://www.windley.com/archives/2008/10/using_puppet_and_cpan.shtml > > I''ve tried all versions of code from that page, and what I''d like to > do is: > > class perl { > define install-cpan () {The main mistake seems to have been the "-" in the "install-cpan". I copied one of the solutions from one of the comments in the blog post...the other answers used "_" instead. I thought I tried the other answers, but I probably left in the "-". Anyway, I also answered my own question over at ServerFault: http://serverfault.com/questions/168644/cpan-installer-for-puppet-cant-find-relationship-target And related question at stackoverflow (automating CPAN config): http://stackoverflow.com/questions/3462058/how-do-i-automate-cpan-configuration -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.