Module: FacterUtils
- Defined in:
- app/lib/facter_utils.rb
Class Method Summary collapse
-
.bootif_mac(facts) ⇒ Object
booted interface MAC address (nil when not present).
-
.bootif_name ⇒ Object
booted interface fact name.
-
.bootif_present(facts) ⇒ Object
booted interface fact is present.
Class Method Details
.bootif_mac(facts) ⇒ Object
booted interface MAC address (nil when not present)
14 15 16 |
# File 'app/lib/facter_utils.rb', line 14 def bootif_mac(facts) facts[bootif_name] end |
.bootif_name ⇒ Object
booted interface fact name
4 5 6 |
# File 'app/lib/facter_utils.rb', line 4 def bootif_name Setting[:discovery_fact] || 'discovery_bootif' end |
.bootif_present(facts) ⇒ Object
booted interface fact is present
9 10 11 |
# File 'app/lib/facter_utils.rb', line 9 def bootif_present(facts) ! bootif_mac(facts).nil? end |