Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

undocumented cpan_mirror argument not working on ubuntu/(precise | trusty) #21

Open
at3560k opened this issue May 8, 2015 · 1 comment

Comments

@at3560k
Copy link

at3560k commented May 8, 2015

When you call 'cpan' for the first time to configure it in cpan.pp, you pass a list of answers to the questions to the default exec command.

On a default 'trusty' install (cpan 1.61 perl 5.18.2) 'yes'/'yes' finishes answering the list and it automatically populates mirrors

On a default 'precise' install (cpan 1.57 perl 5.14.2) it needs yes/newline/cpan_mirror/newline

Can you indicate what distribution or version of CPAN this current default answer list works with, or just add an option to drop your own config.pm ?

@alvagante
Copy link
Member

You can use the param exec_command to customise the command to launch and the answers.
https://github.com/example42/puppet-perl/blob/master/manifests/cpan.pp#L8

It would be nice though, to have a correct default value for precise here: https://github.com/example42/puppet-perl/blob/master/manifests/cpan.pp#L11

PR welcomed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants