Ask Your Question

How to differentiate different windows operating systems(i.e. Win7,Windows Server 2008,2003,XP,...) using facts?

asked 2013-05-13 10:36:05 -0600

bb2013 gravatar image

$::operatingsystem is a fact to recognize the platform of a node. Is there a fact to identify different version of Windows operating system?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2013-05-13 19:32:10 -0600

I just did this- I open sourced them here.

edit flag offensive delete link more

answered 2013-05-13 13:08:11 -0600

bb2013 gravatar image

Thanks, but kernelrelease fact does not make difference between Windows 7 and Windows Server 2008 R2 since they have the same version 6.1. The same thing happens to Windows XP 64-bit and Windows Server 2003 (version 5.2).

edit flag offensive delete link more

answered 2013-05-13 11:06:08 -0600

Stefan gravatar image

I haven't used puppet on windows myself but kernelrelease should help here. See this link to map the release number to an actual operating system.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-05-13 10:36:05 -0600

Seen: 519 times

Last updated: May 13 '13