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

puppet resource package command fails to list all packages

    XMLWordPrintable

Details

    • Hide

      The puppet resource package command lists all packages.

      Show
      The puppet resource package command lists all packages.
    • Night's Watch
    • Needs Assessment

    Description

      Issue:

      The puppet resource package command used to list packages de-duplicates identically named resources managed by multiple providers.

      This results in an incomplete list of installed packages, including in the Package Inspector feature released in Puppet Enterprise 2017.2.

      Test:

      # SYSTEM RUBY
       
      [root@pe-20172nightly-master ~]# gem list
       
      *** LOCAL GEMS ***
       
      geocoder (1.4.3)
      trollop (2.0)
       
      # PUPPET RUBY
       
      [root@pe-2017-master ~]# /opt/puppetlabs/puppet/bin/gem list
       
      *** LOCAL GEMS ***
       
      geocoder (1.3.3)
      typhoeus (1.0.2)
      

      Result:

      [root@pe-2017-master ~]# puppet resource package --param provider
      package { 'geocoder':
        ensure   => ['1.4.3'],
        provider => 'gem',
      }
      package { 'trollop':
        ensure   => ['2.0'],
        provider => 'gem',
      }
      package { 'typhoeus':
        ensure   => ['1.0.2'],
        provider => 'puppet_gem',
      }
      

      typhoeus gem is only installed in puppet ruby and is listed
      trollop gem is only installed in system ruby and is listed
      geocoder gem is installed in puppet and system ruby and only system ruby is listed

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tom.kishel Thomas Kishel
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support