Sha256: e580392aee3f3aefa28edd25127e04ac45a92ed039a765cf52db0c40bb6ea150
Contents?: true
Size: 386 Bytes
Versions: 78
Compression:
Stored size: 386 Bytes
Contents
module FacterUtils class << self # booted interface fact name def bootif_name Setting[:discovery_fact] || 'discovery_bootif' end # booted interface fact is present def bootif_present(facts) ! bootif_mac(facts).nil? end # booted interface MAC address (nil when not present) def bootif_mac(facts) facts[bootif_name] end end end
Version data entries
78 entries across 78 versions & 1 rubygems