Issue #14426 has been updated by Pieter van de Bruggen.

As mentioned in #14428:

`install`, `list`, `uninstall`, and `upgrade` all respect the `--modulepath` 
option for specifying module locations (and this *should* be documented), and 
this is the preferred way to specify a standalone installation directory.

`--target-dir` (`-i`) is meant for when you want to install into a specific 
directory, but resolve dependencies against the modulepath.  It doesn't apply 
to anything except install.
----------------------------------------
Bug #14426: upgrading a module is not possible
https://projects.puppetlabs.com/issues/14426#change-62574

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.

Reply via email to