Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created August 27, 2012 22:16
Show Gist options
  • Save glarizza/3492838 to your computer and use it in GitHub Desktop.
Save glarizza/3492838 to your computer and use it in GitHub Desktop.
Facter Facts
## Simple Shell Fact
Facter.add('role') do
setcode('cat /etc/role')
end
## More complex Ruby fact
Facter.add('ruby_stuff') do
setcode do
## Ruby work here
## Return the value of the fact
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment