Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Plain Text by prime ( 10 years ago )
import re
def grains():
match = re.match(r'^[a-zA-Z\-_]([0-1]+)([a-zA-Z]+)$', __grains__['host'])
return {
'host_no': match.group(1),
'dc': match.group(2)
}
Revise this Paste