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

Apt package provider does not mark managed packages as manual

    XMLWordPrintable

Details

    • Night's Watch
    • 1
    • NW - 2020-07-21
    • Bug Fix
    • Hide
      The apt package provider can now mark packages as manual.
      Before this change, if a package got removed, some packages may also got marked for deletion if nothing depends on them any longer.
      Show
      The apt package provider can now mark packages as manual. Before this change, if a package got removed, some packages may also got marked for deletion if nothing depends on them any longer.

    Description

      The apt package provider does not mark packages as manual. This means that if a package gets removed, some packages may get marked for deletion if nothing depends on them any longer - even though they should be installed according to Puppet.

      Example:
      Puppet purges a package depending on `ethtool`.
      Nothing depends on `ethtool` any longer, so it gets marked for deletion, but is still installed.
      Puppet processes 'package

      {'ethtool': ensure -> installed}

      ' and does nothing, since it's already installed
      If something or someone then runs `apt-get -y autoremove` the package ethtool will then be removed (in my case puppet does this later in the run).

      This specific example makes it impossible for Puppet to rectify it in a later run, since the ethtool package is required to bring up the network interface.

      Attachments

        Issue Links

          Activity

            People

              gheorghe.popescu Gheorghe Popescu
              Pitje Peter Kroon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support