Ask Your Question
2

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

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

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
1

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

I just did this- I open sourced them here.

https://github.com/rismoney/forthewin/tree/master/facter

edit flag offensive delete link more
0

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

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
0

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

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

Stats

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

Seen: 488 times

Last updated: May 13 '13