Skip to content

Instantly share code, notes, and snippets.

@fluxrad
Created November 1, 2011 21:52
Show Gist options
  • Save fluxrad/1332040 to your computer and use it in GitHub Desktop.
Save fluxrad/1332040 to your computer and use it in GitHub Desktop.
Facter fact to test for a user
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