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

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Do
    • PUP 4.0.0
    • None
    • None
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support