Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: powershell
-
Labels:None
-
Template:customfield_10700 133270
-
Epic Link:
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
Issue Links
- relates to
-
MODULES-3406 Powershell - Optimize parsing time per PowerShell call
-
- Resolved
-