config/puppet-manifests/src/modules/platform/lib/facter/is_resctrl_supported.rb
Matt Peters 69365bb834 Integrate host configuration into configuration framework
Integrates the following host configuration into the configuration
framework:
- Host boot parameters
- CPU reservation
- Process affinity
- Memory huge page allocations

Change-Id: I2259e0e93eefd5ce5000271fa32ecaa8d13fa411
Signed-off-by: Matt Peters <matt.peters@windriver.com>
2018-06-14 16:03:52 -05:00

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