Guest User

Untitled

a guest
Jun 22nd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # Test if we are an alix
  2. # Nico <nico@gcu.info>
  3.  
  4. Facter.add("alix") do
  5. confine :kernel => :openbsd
  6.  
  7. result = "classic"
  8. setcode do
  9. if Facter.value("hardwareisa") =~ /Geode\(TM\)/i then
  10. result = "alix"
  11. end
  12. # Returns the value
  13. result
  14. end
  15. end
Add Comment
Please, Sign In to add comment