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

Puppet won't install (some) packages with ensure => held


    • Template:
      PUP Bug Template
    • Agent OS:
      Ubuntu 16.04 (i386, amd64)
    • Master OS:
      Ubuntu 16.04 (amd64)
    • Team:
      Night's Watch
    • Sprint:
      PR - Triage, NW - 2019-10-30
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      fixes the specific check for installed packages used in case of dpkg "ensure => held", that was preventing installing subpackages
    • QA Risk Assessment:
      Needs Assessment


      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 = [
      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.


          Issue Links




                • Assignee:
                  ciprian.badescu Ciprian Badescu
                  andrenth Andre Nathan
                • Votes:
                  0 Vote for this issue
                  2 Start watching this issue


                  • Created:

                    Zendesk Support