Created
November 1, 2011 21:52
-
-
Save fluxrad/1332040 to your computer and use it in GitHub Desktop.
Facter fact to test for a user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'facter' | |
Facter.add("some_user") do | |
setcode do | |
system "/usr/bin/id someuser >/dev/null 2>&1" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment