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

Windowsfeature module runs extremely slow and not idempotently with Powershell 2.0.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: powershell
    • Labels:
      None
    • Environment:
    • Template:

      Description

      When using the Voxpupuli IIS module, running the base class is incredbily slow, and not idempotent.https://github.com/voxpupuli/puppet-iis

      The IIS main class simple performs a create_resources for windowsfeature module: https://github.com/voxpupuli/puppet-windowsfeature

      So essentially it's running:

      $iis_features = [
           'Web-ISAPI-Ext',
           'Web-ISAPI-Filter',
           'Web-Static-Content',
           'Web-Http-Errors',
           'Web-Default-Doc',
           'Web-Http-Logging',
           'Web-Request-Monitor',
           'Web-Mgmt-Tools',
           'Web-Mgmt-Console',
           'Web-Stat-Compression',
           'Web-Dyn-Compression',
           'Web-Filtering',
         ]
       
         ensure_resource('windowsfeature',$iis_features)
      

      With POSH 1.0.0 module: 30 seconds for a run after the features are enabled

      with POSH 2.0.0 module: not idempotent, so the onlyif is probably not working correctly, and over 3 mins in the test I ran before I cancelled.

        Attachments

        1. new.txt
          118 kB
        2. new-next.txt
          26 kB
        3. old.txt
          54 kB
        4. old-next.txt
          28 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              peter.souter Peter Souter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support