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

Package resources should use $title rather than $name to determine uniqueness

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.4.3
    • Fix Version/s: None
    • Component/s: Modules
    • Template:
    • CS Priority:
      Reviewed

      Description

      package { 'supervisor-rpm-that-is-old':
          name => 'supervisor',
          ensure => 'absent'
      }
       
      package { 'supervisor-from-pypi-that-is-new':
         name => 'supervisor',
         ensure => 'present',
         provider => 'pip'
      }
      

      Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Package[supervisor] is already declared [
      [trimmed]
      

      Because Puppet appears to be using $name rather than $title to determine whether a resource has already been declared, it makes it impossible to do rather obvious operations without resorting to Exec.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  andy Andrew Parker
                  Reporter:
                  cwells Cliff Wells
                  QA Contact:
                  Kurt Wall
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: