Created
November 8, 2010 17:43
-
-
Save manoot/667991 to your computer and use it in GitHub Desktop.
This file contains 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
#####Libraries default.rb | |
module mac_address | |
def generate_mac_address | |
#"00:16:3E:%X%X:%X%X:%X%X" % Array.new(6) { rand(16) } | |
end | |
extend self | |
end | |
#####Attributes defualt.rb | |
default.xenserver[:macaddress] = "<% @mac_address %>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment