Issue #2590 has been updated by Michael DeHaan.

Status changed from Closed to Unreviewed
Target version changed from 0.25.6 to Rowlf
Affected version changed from 0.25.1 to development

I'm still seeing this problem on latest master also with "puppet main -v 
--modulepath somepath /path/to/test.pp", doesn't work, so I'm reopening on the 
new version.

I tried adding modulepath to the configuration files and it doesn't seem that 
puppet's CLI is observing those either, though this *could* be user error on my 
part, I suspect it is ignoring module path in general and not just the 
--modulepath. 
----------------------------------------
Bug #2590: --modulepath ignored
http://projects.puppetlabs.com/issues/2590

Author: Thomas Bellman
Status: Unreviewed
Priority: High
Assigned to: John A. Barbuto
Category: 
Target version: Rowlf
Affected version: development
Keywords: 
Branch: 


It seems that at least the stand-alone 'puppet' executable
ignores --modulepath.  Given the following minimal manifest
set:

<pre>
    $ pwd
    /config/0.25
    $ find . -type f -print
    ./manifests/site.pp
    ./modules/testmodule/manifests/init.pp

    $ cat manifests/site.pp
    import "testmodule"

    node default
    {
        include moduleclass
    }

    $ cat modules/testmodule/manifests/init.pp
    class moduleclass
    {
        file {
            "/tmp/testfile":
                ensure => file, content => "${puppetversion}\n";
        }
    }
</pre>

I get the following results:

<pre>
    # puppet --modulepath=/config/0.25/modules manifests/site.pp
    Could not parse for environment production: No file(s) found for
    import of 'testmodule' at /config/0.25/manifests/site.pp:3
</pre>

This works as expected in 0.24.8.  Bisecting shows that it was
introduced with commit d397f8d1d1092067f7ca52449ce9af63f02f44e1
(Fixing #2574 - autoloading finds plugins in modules) on
2009-09-01 01:01:17.

I have only tried the stand-alone puppet program, not the puppetd
/ puppetmasterd combination.


Adding --debug --trace I get the following traceback:

<pre>
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:172:in `import'
    grammar.ra:639:in `_reduce_156'
    grammar.ra:638:in `each'
    grammar.ra:638:in `_reduce_156'
    /usr/lib/ruby/site_ruby/1.8/facter/util/ip.rb:141:in `_racc_yyparse_c'
    /usr/lib/ruby/site_ruby/1.8/facter/util/ip.rb:141:in `catch'
    /usr/lib/ruby/site_ruby/1.8/facter/util/ip.rb:141:in `_racc_yyparse_c'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/lexer.rb:446:in `scan'
    /usr/lib/ruby/1.8/racc/parser.rb:152:in `_racc_yyparse_c'
    /usr/lib/ruby/1.8/racc/parser.rb:152:in `__send__'
    /usr/lib/ruby/1.8/racc/parser.rb:152:in `yyparse'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:430:in `parse'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/interpreter.rb:71:in 
`create_parser'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/interpreter.rb:54:in `parser'
    /usr/lib/ruby/site_ruby/1.8/puppet/parser/interpreter.rb:27:in `compile'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:88:in 
`compile'
    /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:181:in `benchmark'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:86:in 
`compile'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:35:in 
`find'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:198:in `find'
    /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
    /usr/lib/ruby/site_ruby/1.8/puppet/application/puppet.rb:116:in `main'
    /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
    /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
    /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
    /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
    /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
    /usr/bin/puppet:71
    Could not parse for environment production: No file(s) found for import of 
'testmodule' at /config/0.25/manifests/site.pp:3
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to