Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/landscape/broker/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/landscape/broker/config.pyc

ó
ÍÿŠTc@s<dZddlZddlmZdefd„ƒYZdS(s#Configuration class for the broker.iÿÿÿÿN(t
ConfigurationtBrokerConfigurationcBsGeZdZd„Zed„ƒZd„Zed„ƒZd„ZRS(s`Specialized configuration for the Landscape Broker.

    @cvar required_options: C{["url"]}
    cCsAtt|ƒjƒtjjdƒ|_tjjdƒ|_dS(Nt
http_proxythttps_proxy(tsuperRt__init__tostenvirontgett_original_http_proxyt_original_https_proxy(tself((s;/usr/lib/python2.7/dist-packages/landscape/broker/config.pyRscCstjj|jdƒS(Nsexchange.database(Rtpathtjoint	data_path(R((s;/usr/lib/python2.7/dist-packages/landscape/broker/config.pytexchange_store_pathsc
Cs:tt|ƒjƒ}|jddddddƒ|jdddd	dd
ƒ|jdddd
ddƒ|jddd'ddddddƒ|jddd(ddddddƒ|jdddddddddƒ|jdddddƒ|jd dddd!ƒ|jd"dd#dd$ƒ|jd%dd&ƒ|S()s±Parser factory for broker-specific options.

        @return: An L{OptionParser} preset for all the options
            from L{Configuration.make_parser} plus:
              - C{account_name}
              - C{registration_key}
              - C{computer_title}
              - C{exchange_interval} (C{15*60})
              - C{urgent_exchange_interval} (C{1*60})
              - C{http_proxy}
              - C{https_proxy}
        s-as--account-nametmetavartNAMEthelps%The account this computer belongs to.s-ps--registration-keytKEYs2The account-wide key used for registering clients.s-ts--computer-titletTITLEsThe title of this computers--exchange-intervaltdefaultii<ttypetinttINTERVALs/The number of seconds between server exchanges.s--urgent-exchange-intervalis6The number of seconds between urgent server exchanges.s--ping-intervalis$The number of seconds between pings.s--http-proxytURLs,The URL of the HTTP proxy, if one is needed.s
--https-proxys-The URL of the HTTPS proxy, if one is needed.s--access-groupts)Suggested access group for this computer.s--tagss;Comma separated list of tag names to be sent to the server.i„i<(RRtmake_parsert
add_option(Rtparser((s;/usr/lib/python2.7/dist-packages/landscape/broker/config.pyRs2
cCstjj|jdƒS(s"Get the path to the message store.tmessages(RRR
R(R((s;/usr/lib/python2.7/dist-packages/landscape/broker/config.pytmessage_store_pathDscCsŠtt|ƒj|ƒ|jr2|jtjd<n|jrN|jtjd<n|jrj|jtjd<n|jr†|jtjd<ndS(sø
        Load options from command line arguments and a config file.

        Load the configuration with L{Configuration.load}, and then set
        C{http_proxy} and C{https_proxy} environment variables based on
        that config data.
        RRN(	RRtloadRRRR	RR
(Rtargs((s;/usr/lib/python2.7/dist-packages/landscape/broker/config.pyR Is				(	t__name__t
__module__t__doc__RtpropertyRRRR (((s;/usr/lib/python2.7/dist-packages/landscape/broker/config.pyRs		-(R$Rtlandscape.deploymentRR(((s;/usr/lib/python2.7/dist-packages/landscape/broker/config.pyt<module>s