mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add windows ps grain
This commit is contained in:
parent
aa7a52f8d0
commit
5937388634
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user