blob: 5bcde058793c045b8d8a02e1d46487a021445895 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Fact: xendomains
#
# Purpose: Return the list of Xen domains on the Dom0.
#
# Resolution:
# On a Xen Dom0 host, return a list of Xen domains using the 'util/xendomains'
# library.
#
# Caveats:
#
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
|