Viewing File: /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyc

ó
oBú]c@s*ddlmZdefd„ƒYZdS(i(tNictConfigcBsøeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
Zd„Z
ed„ƒZed
„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZRS(sT
    Stores the Contents specified in the Customization
    Specification file.
    sCUSTOM-SCRIPT|SCRIPT-NAMEsDNS|NAMESERVER|sNETWORK|DOMAINNAMEsNETWORK|HOSTNAMEsMISC|MARKER-IDsPASSWORD|-PASSsPASSWORD|RESETsDNS|SUFFIX|sDATETIME|TIMEZONEsDATETIME|UTCcCs
||_dS(N(t_configFile(tselft
configFile((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt__init__scCs|jjtjdƒS(sReturn the hostname.N(RtgetRtHOSTNAMEtNone(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt	host_name scCs|jjtjdƒS(sReturn the domain name.N(RRRt
DOMAINNAMER(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytdomain_name%scCs|jjtjdƒS(sReturn the timezone.N(RRRtTIMEZONER(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyttimezone*scCs|jjtjdƒS(s.Retrieves whether to set time to UTC or Local.N(RRRtUTCR(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytutc/scCs|jjtjdƒS(s#Return the root password to be set.N(RRRtPASSR(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytadmin_password4scCsdg}|jjtjƒ}xBtd|dƒD]-}tjt|ƒ}|j|j|ƒq/W|S(sReturn the list of DNS servers.i(Rtget_count_with_prefixRtDNStrangetstrtappend(Rtrestcnttitkey((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytname_servers9scCsdg}|jjtjƒ}xBtd|dƒD]-}tjt|ƒ}|j|j|ƒq/W|S(s Return the list of DNS Suffixes.i(RRRtSUFFIXRRR(RRRRR((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytdns_suffixesDscCsJg}|jd}x0|jdƒD]}|jt||jƒƒq#W|S(s#Return the list of associated NICs.sNIC-CONFIG|NICSt,(RtsplitRR(RRtnicstnic((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyR Os

cCsI|jjtjdƒ}|jƒ}|dkr?tdƒ‚n|dkS(s1Retreives if the root password needs to be reset.tnotyess$ResetPassword value should be yes/no(syesR"(RRRt	RESETPASStlowert
ValueError(Rt	resetPass((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytreset_passwordYs
cCs|jjtjdƒS(sReturns marker id.N(RRRtMARKERIDR(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt	marker_idbscCs|jjtjdƒS(s,Return the name of custom (pre/post) script.N(RRRt
CUSTOM_SCRIPTR(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytcustom_script_namegs(t__name__t
__module__t__doc__R+RR
RR)RR$RRRRtpropertyR	RR
RRRRR R(R*R,(((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyRs.	
	N(R!RtobjectR(((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt<module>	s
Back to Directory File Manager