Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
PUP 6.9.0
-
Ubuntu 16.04 (amd64)
-
Night's Watch
-
PR - Triage, NW - 2019-10-30
-
Needs Assessment
-
Bug Fix
-
fixes the specific check for installed packages used in case of dpkg "ensure => held", that was preventing installing subpackages
-
Needs Assessment
Description
Puppet Version: 6.9.0-1bionic
Puppet Server Version: 6.2.0-1bionic
OS Name/Version: Ubuntu 18.04
I have postfix and installed and held:
package { 'postfix': |
ensure => 'held', |
}
|
# dpkg -l | grep postfix
|
hi postfix 3.3.0-1ubuntu0.2 amd64 High-performance mail transport agent |
Now I'm trying to install a few sub-packages, also as held:
$packages = [
|
'postfix-pcre', |
'postfix-mysql', |
]
|
package { $packages: |
ensure => 'held', |
}
|
When running puppet, the following messages are displayed:
Notice: /Stage[main]/Main/Package[postfix-pcre]/ensure: created
Notice: /Stage[main]/Main/Package[postfix-mysql]/ensure: created
Desired Behavior:
**Packages postfix-pcre and postfix-mysql should be installed and set to "held".
Actual Behavior:
Neither package is installed. The puppet resource command results in a package resource with ensure set to "purged":
# puppet resource package postfix-mysql ensure=held |
Notice: /Package[postfix-mysql]/ensure: created
|
package { 'postfix-mysql': |
ensure => 'purged', |
provider => 'apt', |
}
|
This seems to only affect sub-packages like in this Postfix example; I have other packages set to ensure => held which have been installed properly.
Attachments
Issue Links
- relates to
-
PUP-1537 Dpkg package provider misbehaving for held package with specific version
-
- Resolved
-