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

apt provider does not work with local packages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 7.4.0, PUP 6.21.0
    • Component/s: None
    • Labels:
    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      NW - 2021-02-03
    • Method Found:
      Needs Assessment
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Hide
      after this commit apt package provider allows you to install packages from local file using source parameter:
      ```
      package { 'helloworld':
          source => '/tmp/helloworld_1.0-1.deb'
          ensure => installed,
      }
      ```
      Show
      after this commit apt package provider allows you to install packages from local file using source parameter: ``` package { 'helloworld':     source => '/tmp/helloworld_1.0-1.deb'     ensure => installed, } ```
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.19
      Puppet Server Version: n/a
      OS Name/Version: Debian/Ubuntu

      PUP-6631 indirectly broke the ability to manage local packages with the apt provider. This case appears to be supported by apt, so we should aim to fix this regression.

      Desired Behavior:

      Applying a resource like the following should work:

      package { '/path/to/package.deb': 
          ensure => installed,
      }
      

      Actual Behavior:

      Applying the above resource results in the package being installed, but errors on the execution of apt-mark, marking the run as failed:

      Could not evaluate: Execution of '/usr/bin/apt-mark manual /path/to/package.deb' returned 100: E: Unable to locate package /path/to/package.deb
      

      Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ciprian.badescu Ciprian Badescu
              Reporter:
              gabriel.nagy Gabriel Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support