id.rb

Path: lib/facter/id.rb
Last Update: Tue Apr 10 20:03:28 -0400 2012

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:

[Validate]