Sha256: 28d24fd8e0dbe2c6e491b8e9340c0f3b356564c9b950b097c4ce0cd7f0ee8fb4
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
# Fact: ps # # Purpose: Internal fact for what to use to list all processes. Used by # Service{} type in Puppet. # # Resolution: # Assumes "ps -ef" for all operating systems other than BSD derivatives, where # it uses "ps auxwww" # # Caveats: # Facter.add(:ps) do setcode do 'ps -ef' end end Facter.add(:ps) do confine :operatingsystem => %w{FreeBSD NetBSD OpenBSD Darwin} setcode do 'ps auxwww' end end Facter.add(:ps) do confine :operatingsystem => :windows setcode do 'tasklist.exe' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facter-1.6.1 | lib/facter/ps.rb |