summaryrefslogtreecommitdiffstats
path: root/lib/facter/id.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/facter/id.rb')
-rw-r--r--lib/facter/id.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/facter/id.rb b/lib/facter/id.rb
index 1c42284..cc0a0a6 100644
--- a/lib/facter/id.rb
+++ b/lib/facter/id.rb
@@ -1,3 +1,16 @@
+# Fact: id
+#
+# Purpose: Internal fact used to specity the program to return the currently
+# running user id.
+#
+# Resolution:
+# On all Unixes bar Solaris, just returns "whoami".
+# On Solaris, parses the output of the "id" command to grab the username, as
+# Solaris doesn't have the whoami command.
+#
+# Caveats:
+#
+
Facter.add(:id) do
setcode "whoami"
end