Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1197

Add "downgrade" flag to package provider base class (boolean)

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
    • Template:

      Description

      Some package providers can downgrade (yum, for example). However it's not always safe to downgrade every package, so it would be nice to be able to say, per package, whether downgrading is enabled or not. So if I could do something like this:

      package

      { "foo": provider => yum, ensure => "1.2.3", downgrade => false }

      package

      { "bar": provider => yum, ensure => "4.5.6", downgrade => true }

      ... then when foo was at version 1.3.2, it would be left alone; but when "bar" was at version 5.3.2, it would be reverted to 4.5.6.

      It seems like this is something that almost any "versionable" package provider could implement.

      I can submit a patch for this on github, I'm just gauging interest before I send the patch in blindly. Thanks.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                redmine.exporter redmine.exporter
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: