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

Chocolatey provider install fails on kernel >= 10 with use_7zip => false

    XMLWordPrintable

Details

    • Hide

      Given the following:

      • A Windows box with PowerShell v5 anniversary edition (which can be found with a Windows Server 2016 box)
      • Chocolatey is not installed

      When:

      • Installing Chocolatey using the puppetlabs-chocolatey module using:

      include chocolatey
      

      Then:

      • it should not error
      Show
      Given the following: A Windows box with PowerShell v5 anniversary edition (which can be found with a Windows Server 2016 box) Chocolatey is not installed When: Installing Chocolatey using the puppetlabs-chocolatey module using: include chocolatey Then: it should not error
    • Modules
    • 2
    • Modules 2016-12-28
    • Manual

    Description

      At least on Windows 10, chocolatey fails to install the provider when:

      • Agent / Puppet is run in a non-interactive session and
      • Windows native unzip is used

      Workaround:
      use_7zip => false

      Notes:
      This issue seems to rise because the com object used for [unzip](https://github.com/puppetlabs/puppetlabs-chocolatey/blob/master/templates/InstallChocolatey.ps1.erb#L103)
      We should rather use a more 'modern' Add-Type -AssemblyName System.IO.Compression.FileSystem

      Attachments

        Issue Links

          Activity

            People

              wilson Wilson McCoubrey
              helge Daniel Helgenberger
              Erick Banks Erick Banks
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support