Sha256: 05700581d831aadda9d3d431eb0a088301c6fd9f544c30bfc5f02d2c3e4b2545
Contents?: true
Size: 521 Bytes
Versions: 38
Compression:
Stored size: 521 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 DragonFly} setcode do 'ps auxwww' end end Facter.add(:ps) do confine :operatingsystem => :windows setcode do 'tasklist.exe' end end
Version data entries
38 entries across 38 versions & 3 rubygems