Created
November 7, 2013 03:37
-
-
Save rbirnie/7348574 to your computer and use it in GitHub Desktop.
Override macaddress fact to always be eth0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Eth0 is better than alphabetical. | |
require 'facter' | |
Facter.add(:macaddress) do | |
has_weight 10 | |
setcode do | |
`facter macaddress_eth0`.strip | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment