Issue #14872 has been updated by Nigel Kersten.
This seems to fix it FWIW:
<pre>
--- /root/list.rb 2012-08-15 11:21:42.000000000 -0700
+++ /opt/puppet/lib/site_ruby//1.8/puppet/face/module/list.rb 2012-08-15
11:19:12.000000000 -0700
@@ -76,6 +76,7 @@
when_invoked do |options|
Puppet[:modulepath] = options[:modulepath] if options[:modulepath]
+ Puppet.settings[:environment] = options[:environment] if
options[:environment]
environment = Puppet::Node::Environment.new(options[:environment])
environment.modules_by_path
</pre>
How good are the tests here? Do you want a pull request?
----------------------------------------
Bug #14872: puppet module install does not respect environments
https://projects.puppetlabs.com/issues/14872#change-69135
Author: Garrett Honeycutt
Status: Accepted
Priority: Normal
Assignee: Ken Barber
Category: module tool
Target version: 2.7.x
Affected Puppet version: 2.7.16
Keywords:
Branch:
https://github.com/kbarber/puppet/tree/ticket/master/14872-pmt_ignores_environments
puppet module install appears to read the modulepath from the [main] section
and does not respect `--environment=whatever` when it installs a given module,
resulting in the downloaded module being in the wrong path.
--
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.