puppetlabs/facter-ng

View on GitHub
custom_facts/my_custom_fact.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

Facter.add(:my_custom_fact) do
  has_weight(10_000)
  setcode do
    # 'my_custom_fact'
    Facter.value('os')
  end
end