Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How do I check for the version of Windows?

$
0
0
I have a class of Windows machines that includes Windows 10 desktops, Windows Server 2008 and WIndows Server 2012 machines. I'd like my multi-part manifests to run against every Windows machines. I would like subparts to include modules that should be ran against certain versions of Windows but not other versions of Windows. That is, I want a given module in a manifest to run against Windows 10 desktops, a different portion of the manifest to run against Windows Server 2012 machines exclusive of Windows other servers/desktops. How do I do this without changing the class of servers? I'd like to keep one long manifest.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>