Created
August 27, 2012 22:16
-
-
Save glarizza/3492838 to your computer and use it in GitHub Desktop.
Facter Facts
This file contains hidden or 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
| ## 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