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

Puppet resource package behaves inconsistently for packages with same name from different providers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: PUP 4.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      puppet apply -e 'package { "vim": }; package { "gem-vim": name => "vim", provider => gem }'
      which vim
      gem list
      puppet resource package vim
      

      On a system using yum as the default, it appears puppet resource package vim always returns the gem version.

      On a system using apt-get as the default, it appears puppet resource package vim always returns the apt version.

      So it appears puppet resource returns the first provider encountered alphabetically. However, when using arguments such as ensure=absent and ensure=present it uses the default provider. This is somewhat surprising.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              michael.smith Michael Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support