summaryrefslogtreecommitdiffstats
path: root/lib/facter/ps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/facter/ps.rb')
-rw-r--r--lib/facter/ps.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/facter/ps.rb b/lib/facter/ps.rb
index e7bcdae..ef803fb 100644
--- a/lib/facter/ps.rb
+++ b/lib/facter/ps.rb
@@ -1,3 +1,15 @@
+# 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