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

chocolatey : Regression reintroducing MODULES-3677

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: chocolatey
    • Labels:
    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      Puppet runs don't fail if a chocolatey config file is not present. The module's tests include a case checking for this issue to avoid future regressions.

      Show
      Puppet runs don't fail if a chocolatey config file is not present. The module's tests include a case checking for this issue to avoid future regressions.
    • Team:
      Modules
    • Method Found:
      Customer Feedback
    • CS Priority:
      Reviewed
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 5.1.1; testing to determine whether this affects all module versions since 4.0.0
      Puppet Version: N/A; reported with 6.17.0
      OS Name/Version: Windows; reported with Server 2019

      MODULES-3677: "When Chocolatey has been installed and not yet run, the config file doesn't exist. So chocolateyconfig, chocolateyfeature, and chocolateysource will all fail until the config file exists."

      This was resolved in module 2.0.0: https://github.com/puppetlabs/puppetlabs-chocolatey/pull/37

      However, a rewrite of chocolatey_common.rb in 4.0.0/FM-8253 does not appear to have re-implemented the check: https://github.com/puppetlabs/puppetlabs-chocolatey/commit/7024bc8066acd0070819d44956fea1028d739ce7

      A user reported the behavior occurring once again while attempting to install and configure Chocolatey in a single Puppet catalog application using the chocolatey module.

      Desired Behavior:

      When applying a choco resource before Chocolatey has been run on a node, the module will run choco to ensure a choco config file exists.

      Actual Behavior:

      When applying a choco resource before Chocolatey has been run on a node, the Puppet run fails with an error.

      Failed to apply catalog: Config file not found for Chocolatey. Please make sure you have Chocolatey installed. 

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              daiana.mezdrea Daiana
              Reporter:
              garrett.guillotte Garrett Guillotte
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support