voxpupuli / puppet-windowsfeature

Library that uses ServerAdministration api that comes with Windows Server 2008 and Windows Server 2012 to add / remove windows features
https://forge.puppet.com/puppet/windowsfeature
MIT License
30 stars 49 forks source link

Added ability to pass multiple features in feature_name #3

Closed cyberious closed 11 years ago

cyberious commented 11 years ago

Add feature to have an array of objects to check against instead of one at a time. THis allows for better chaining of events while utilizing the powershell features ability to use an array and query once rather than multiple times.

stack72 commented 11 years ago

Hey @cyberious, if I see this correctly then I can specify the following

class my_windows_features { windowsfeature { 'Web-Asp-Net,'Web-Net-Ext'': } }

Correct?

cyberious commented 11 years ago

I use it in this method as to easly subscribe to Windowsfeature['IIS'] I have not tested it with the way that you have listed above.

windowsfeature{'IIS': feature_name => ['Web-Server', 'Web-WebServer', 'Web-Asp-Net45', 'Web-ISAPI-Ext', 'Web-ISAPI-Filter', 'NET-Framework-45-ASPNET', 'WAS-NET-Environment', 'Web-Http-Redirect', 'Web-Filtering', 'Web-Mgmt-Console', 'Web-Mgmt-Tools'], }

opentable-devops commented 11 years ago

Ok, this makes sense :) Ill merge it now

On Wednesday, 30 October 2013 at 12:33, Travis F wrote:

I use it in this method as to easly subscribe to Windowsfeature['IIS'] I have not tested it with the way that you have listed above.
windowsfeature{'IIS': feature_name => ['Web-Server', 'Web-WebServer', 'Web-Asp-Net45', 'Web-ISAPI-Ext', 'Web-ISAPI-Filter', 'NET-Framework-45-ASPNET', 'WAS-NET-Environment', 'Web-Http-Redirect', 'Web-Filtering', 'Web-Mgmt-Console', 'Web-Mgmt-Tools'], }

— Reply to this email directly or view it on GitHub (https://github.com/opentable/puppet-windowsfeature/pull/3#issuecomment-27431266).