|
Tested in puppet-agent 1.5.0.60.g4aac788
Appears to work on EL7, but on Windows 2012 R2 it returns false for a local administrator user
EL7 -
-bash-4.2$ facter identity
|
{
|
gid => 1000,
|
group => "james",
|
privileged => false,
|
uid => 1000,
|
user => "james"
|
}
|
-bash-4.2$ exit
|
logout
|
[root@g3pilx4z9x05qn3 ~]# facter identity
|
{
|
gid => 0,
|
group => "root",
|
privileged => true,
|
uid => 0,
|
user => "root"
|
}
|
Windows 2012 R2 Administrator:
C:\Program Files\Puppet Labs\Puppet\bin>facter identity
|
{
|
privileged => true,
|
user => "C1RM6O1N75J8CNU\Administrator"
|
}
|
Windows 2012 R2 local admin user:
C:\Program Files\Puppet Labs\Puppet\bin>facter identity
|
{
|
privileged => false,
|
user => "C1RM6O1N75J8CNU\james_admin"
|
}
|
Windows 2012 R2 local non-admin user:
C:\Program Files\Puppet Labs\Puppet\bin>facter identity
|
{
|
privileged => false,
|
user => "C1RM6O1N75J8CNU\james_standard"
|
}
|
|