Issue #12384 has been updated by Pieter van de Bruggen.
Preconditions:
/etc/puppet/modules/foo -> arthur-foo
/usr/share/puppet/modules/foo -> bea-foo
`puppet module uninstall foo` is expected to fail; there is no module named
"foo" installed. The failure should suggest both `arthur-foo` and `bea-foo` as
possible intentions.
`puppet module uninstall arthur-foo` should remove `/etc/puppet/modules/foo`.
`puppet module uninstall bea-foo` should remove `/usr/share/puppet/modules/foo`.
`puppet module upgrade` should behave similarly.
---
Preconditions:
/etc/puppet/modules/foo -> arthur-foo
/usr/share/puppet/modules/foo -> arthur-foo
`puppet module uninstall foo` is expected to fail; there is no module named
"foo" installed. The failure should suggest `arthur-foo` as a possible
intention.
`puppet module uninstall arthur-foo` should remove both
`/etc/puppet/modules/foo` and `/usr/share/puppet/modules/foo`.
`puppet module upgrade foo` should behave like `puppet module uninstall foo`.
`puppet module upgrade arthur-foo` should upgrade `/etc/puppet/modules/foo`.
---
Preconditions:
/etc/puppet/modules/foo -> foo
/usr/share/puppet/modules/foo -> arthur-foo
`puppet module uninstall foo` should remove `/etc/puppet/modules/foo`.
`puppet module uninstall arthur-foo` should remove
`/usr/share/puppet/modules/foo`.
`puppet module upgrade foo` should fail, indicating that the module `foo`
cannot be upgraded.
`puppet module upgrade arthur-foo` should upgrade
`/usr/share/puppet/modules/foo`.
----------------------------------------
Feature #12384: What's the correct behavior for module actions when dealing
with multiple directories in a modulepath
https://projects.puppetlabs.com/issues/12384#change-54587
Author: Matt Robinson
Status: Needs More Information
Priority: Normal
Assignee: Pieter van de Bruggen
Category: modules
Target version: 2.7.x
Affected Puppet version:
Keywords: geordi
Branch:
If you run `puppet module uninstall foo` and foo is in multiple directories of
the modulepath, should it uninstall both, or stop after uninstalling the first
one? This question is also affected by the decision for how we deal with usage
of the forge name vs the directory name for a module in #12381, and also
applies to the upgrade action. If you have foo from different authors in
different directories, then it may be that just specifying foo is insufficient
to uninstall either and you need to say author1/foo.
--
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.