Issue #11832 has been updated by Matt Robinson.

Here's further clarification of upgrade.  We should be able to reuse most of 
the install code, maybe just need to pass a few extra options to deal with 
--force behaving slightly differently between the two commands.

<pre>
`puppet module upgrade`

The Story: "Upgrade lets me change the version of a module, without breaking 
the system."

Module not installed
  => Installed as if not installed
Module is installed
  Specified version installed
    No `--force` flag
      => Upgrade fails
    Provided `--force` flag
      => Upgraded as if older version
  Different version installed
    Installed module has no local changes
      Module has no dependencies
        => Installed module is overwritten by new module
      Module has dependencies
        Dependencies not installed
          => Installed module is overwritten by new module
          => All dependencies are installed alongside the module (same part of 
modulepath)
        Some dependencies installed (meeting requirements)
          => Installed module is overwritten by new module
          => Uninstalled dependencies are installed alongside the module
        Some dependencies installed (not meeting requirements)
          Dependency requirements overlap
            => Installed module is overwritten by new module
            => Uninstalled dependencies are installed alongside the module
            => Installed dependencies get upgraded
          Dependency requirements do not overlap
            => Upgrade fails
    Installed module has local changes
      No `--force` flag
        => Upgrade fails
      Provided `--force` flag
        => Upgraded as if no local changes

Other Nodes:

* Default version is `latest` / `best`.
</pre>
----------------------------------------
Feature #11832: Puppet Module Tool (PMT) should have a upgrade command
https://projects.puppetlabs.com/issues/11832#change-54575

Author: Kelsey Hightower
Status: Accepted
Priority: Normal
Assignee: Kelsey Hightower
Category: 
Target version: 2.7.x
Affected Puppet version: 
Keywords: 
Branch: 
https://github.com/kelseyhightower/puppet/tree/ticket/2.7.x/11832_PMT_should_have_an_upgrade_command


The PMT should have an upgrade command that exhibits behavior as defined in the 
UX design doc located here: [UX Design 
Doc](https://github.com/puppetlabs/ux/tree/geordi/geordi)


-- 
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