summaryrefslogtreecommitdiffstats
path: root/lib/facter/xendomains.rb
blob: 972ac90df956c3cad08a646d44ffbbbeec14eb14 (plain)
1
2
3
4
5
6
7
8
9
10
require 'facter/util/xendomains'

Facter.add("xendomains") do
  confine :kernel => %w{Linux FreeBSD OpenBSD SunOS}
  confine :virtual => 'xen0'

  setcode do
    Facter::Util::Xendomains.get_domains
  end
end