Sha256: e58b21eb7f7e8f58224d2b92d45d0fb3fd3a8cdf0f28683435d433e335b0e399

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

# 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facter-1.6.2 lib/facter/xendomains.rb
facter-1.6.1 lib/facter/xendomains.rb
facter-1.6.0 lib/facter/xendomains.rb