Your IP : 172.28.240.42


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

ó
ÍÿŠTc@sdddlZddlmZddlmZdddddd	d
dgZdefd
„ƒYZdS(iÿÿÿÿN(t
Configuration(t	ALL_USERSt
ProcessKillertPackageManagertUserManagertShutdownManagert
AptSourcestHardwareInfot
KeystoneTokent	HAServicetManagerConfigurationcBs>eZdZd„Zed„ƒZd„Zed„ƒZRS(s4Specialized configuration for the Landscape Manager.cCsjtt|ƒjƒ}|jdddddddƒ|jddddd	ƒ|jd
ddddƒ|S(
sh
        Specialize L{Configuration.make_parser}, adding many
        manager-specific options.
        s--manager-pluginstmetavartPLUGIN_LISTthelpsJComma-delimited list of manager plugins to use. ALL means use all plugins.tdefaulttALLs--include-manager-pluginssOComma-delimited list of manager plugins to enable, in addition to the defaults.s--script-userstUSERSs\Comma-delimited list of usernames that scripts may be run as. Default is to allow all users.(tsuperR
tmake_parsert
add_option(tselftparser((s</usr/lib/python2.7/dist-packages/landscape/manager/config.pyRscCs|g}|jdkrt}n|jr=|jjdƒ}n|jr_||jjdƒ7}ng|D]}|jƒ^qfS(NRt,(tmanager_pluginstALL_PLUGINStsplittinclude_manager_pluginststrip(Rtplugin_namestx((s</usr/lib/python2.7/dist-packages/landscape/manager/config.pytplugin_factories#s
		cCsR|jsdgS|jjƒdkr)tSg|jjdƒD]}|jƒ^q<S(s:
        Based on the C{script_users} configuration value, return the users that
        should be allowed to run scripts.

        If the value is "ALL", then
        L{landscape.manager.scriptexecution.ALL_USERS} will be returned.  If
        there is no specified value, then C{nobody} will be allowed.
        tnobodyRR(tscript_usersRRR(RR((s</usr/lib/python2.7/dist-packages/landscape/manager/config.pytget_allowed_script_users.s
		cCstjj|jdƒS(Nsmanager.database(tostpathtjoint	data_path(R((s</usr/lib/python2.7/dist-packages/landscape/manager/config.pytstore_filename=s(t__name__t
__module__t__doc__RtpropertyRR!R&(((s</usr/lib/python2.7/dist-packages/landscape/manager/config.pyR
s
		(R"tlandscape.deploymentRt!landscape.manager.scriptexecutionRRR
(((s</usr/lib/python2.7/dist-packages/landscape/manager/config.pyt<module>s