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

Installing multiple packages with dnf results in puppet inserting "install" before each package

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.3.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Fedora 22, x86_64

    • Template:
    • Epic Link:
    • Story Points:
      2
    • Sprint:
      Client 2015-10-28
    • Release Notes:
      Not Needed
    • Release Notes Summary:
      This issue was reported against a contributor's patch, not our implementation. Thus, it was never actually an issue for us.

      Description

      Installing multiple packages like this:

      package { [ 'emacs-nox', 'net-tools', 'psmisc', 'telnet', 'wget' ]:
        ensure => installed
      }

      Results in this error message:
      Execution of '/usr/bin/dnf -d 0 -e 1 -y install emacs-nox install psmisc install telnet install wget install iptables-services install zabbix-agent' returned 1: Error: no package matched: install
      As you can see, puppet somehow inserted the keyword "install" not just once, but for every single package. As a result, dnf tries to install "install", which it can't.

      I can't work around this issue by declaring separate package-classes, because puppet auto-combines them this way – as you can see, it added two other packages that are declared elsewhere in the manifest to the same command.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kylo Kylo Ginsberg
                Reporter:
                erikl Erik L.
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support