Created
April 7, 2016 13:50
-
-
Save blackknight36/37161d21ff6423a968f975cab6a4cf34 to your computer and use it in GitHub Desktop.
custom environment fact for facter
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
Facter.add("environment") do | |
setcode do | |
Facter::Util::Resolution.exec('/bin/cat /usr/local/etc/environment') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment