Details
-
Bug
-
Status: Accepted
-
Normal
-
Resolution: Unresolved
-
PUP 4.9.4
-
None
-
None
-
Linux and Windows
-
-
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