Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10918

puppetlabs-chocolatey : ensure returns "held" as instead of version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: chocolatey
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 5.2.0
      Puppet Version: 6.19.1
      OS Name/Version: Windows Server 2019

      If a package marked as hold the "ensure" parameter should return the version instead of "held". Otherwise at the next puppet-run ensure will be changed from "held" to "present" and then at the next puppet-run the hold will be set again.

      Manifest config

      package { 'puppet-agent': 
       mark     => 'hold',
       provider => 'chocolatey', 
      }
      

      Puppet Output

      administrator@br1-1: C:\Users\administrator [0] PS> puppet agent -t                                                                                         
      Info: Using configured environment 'win'                                                                                                       
      Info: Retrieving pluginfacts                                                                                                                                
      Info: Retrieving plugin                                                                                                                                    
      Info: Retrieving locales                                                                                                                                    
      Info: Loading facts                                                                                                                                         
      Info: Caching catalog for br1-1.dev.example.com                                                                                                   
      Info: Applying configuration version '1610533964'                                                                                                           
      Notice: /Stage[main]/Profile::Base/Package[puppet-agent]/ensure: ensure changed 'held' to 'present' (corrective)                                            
      Notice: Applied catalog in 23.09 seconds                                                                                                                   
      administrator@br1-1: C:\Users\administrator [1] PS> puppet agent -t                                                                                         
      Info: Using configured environment 'win'                                                                                                        
      Info: Retrieving pluginfacts                                                                                                                               
      Info: Retrieving plugin                                                                                                                                     
      Info: Retrieving locales                                                                                                                                    
      Info: Loading facts                                                                                                                                        
      Info: Caching catalog for br1-1.dev.example.com                                                                                                   
      Info: Applying configuration version '1610534194'                                                                                                          
      Notice: /Stage[main]/Profile::Base/Package[puppet-agent]/mark: mark changed  to 'hold' (corrective)                                                        
      Notice: Applied catalog in 21.97 seconds                                                                                                                   
      administrator@br1-1: C:\Users\administrator [1] PS> puppet agent -t                                                                                        
      Info: Using configured environment 'win'                                                                                                       
      Info: Retrieving pluginfacts                                                                                                                                
      Info: Retrieving plugin                                                                                                                                    
      Info: Retrieving locales                                                                                                                                   
      Info: Loading facts                                                                                                                                        
      Info: Caching catalog for br1-1.dev.example.com                                                                                                   
      Info: Applying configuration version '1610534233'                                                                                                          
      Notice: /Stage[main]/Profile::Base/Package[puppet-agent]/ensure: ensure changed 'held' to 'present' (corrective)                                           
      Notice: Applied catalog in 23.43 seconds   
      

      Desired Behavior:

      > puppet resource package puppet-agent
      package { 'puppet-agent': 
       ensure   => '6.19.1', 
       provider => 'chocolatey', 
      }

      Actual Behavior:

      > puppet resource package puppet-agent
      package { 'puppet-agent':                                                                                                                                  
        ensure   => 'held',                                                                                                                                       
        provider => 'chocolatey',                                                                                                                                
      } 

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            aba-rechsteiner Benjamin Rechsteiner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support