Sha256: bbe428fa60ea6cf5039f4868f4e17321ef58a9275e9f8a435eb953fa380f198c
Contents?: true
Size: 338 Bytes
Versions: 4
Compression:
Stored size: 338 Bytes
Contents
Facter.add(:id) do confine :operatingsystem => %w{Linux Fedora RedHat CentOS SuSE SLES Debian Ubuntu Gentoo AIX OEL OVS} setcode "whoami" end Facter.add(:id) do confine :operatingsystem => %w{Solaris} setcode do if %x{id} =~ /^uid=\d+\((\S+)\)/ $1 else nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
facter-1.5.8 | lib/facter/id.rb |
facter-1.5.7 | lib/facter/id.rb |
facter-1.5.6 | lib/facter/id.rb |
facter-1.5.5 | lib/facter/id.rb |