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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • chocolatey
    • 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, }
    • 2
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support