iis icon indicating copy to clipboard operation
iis copied to clipboard

Is it time to use PowerShell to configure IIS

Open tas50 opened this issue 5 years ago • 6 comments

Now that Windows 2008 R2 is EOL is it fair to say we can use PowerShell to configure IIS? It seems a lot of complexity and issues in this cookbook could be resolved by using PowerShell cmdlets.

tas50 avatar Feb 15 '20 05:02 tas50

Yes 100% I’ve wanted to rewrite this using the DSC to solve most of these problems but the decision sees to never be finalized on chefs side

On Sat, Feb 15, 2020 at 12:01 AM Tim Smith [email protected] wrote:

Now that Windows 2008 R2 is EOL is it fair to say we can use PowerShell to configure IIS? It seems a lot of complexity and issues in this cookbook could be resolved by using PowerShell cmdlets.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chef-cookbooks/iis/issues/451?email_source=notifications&email_token=AAOD5YC2PZGHV5EM7MJAZ2LRC5ZLBA5CNFSM4KVVAMO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4INX3YMA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOD5YF3AZITB2XD4GHHR7DRC5ZLBANCNFSM4KVVAMOQ .

EasyAsABC123 avatar Feb 15 '20 14:02 EasyAsABC123

Using DSC would require pulling in additional dependencies though, right?

I had started looking at what a conversion would look like with #424 a few years ago, but hadn't had the time to commit to seeing it through.

jakauppila avatar Feb 25 '20 05:02 jakauppila

Yes you need to download the DSC powershell and then install it, that isn't a huge deal. It depends on pinning the version or not, in my mind you'd download the latest at the start of every run. it means it would break for everyone but you could enable pinning via a configuration setting you pass to iis.

I looked into this a while back and had figured all that out, but they couldn't ever get their minds set...since then i've become more aware of the lack of support Chef can provide for legacy config items. I say just implement it.

EasyAsABC123 avatar Feb 25 '20 16:02 EasyAsABC123

I would want to be mindful of air-gapped environments to ensure that the installation of the modules is easy to configure from alternative sources.

That being said, I'm not sure how often the WebAdministration DSC module updates, but I'd personally be more in favor of a pure lower-level WebAdministration module configuration that does not rely on external dependencies since you would then have to manage that as well in case there are bugs and/or breaking changes in the DSC modules versions.

jakauppila avatar Feb 25 '20 17:02 jakauppila

When I used DSC resources for other chef community resources I have had negative feedback on that aspect, I think using raw powershell would be better

also as someone who has an air gaped environment DSC comes with a lot of checking where the powershell modules are just there making life easier.

xorima avatar Feb 25 '20 17:02 xorima

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] avatar Feb 25 '21 00:02 github-actions[bot]