Add windows ps grain

This commit is contained in:
Thomas S Hatch 2012-03-05 21:41:52 -07:00
parent aa7a52f8d0
commit 5937388634

View File

@ -257,6 +257,8 @@ def _ps(osdata):
bsd_choices = ('FreeBSD', 'NetBSD', 'OpenBSD', 'Darwin')
if osdata['os'] in bsd_choices:
grains['ps'] = 'ps auxwww'
elif osdata['os'] = 'Windows':
grains['ps'] = 'tasklist.exe'
elif osdata.get('virtual', '') == 'openvzhn':
grains['ps'] = 'vzps -E 0 -efH|cut -b 6-'
else: