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

Chocolatey - source, config settings and features are not settable during run that installs Chocolatey

    XMLWordPrintable

    Details

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

      On a Windows machine without a prior Chocolatey install, it should successfully apply the below configuration (with some adjustments based on the package and adding other config items):

      #include chocolatey
      class {'chocolatey':
        chocolatey_download_url => 'file:///C:/vagrant/resources/packages/chocolatey.0.9.10.3.nupkg',
        use_7zip                => false,
        log_output              => true,
      } 
       
      chocolateyfeature {'logEnvironmentValues':
       ensure => enabled,
      }
       
      chocolateyconfig {'cacheLocation':
        value => 'c:\ProgramData\choco-cache',
      }
       
      file {'c:/packages':
        ensure => directory,
      } ->
       
      chocolateysource {'choco_local':
        ensure   => present,
        location => 'c:/packages',
        priority => 1,
      }
       
      package {'roundhouse':
        ensure   => '0.8.5.0',
        provider => chocolatey,
      }
       
      package {'git':
        ensure   => latest,
        provider => chocolatey,
      }
      

      Show
      On a Windows machine without a prior Chocolatey install, it should successfully apply the below configuration (with some adjustments based on the package and adding other config items): #include chocolatey class {'chocolatey': chocolatey_download_url => 'file:///C:/vagrant/resources/packages/chocolatey.0.9.10.3.nupkg', use_7zip => false, log_output => true, } chocolateyfeature {'logEnvironmentValues': ensure => enabled, }   chocolateyconfig {'cacheLocation': value => 'c:\ProgramData\choco-cache', }   file {'c:/packages': ensure => directory, } ->   chocolateysource {'choco_local': ensure => present, location => 'c:/packages', priority => 1, } package {'roundhouse': ensure => '0.8.5.0', provider => chocolatey, } package {'git': ensure => latest, provider => chocolatey, }
    • Epic Link:
    • Story Points:
      2
    • Sprint:
      Windows 2016-08-10

      Description

      While testing MODULES-3641, we determined that the configuration file cannot be found after suitability is determined. This means source locations, features, and any configuration from being set during the same convergence that installs Chocolatey which can affect package installs. This is considered a major concern and should be addressed as soon as possible.

      Instead of a successful run, you receive this message instead:

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              erick Erick Banks
              Reporter:
              rob Rob Reynolds
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support