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

Could not look up qualified variable 'perl::package_prefix' #14

Open
russellsimpkins-nyt opened this issue Aug 26, 2014 · 4 comments
Open

Comments

@russellsimpkins-nyt
Copy link

(Scope(Perl::Cpan::Module[Carp::Clan])) Could not look up qualified variable 'perl::package_prefix'; class perl has not been evaluated at /etc/puppet/modules/perl/manifests/cpan/module.pp:18
(Scope(Perl::Cpan::Module[Carp::Clan])) Could not look up qualified variable 'perl::package_suffix'; class perl has not been evaluated at /etc/puppet/modules/perl/manifests/cpan/module.pp:19

I"m not sure - maybe I'm doing something wrong. Here is my puppet config:

class mymodule::cpan-modules() inherits mymodule::params {
perl::cpan::module { 'Carp::Clan': }
perl::cpan::module { 'Date::Calc': }
perl::cpan::module { 'Date::Calendar': }
perl::cpan::module { 'Email::Address': }
perl::cpan::module { 'List::MoreUtils': }
perl::cpan::module { 'Readonly': }
perl::cpan::module { 'Regexp::Common': }
perl::cpan::module { 'URI::Find': }
perl::cpan::module { 'URI::Find::Schemeless': }
perl::cpan::module { 'XML::LibXML': }
perl::cpan::module { 'YAML': }
perl::cpan::module { 'Data::Dumper': }
perl::cpan::module { 'English': }
perl::cpan::module { 'File::Basename': }
perl::cpan::module { 'File::Copy': }
perl::cpan::module { 'Getopt::Std': }
perl::cpan::module { 'HTTP::Request': }
perl::cpan::module { 'LWP::UserAgent': }
}

Is it possible the error/debug message is misleading and that it's simply one of the cpan modules I'm trying to make sure are installed isn't referenced correctly? I only see the errors twice:

Aug 26 15:12:22 ip-10-159-26-177 puppet-master[9402]: (Scope(Perl::Cpan::Module[Carp::Clan])) Could not look up qualified variable 'perl::package_prefix'; class perl has not been evaluated at /etc/puppet/modules/perl/manifests/cpan/module.pp:18
Aug 26 15:12:22 ip-10-159-26-177 puppet-master[9402]: (Scope(Perl::Cpan::Module[Carp::Clan])) Could not look up qualified variable 'perl::package_prefix'; class perl has not been evaluated at /etc/puppet/modules/perl/manifests/cpan/module.pp:18
Aug 26 15:12:22 ip-10-159-26-177 puppet-master[9402]: (Scope(Perl::Cpan::Module[Carp::Clan])) Could not look up qualified variable 'perl::package_suffix'; class perl has not been evaluated at /etc/puppet/modules/perl/manifests/cpan/module.pp:19
Aug 26 15:12:22 ip-10-159-26-177 puppet-master[9402]: (Scope(Perl::Cpan::Module[Carp::Clan])) Could not look up qualified variable 'perl::package_suffix'; class perl has not been evaluated at /etc/puppet/modules/perl/manifests/cpan/module.pp:19

@alvagante
Copy link
Member

I think you should have a
include perl
somewhere...

@alvagante
Copy link
Member

probably it should be placed directly in the perl::cpan::modul define, though

@russellsimpkins-nyt
Copy link
Author

I added

import 'perl'

statement and still get the warnings. The warnings don't seem to cause any ill effect though. I haven't developed any modules myself. I attempted changing

$package_prefix = $perl::package_prefix,
$package_suffix = $perl::package_suffix,

to

$package_prefix = perl::package_prefix,
$package_suffix = perl::package_suffix,

and that removed the error. In both cases, with or without my edit, the module seems to have correctly checked and installed the modules.

@alvagante
Copy link
Member

I suppose you meant "include puppet" anyway

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