Skip to content

Instantly share code, notes, and snippets.

@blackknight36
Created April 7, 2016 13:50
Show Gist options
  • Save blackknight36/37161d21ff6423a968f975cab6a4cf34 to your computer and use it in GitHub Desktop.
Save blackknight36/37161d21ff6423a968f975cab6a4cf34 to your computer and use it in GitHub Desktop.
custom environment fact for facter
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