config/puppet-manifests/src/modules/platform/lib/facter/is_resctrl_supported.rb

7 lines
156 B
Ruby

# Returns true if Resource Control is supported on this node
Facter.add("is_resctrl_supported") do
setcode do
Dir.exist?('/sys/fs/resctrl')
end
end