Current File : //usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyo |
�
oB�]c @ s* d d l m Z d e f d � � YZ d S( i ( t Nict Configc B s� e Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z d
Z d � Z
e d � � Z e d
� � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z RS( sT
Stores the Contents specified in the Customization
Specification file.
s CUSTOM-SCRIPT|SCRIPT-NAMEs DNS|NAMESERVER|s NETWORK|DOMAINNAMEs NETWORK|HOSTNAMEs MISC|MARKER-IDs PASSWORD|-PASSs PASSWORD|RESETs DNS|SUFFIX|s DATETIME|TIMEZONEs DATETIME|UTCc C s
| | _ d S( N( t _configFile( t selft
configFile( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt __init__ s c C s | j j t j d � S( s Return the hostname.N( R t getR t HOSTNAMEt None( R ( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt host_name s c C s | j j t j d � S( s Return the domain name.N( R R R t
DOMAINNAMER ( R ( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt domain_name% s c C s | j j t j d � S( s Return the timezone.N( R R R t TIMEZONER ( R ( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt timezone* s c C s | j j t j d � S( s. Retrieves whether to set time to UTC or Local.N( R R R t UTCR ( R ( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt utc/ s c C s | j j t j d � S( s# Return the root password to be set.N( R R R t PASSR ( R ( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt admin_password4 s c C sd g } | j j t j � } xB t d | d � D]- } t j t | � } | j | j | � q/ W| S( s Return the list of DNS servers.i ( R t get_count_with_prefixR t DNSt ranget strt append( R t rest cntt it key( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt name_servers9 s c C sd g } | j j t j � } xB t d | d � D]- } t j t | � } | j | j | � q/ W| S( s Return the list of DNS Suffixes.i ( R R R t SUFFIXR R R ( R R R R R ( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt dns_suffixesD s c C sJ g } | j d } x0 | j d � D] } | j t | | j � � q# W| S( s# Return the list of associated NICs.s NIC-CONFIG|NICSt ,( R t splitR R ( R R t nicst nic( ( sO /usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyR O s
c C sI | j j t j d � } | j � } | d k r? t d � � n | d k S( s1 Retreives if the root password needs to be reset.t not yess$ ResetPassword value should be yes/no( s yesR"