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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • PUP 3.4.3
    • None
    • Modules
    • 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

            People

              andy Andrew Parker
              cwells Cliff Wells
              Kurt Wall Kurt Wall
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support