Skip to content

Instantly share code, notes, and snippets.

@blackknight36
Created June 14, 2017 12:48
Show Gist options
  • Save blackknight36/5dfa8869eb5c01c107efd08119aab2cf to your computer and use it in GitHub Desktop.
Save blackknight36/5dfa8869eb5c01c107efd08119aab2cf to your computer and use it in GitHub Desktop.
Facter.add("is_ovirt_guest") do
setcode do
File.read("/sys/devices/virtual/dmi/id/product_name") =~ /oVirt Node/ rescue false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment