chef / cookstyle

A linting tool that helps you to write better Chef Infra cookbooks and InSpec profiles by detecting and automatically correcting style, syntax, and logic mistakes in your code.
Apache License 2.0
109 stars 54 forks source link

Detect the usage of the windows_dns resource #273

Open tas50 opened 5 years ago

tas50 commented 5 years ago

What category of cop is this?:

Please try to select as few as possible.

Describe the new cop:

We have windows_dns_record resource built into Chef Infra Client 15 now

What it would trigger on:

windows_dns 'foo' do
 bar 'baz'
end
btm commented 5 years ago

https://devblogs.microsoft.com/powershell/configuration-in-a-devops-world-windows-powershell-desired-state-configuration/

If you’re running Windows 7, Windows Server 2008 R2, or Windows Server 2012, install Windows Management Framework 4.0 to get the benefits of DSC

This implies that 2012 (pre-R2) also doesn't have DSC by default, is that right?