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

When Chocolatey is not installed, configuration resources kill puppet run

    XMLWordPrintable

    Details

    • Template:
    • Acceptance Criteria:
      Hide

      Starting with a Windows box that does not have Chocolatey installed.

      Given the manifest

      class {'chocolatey':
        log_output              => true,
        choco_install_location  => 'c:\choco',
      }
       
      chocolateysource {'custom_source':
        ensure   => present,
        location => 'c:\packages',
        provider => windows,
      }
       
      chocolateyfeature {'allowEmptyChecksums':
        ensure   => enabled,
        provider => windows,
      }
       
      chocolateyconfig {'cacheLocation':
        value     => 'c:\ProgramData\choco-cache',
        provider = > windows,
      }
      

      You should get unsuitable messages and not an error stopping the Puppet run.

      Show
      Starting with a Windows box that does not have Chocolatey installed. Given the manifest class {'chocolatey': log_output => true, choco_install_location => 'c:\choco', } chocolateysource {'custom_source': ensure => present, location => 'c:\packages', provider => windows, }   chocolateyfeature {'allowEmptyChecksums': ensure => enabled, provider => windows, } chocolateyconfig {'cacheLocation': value => 'c:\ProgramData\choco-cache', provider = > windows, } You should get unsuitable messages and not an error stopping the Puppet run.
    • Team:
      Modules
    • Story Points:
      2
    • Sprint:
      Modules 2016-12-14, Modules 2016-12-28
    • QA Risk Assessment:
      Needs Assessment

      Description

      This stops the puppet run BEFORE installing chocolatey, although the chocolateysource explicitly requires Class['Chocolatey'] before applying the chocolateysource resource. If I comment out the chocolateysource resource, the run will work and install chocolatey and set the regsitry key, and then a second run will set the source, but I can't do them both in a single run.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rob Rob Reynolds
              Reporter:
              rick.renshaw Rick Renshaw
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support