ó
½-'Nc           @   sÆ  d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z	 d d l
 m
 Z
 d d l m Z d d l m Z m Z d d l m Z d d l m Z d d	 l m Z m Z d d
 l m Z d d l m Z d d l m Z d d l m Z d e f d „  ƒ  YZ  d e  f d „  ƒ  YZ! d e" d „ Z# d „  Z$ d e f d „  ƒ  YZ% d e& f d „  ƒ  YZ' d „  Z( d „  Z) d „  Z* d „  Z+ e, d „ Z- d „  Z. d „  Z/ d S(    s¤   Interactive configuration support for Landscape.

This module, and specifically L{LandscapeSetupScript}, implements the support
for the C{landscape-config} script.
iÿÿÿÿN(   t   ConfigParsert   Error(   t   StringIO(   t   is_valid_tag(   t
   SysVConfigt   ProcessError(   t   MethodCallError(   t   gather_results(   t   fetcht
   FetchError(   t   TwistedReactor(   t   InvalidCredentialsError(   t   BrokerConfiguration(   t   RemoteBrokerConnectort   ConfigurationErrorc           B   s   e  Z d  Z RS(   s6   Raised when required configuration values are missing.(   t   __name__t
   __module__t   __doc__(    (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyR      s   t   ImportOptionErrorc           B   s   e  Z d  Z RS(   s?   Raised when there are issues with handling the --import option.(   R   R   R   (    (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyR       s   s   
c         C   s:   | r t  j } n	 t  j } | j |  | ƒ | j ƒ  d  S(   N(   t   syst   stderrt   stdoutt   writet   flush(   t   textt   endt   errort   stream(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt
   print_text$   s
    	c         C   sÂ   |  d k	 r¾ g  |  j d ƒ D] } | j ƒ  ^ q } d | k rq t | ƒ d k ra t d ƒ ‚ n  | j d ƒ n  g  } x@ | D]8 } y t j | ƒ Wq~ t k
 rµ | j	 | ƒ q~ Xq~ W| Sd S(   sŽ   
    Process a string with a list of comma separated usernames, this returns
    any usernames not known to the underlying user database.
    t   ,t   ALLi   s$   Extra users specified with ALL usersN(
   t   Nonet   splitt   stript   lenR   t   removet   pwdt   getpwnamt   KeyErrort   append(   t   userst   usert	   user_listt   invalid_users(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   get_invalid_users-   s    (t   LandscapeSetupConfigurationc           B   s)   e  Z d Z d „  Z d „  Z d „  Z RS(	   t   no_startt   disablet   silentt   ok_no_registert   import_fromc         C   s    t  t |  ƒ j ƒ  | |  _ d  S(   N(   t   superR-   t   __init__t   _fetch_import_url(   t   selft   fetch_import_url(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyR4   G   s    c         C   sW  |  j  rSt ƒ  } y® d |  j  k r„ |  j r@ |  j t j d <n  |  j r\ |  j t j d <n  |  j |  j  ƒ } | j t | ƒ ƒ n; t j	 j
 |  j  ƒ s¯ t d |  j  ƒ ‚ n | j |  j  ƒ Wn% t k
 rç } t t | ƒ ƒ ‚ n Xd } | j |  j ƒ rt | j |  j ƒ ƒ } n  | s7t d |  j  ƒ ‚ n  | j |  j ƒ | |  _ n  d S(   s¾   Handle the --import parameter.

        Imported options behave as if they were passed in the
        command line, with precedence being given to real command
        line options.
        s   ://t
   http_proxyt   https_proxys   File %s doesn't exist.s   Nothing to import at %s.N(   R2   R    R8   t   ost   environR9   R5   t   readfpR   t   patht   isfileR   t   readt   ConfigParserErrort   strR   t   has_sectiont   config_sectiont   dictt   itemst   updatet   _command_line_options(   R6   t   parsert   contentR   t   options(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   _load_external_optionsK   s0    				c         C   sã   t  t |  ƒ j ƒ  } | j d d d d d d d ƒ| j d d d	 d d
 ƒ| j d d d d d d d ƒ| j d d d d d d ƒ| j d d d d d ƒ| j d d d d t d d ƒ| j d d d d t d d ƒ| S(   sK   
        Specialize the parser, adding configure-specific options.
        s   --importt   destR2   t   metavart   FILENAME_OR_URLt   helps«   Filename or URL to import configuration from. Imported options behave as if they were passed in the command line, with precedence being given to real command line options.s   --script-userst   USERSsl   A comma-separated list of users to allow scripts to run.  To allow scripts to be run by any user, enter: ALLs   --include-manager-pluginst   PLUGINSt   defaultt    s2   A comma-separated list of manager plugins to load.s   -ns
   --no-startt   actiont
   store_trues%   Don't start the client automatically.s   --ok-no-registersB   Return exit code 0 instead of 2 if the client can't be registered.s   --silents   Run without manual interaction.s	   --disables/   Stop running clients and disable start at boot.(   R3   R-   t   make_parsert
   add_optiont   False(   R6   RH   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyRV   p   s$    (   s   no_starts   disables   silents   ok_no_registers   import_from(   R   R   t   unsaved_optionsR4   RK   RV   (    (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyR-   B   s
    		%t   LandscapeSetupScriptc           B   sž   e  Z d  Z d „  Z d „  Z d „  Z e d „ Z e d „ Z e	 d „ Z
 d „  Z d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s2  
    An interactive procedure which manages the prompting and temporary storage
    of configuration parameters.

    Various attributes on this object will be set on C{config} after L{run} is
    called.

    @ivar config: The L{BrokerConfiguration} object to read and set values from
        and to.
    c         C   s   | |  _  d  S(   N(   t   config(   R6   R[   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyR4      s    c         C   sJ   | j  ƒ  j ƒ  } t d d j g  | D] } | j  ƒ  d ^ q% ƒ ƒ d  S(   Ns   
RS   (   R!   t
   splitlinesR   t   join(   R6   R   t   linest   line(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt	   show_help    s    c         C   s>   x7 t  r9 t | ƒ } | r | S| s) Pn  |  j d ƒ q Wd S(   sœ   Prompt the user on the terminal for a value

        @param msg: Message to prompt user with
        @param required: True if value must be entered
        s/   This option is required to configure Landscape.N(   t   Truet	   raw_inputR`   (   R6   t   msgt   requiredt   value(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   prompt_get_input¤   s    	c         C   s{   t  |  j | d ƒ } | r, | d | 7} n
 | d 7} | oF t | ƒ } |  j | | ƒ } | rw t |  j | | ƒ n  d S(   st  Prompt the user on the terminal for a value.

        @param option: The attribute of C{self.config} that contains the
            default and which the value will be assigned to.
        @param msg: The message to prompt the user with (via C{raw_input}).
        @param required: If True, the user will be required to enter a value
            before continuing.
        s    [%s]: s   : N(   t   getattrR[   R   t   boolRf   t   setattr(   R6   t   optionRc   Rd   RR   t   result(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   prompt²   s    	
c         C   s®   t  |  j | d ƒ } | d 7} xˆ t r© t j | ƒ } | rO t j d ƒ } n  | rˆ | | k rq |  j d ƒ q¦ t |  j | | ƒ Pq" | s• | r™ Pq" |  j d ƒ q" Wd S(   sÛ  Prompt the user on the terminal for a password and mask the value.

        This also prompts the user twice and errors if both values don't match.

        @param option: The attribute of C{self.config} that contains the
            default and which the value will be assigned to.
        @param msg: The message to prompt the user with (via C{raw_input}).
        @param required: If True, the user will be required to enter a value
            before continuing.
        s   : s   Please confirm: s   Passwords must match.s/   This option is required to configure Landscape.N(   Rg   R[   R   Ra   t   getpassR`   Ri   (   R6   Rj   Rc   Rd   RR   Re   t   value2(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   password_promptÅ   s    
	c         C   s|   | r d } n d } x` t  rw t | | ƒ j ƒ  } | rp | j d ƒ rM t S| j d ƒ r` t  S|  j d ƒ q | Sq Wd  S(   Ns    [Y/n]s    [y/N]t   nt   ys   Invalid input.(   Ra   Rb   t   lowert
   startswithRX   R`   (   R6   t   messageRR   t   default_msgRe   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   prompt_yes_noâ   s    		c         C   s=   d |  j  j ƒ  k r d  S|  j d ƒ |  j d d t ƒ d  S(   Nt   computer_titles%  
            The computer title you provide will be used to represent this
            computer in the Landscape user interface. It's important to use
            a title that will allow the system to be easily recognized when
            it appears on the pending computers page.
            s   This computer's title(   R[   t   get_command_line_optionsR`   Rl   Ra   (   R6   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   query_computer_titleò   s
    c         C   s=   d |  j  j ƒ  k r d  S|  j d ƒ |  j d d t ƒ d  S(   Nt   account_names  
            You must now specify the name of the Landscape account you
            want to register this computer with.  You can verify the
            names of the accounts you manage on your dashboard at
            https://landscape.canonical.com/dashboard
            s   Account name(   R[   Rx   R`   Rl   Ra   (   R6   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   query_account_name   s
    c         C   sD   d |  j  j ƒ  k r d  S|  j d |  j  j ƒ |  j d d ƒ d  S(   Nt   registration_passwords¶  
            A registration password may be associated with your Landscape
            account to prevent unauthorized registration attempts.  This
            is not your personal login password.  It is optional, and unless
            explicitly set on the server, it may be skipped here.

            If you don't remember the registration password you can find it
            at https://landscape.canonical.com/account/%s
            s   Account registration password(   R[   Rx   R`   Rz   Ro   (   R6   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   query_registration_password  s    		c         C   sz   |  j  j ƒ  } d | k r+ d | k r+ d  S|  j d ƒ d | k rW |  j d d ƒ n  d | k rv |  j d d ƒ n  d  S(   NR8   R9   s>  
            The Landscape client communicates with the server over HTTP and
            HTTPS.  If your network requires you to use a proxy to access HTTP
            and/or HTTPS web sites, please provide the address of these
            proxies now.  If you don't use a proxy, leave these fields empty.
            s   HTTP proxy URLs   HTTPS proxy URL(   R[   Rx   R`   Rl   (   R6   RJ   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   query_proxies   s    c         C   s—  |  j  j ƒ  } d | k r] d | k r] t | d ƒ } | rY t d d j | ƒ ƒ ‚ n  d  S|  j d ƒ d } g  |  j  j j d ƒ D] } | j ƒ  ^ q† } | d g k r¶ g  } n  d	 | k } |  j	 | d
 | ƒrbd	 | k ró | j
 d	 ƒ n  |  j d ƒ x{ t r^|  j d d ƒ t |  j  j ƒ } | s5Pq|  j d d j | ƒ ƒ d  |  j  _ qWn d	 | k r~| j d	 ƒ n  d j | ƒ |  j  _ d  S(   Nt   include_manager_pluginst   script_userss   Unknown system users: %ss   , sb  
            Landscape has a feature which enables administrators to run
            arbitrary scripts on machines under their control. By default this
            feature is disabled in the client, disallowing any arbitrary script
            execution. If enabled, the set of users that scripts may run as is
            also configurable.
            s   Enable script execution?R   RS   t   ScriptExecutionRR   s!  
                By default, scripts are restricted to the 'landscape' and
                'nobody' users. Please enter a comma-delimited list of users
                that scripts will be restricted to. To allow scripts to be run
                by any user, enter "ALL".
                s   Script users(   R[   Rx   R,   R   R]   R`   R   R    R!   Rv   R'   Ra   Rl   R€   R   R#   (   R6   RJ   R+   Rc   t   pt   included_pluginsRR   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   query_script_plugin2  s>    .			c         C   s`   g  } | r\ g  | j  d ƒ D] } | j ƒ  ^ q } g  | D] } t | ƒ s; | ^ q; } n  | S(   sm   
        Splits a string on , and checks the validity of each tag, returns any
        invalid tags.
        R   (   R    R!   R   (   R6   t   tagnamest   invalid_tagst   tagt   tags(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   _get_invalid_tagsa  s
    ((c         C   s·   |  j  j ƒ  } d | k rT |  j | d ƒ } | rP t d d j | ƒ ƒ ‚ n  d S|  j d ƒ xO t r² |  j d d t ƒ |  j |  j  j	 ƒ r® |  j d ƒ d |  j  _	 qd Pqd Wd S(   s   Query tags from the user.Rˆ   s   Invalid tags: %ss   , Ns9   You may provide tags for this computer e.g. server,hardy.t   Tagss3   Tag names may only contain alphanumeric characters.(   R[   Rx   R‰   R   R]   R`   Ra   Rl   RX   Rˆ   R   (   R6   RJ   R†   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt
   query_tagsl  s    	c         C   s   |  j  d ƒ d  S(   NsÖ  
            This script will interactively set up the Landscape client. It will
            ask you a few questions about this computer and your Landscape
            account, and will submit that information to the Landscape server.
            After this computer is registered it will need to be approved by an
            account administrator on the pending computers page.

            Please see https://landscape.canonical.com for more information.
            (   R`   (   R6   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   show_header  s    	c         C   sJ   |  j  ƒ  |  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  d S(   sy   Kick off the interactive process which prompts the user for data.

        Data will be saved to C{self.config}.
        N(   RŒ   Ry   R{   R}   R~   R„   R‹   (   R6   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   run  s    





(   R   R   R   R4   R`   Rf   RX   Rl   Ro   Ra   Rv   Ry   R{   R}   R~   R„   R‰   R‹   RŒ   R   (    (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyRZ   ‘   s    
								/			c          C   s   t  ƒ  }  |  j t ƒ d  S(   N(   R   t   set_start_on_bootRa   (   t
   sysvconfig(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt"   setup_init_script_and_start_client›  s    	c          C   s$   t  ƒ  }  |  j ƒ  |  j t ƒ d  S(   N(   R   t   stop_landscapeRŽ   RX   (   R   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt#   stop_client_and_disable_init_script¡  s    	
c         C   sh  t  ƒ  } |  j so |  j r% t ƒ  qo | j ƒ  so t d ƒ } | j ƒ  j d ƒ s\ t ƒ  ql t j	 d ƒ qo n  |  j
 d  k r£ t j j d ƒ r£ t j d |  _
 n  |  j d  k r× t j j d ƒ r× t j d |  _ n  |  j r€|  j d ƒ r|  j d ƒ s|  j d ƒ rt d	 ƒ ‚ n  |  j d
 ƒ r–t |  j d
 ƒ ƒ } | ret d d j | ƒ ƒ ‚ n  |  j s}d |  _ q}q–n t |  ƒ } | j ƒ  |  j rÜ|  j j d ƒ rÜt j |  j d ƒ } t |  | ƒ |  _ n  |  j ƒ  |  j rd|  j rdy | j ƒ  Wqdt k
 r`t d d t ƒt d d t ƒd } |  j  rPd } n  t j	 | ƒ qdXn  d  S(   Nsl   
The Landscape client must be started on boot to operate correctly.

Start Landscape client on boot? (Y/n): t   Ns    Aborting Landscape configurationR8   R9   t   otpRz   Rw   s0   An account name and computer title are required.R€   s   Unknown system users: %ss   , R   s   base64:i   s&   Couldn't restart the Landscape client.R   sO   This machine will be registered with the provided details when the client runs.i   i    (!   R   R.   R0   R   t   is_configured_to_runRb   t   upperRs   R   t   exitR8   R   R:   R;   t   getR9   R   R,   R]   R   RZ   R   t   ssl_public_keyt   base64t   decodestringt   store_public_key_dataR   R”   t   restart_landscapeR   R   Ra   R1   (   R[   R   t   answerR+   t   scriptt   decoded_certt	   exit_code(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   setup§  sT    			

!!	 	

			c         C   sf   t  j j |  j t  j j |  j ƒ  d ƒ ƒ } t d | ƒ t | d ƒ } | j | ƒ | j	 ƒ  | S(   s°  
    Write out the data from the SSL certificate provided to us, either from a
    bootstrap.conf file, or from EC2-style user-data.

    @param config:  The L{BrokerConfiguration} object in use.
    @param certificate_data: a string of data that represents the contents of
    the file to be written.
    @return the L{BrokerConfiguration} object that was passed in, updated to
    reflect the path of the ssl_public_key file.
    s   .ssl_public_keys#   Writing SSL CA certificate to %s...t   w(
   R:   R=   R]   t	   data_patht   basenamet   get_config_filenameR   t   openR   t   close(   R[   t   certificate_datat   key_filenamet   key_file(    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyRœ   à  s    
c            s  t  ƒ  ‰ g  ‰ ‡  ‡ f d †  ‰ ‡ f d †  ‰ ‡ f d †  ‰ ‡ f d †  ‰ ‡  f d †  ‰ ‡ f d †  ‰ t d d ƒ t j d	 ƒ ‡ ‡ ‡ ‡ ‡ f d
 †  } ‡ ‡ ‡	 f d †  } t ˆ ˆ	 ƒ ‰  ˆ  j d d d t ƒ } | j | ƒ | j | ƒ ˆ j	 ƒ  ˆ rt
 j ˆ d ƒ n  | S(   sM  Instruct the Landscape Broker to register the client.

    The broker will be instructed to reload its configuration and then to
    attempt a registration.

    @param reactor: The reactor to use.  Please only pass reactor when you
        have totally mangled everything with mocker.  Otherwise bad things
        will happen.
    c              s   ˆ  j  ƒ  ˆ j ƒ  d  S(   N(   t
   disconnectt   stop(    (   t	   connectort   reactor(    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyR­     s    
c              s   t  d d t ƒˆ  ƒ  d  S(   Ns.   Invalid account name or registration password.R   (   R   Ra   (    (   R­   (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   failure  s    	c              s   t  d ƒ ˆ  ƒ  d  S(   Ns   System successfully registered.(   R   (    (   R­   (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   success  s    
c              s   t  d d t ƒˆ  ƒ  d  S(   Nsš   We were unable to contact the server. Your internet connection may be down. The landscape client will continue to try and contact the server periodically.R   (   R   Ra   (    (   R­   (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   exchange_failure  s    	c            s   |  j  t t ƒ ˆ  j ƒ  d  S(   N(   t   trapR   R   R¬   (   R°   (   R®   (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   handle_registration_errors  s    c            s1   t  |  j ƒ  d t ƒt  d d t ƒˆ  ƒ  d  S(   NR   s   Unknown error occurred.(   R   t   getTracebackRa   (   R°   (   R­   (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt	   catch_all  s    s   Please wait... RS   i   c            sg   i ˆ  d 6ˆ d 6ˆ d 6} |  j  ƒ  |  j | ƒ |  j ƒ  j ˆ ƒ g } t | d t ƒ} | j ˆ ƒ S(   Ns   registration-dones   registration-faileds   exchange-failedt   consume_errors(   t   reload_configurationt   call_on_eventt   registert
   addErrbackR   Ra   (   t   remotet   handlerst	   deferredst   results(   R±   R¶   R°   R²   R´   (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   got_connection+  s    

	c            sD   t  d d t ƒt  d d t ƒˆ j s9 ˆ  j d ƒ n  ˆ ƒ  d  S(   Ns;   There was an error communicating with the Landscape client.R   sO   This machine will be registered with the provided details when the client runs.i   (   R   Ra   R1   R'   (   R°   (   t   exit_with_errorR­   R[   (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt	   got_error8  s    			t   max_retriesi    t   quiet(   R
   R   t   timet   sleepR   t   connectRa   t   addCallbackR»   R   R   R—   (   R[   R¯   RÀ   RÂ   Rk   (    (
   R®   R¯   RÁ   R­   R±   R¶   R°   R²   R´   R[   s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyRº   ô  s(    
			
c         C   so   t  d |  ƒ d } y t |  ƒ } Wn t k
 rE } t | ƒ } n X| d k	 rk t d |  | f ƒ ‚ n  | S(   s´   Handle fetching of URLs passed to --url.

    This is done out of LandscapeSetupConfiguration since it has to deal
    with interaction with the user and downloading of files.
    s!   Fetching configuration from %s...s+   Couldn't download configuration from %s: %sN(   R   R   R   R	   RA   R   (   t   urlt   error_messageRI   R   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyR7   N  s    c         C   s=  t  t ƒ } |  d g d g f k r4 | j |  ƒ n  t j ƒ  d k rV t j d ƒ n  y | j |  ƒ Wn6 t k
 rŸ } t t	 | ƒ d t
 ƒt j d ƒ n X| j r´ t ƒ  d  Sy t | ƒ Wn0 t k
 rô } t t	 | ƒ ƒ t j d ƒ n X| j rt | ƒ n. t d ƒ } | j ƒ  j d	 ƒ s9t | ƒ n  d  S(
   Ns   -hs   --helpi    s%   landscape-config must be run as root.R   i   s    Aborting Landscape configurations:   
Request a new registration for this computer now? (Y/n): R“   (   R-   R7   t   loadR:   t   getuidR   R—   R   R   RA   Ra   R/   R’   R¢   t	   ExceptionR0   Rº   Rb   R–   Rs   (   t   argsR[   R   t   eRž   (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   mainb  s.    		(0   R   Rš   RÅ   R   R:   Rm   R$   R    R   R@   R   t   landscape.lib.tagR   t   landscape.sysvconfigR   R   t   landscape.lib.ampR   t   landscape.lib.twisted_utilR   t   landscape.lib.fetchR   R	   t   landscape.reactorR
   t   landscape.broker.registrationR   t   landscape.broker.configR   t   landscape.broker.ampR   RÍ   R   R   RX   R   R,   R-   t   objectRZ   R   R’   R¢   Rœ   R   Rº   R7   RÐ   (    (    (    s;   /usr/lib/python2.7/dist-packages/landscape/configuration.pyt   <module>   s>   		Oÿ 			9	Z	