Issue #14426 has been updated by Kelsey Hightower. Status changed from Unreviewed to Needs Decision Assignee set to Pieter van de Bruggen
The the upgrade action only supports the `--environment` flag for setting the target directories to search for modules to upgrade. In order to use this you would have to use environments as described here: [http://docs.puppetlabs.com/guides/environment.html#configuring-environments-on-the-puppet-master](http://docs.puppetlabs.com/guides/environment.html#configuring-environments-on-the-puppet-master). But based on your use case, it seems you would like this to work with master-less setups. We may need to add the ability to set the target directory or module path for the upgrade command. It's seems environment alone is not sufficient. Pieter, I have the following questions for UX: * Should we attempt to normailize the options between commands? * Should we add a `--target-dir` or `--modulepath` flag to the upgrade command? ---------------------------------------- Bug #14426: upgrading a module is not possible https://projects.puppetlabs.com/issues/14426#change-62567 Author: Anand Kumria Status: Needs Decision Priority: Normal Assignee: Pieter van de Bruggen Category: Target version: Affected Puppet version: 2.7.14 Keywords: Branch: I use vagrant to test my manifests before publishing, so I specify the location where modules should be installed. When attempting to upgrade a module, already installed. % puppet module install -i modules akumria-nullmailer Preparing to install into modules ... Error: Could not install module 'akumria-nullmailer' (latest) Module 'akumria-nullmailer' (v1.0.0) is already installed Use `puppet module upgrade` to install a different version Use `puppet module install --force` to re-install only this module Installation itself fails (see #14424), but I used the puppet-module gem to install this module. So, let's try an upgrade: % puppet module upgrade -i modules akumria-nullmailer Could not parse options: ambiguous option: -i Hmm, what about the longform version of this option? % puppet module upgrade --target-dir modules akumria-nullmailer Could not parse options: invalid option: --target-dir OK - perhaps it'll just figure things out magically: % puppet module upgrade akumria-nullmailer Preparing to upgrade 'akumria-nullmailer' ... Error: Could not upgrade module 'akumria-nullmailer' Module 'akumria-nullmailer' is not installed Use `puppet module install` to install this module -- 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.
