%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/lib/python2.7/site-packages/salt/client/ssh/wrapper/
Upload File :
Create Path :
Current File : //proc/thread-self/root/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pyc

�
���^c@@s�dZddlmZmZddlZddlZddlZddlZddl	j
Z
ddlmZi dd6dd6dd	6d
d6dd6d
d6dd6dd6dd6dd6gd6dd6dd6dd6dd6dd6d d!6ied"6ed#6ed$6ed%6d&6dd'6d(d)6d*d+6d,d-6dd.6d/d06ed16d2d36dd46dd56dd66d7d86d9d:6ied;6ejje
jd<�d=6d>6Zdd?�Zd@�ZdA�ZdeeedB�ZdeeedC�ZddD�ZdE�ZdS(Fs
Return config information
i(tabsolute_importtprint_functionN(tsixtsaltsmongo.dbs
mongo.hosttsmongo.passwordi�is
mongo.ports
mongo.usert0sredis.dbs
redis.hosti�s
redis.porttunconfiguredstest.foos/etc/pkisca.cert_base_paths
solr.corest	localhosts	solr.hostt8983s	solr.ports/solrssolr.baseurltmasters	solr.typessolr.request_timeouts/etc/rc.d/solrssolr.init_scripttcleantoptimizetcommittverbosessolr.dih.import_optionsssolr.backup_pathissolr.num_backupss/usr/local/etc/poudriere.confspoudriere.configs/usr/local/etc/poudriere.dspoudriere.config_dirsldap.servert389s	ldap.portsldap.tlsis
ldap.scopes
ldap.attrssldap.binddnsldap.bindpws
/etc/hostss
hosts.files/etc/aliasessaliases.filettunnelssalt-imagestimagestvirtcC@s|r
|Std�S(sq
    Return the backup mode

    CLI Example:

    .. code-block:: bash

        salt '*' config.backup_mode
    tbackup_mode(toption(tbackup((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pyR9s
cC@stjjj|�S(s�
    Return a mode value, normalized to a string

    CLI Example:

    .. code-block:: bash

        salt '*' config.manage_mode
    (Rtutilstfilestnormalize_mode(tmode((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pytmanage_modeHs
cC@s3yttjd|��SWntk
r.tSXdS(s�
    Returns a boolean value based on whether or not the URI passed has a valid
    remote file protocol designation

    CLI Example:

    .. code-block:: bash

        salt '*' config.valid_fileproto salt://path/to/file
    s^(?:salt|https?|ftp)://N(tbooltretmatcht	ExceptiontFalse(turi((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pytvalid_fileprotoXs
cC@s|s|tkrt|Sn|sJ|tjdi�krJtd|Sn|sg|tkrgt|Sn|tkr{t|S|S(s�
    Pass in a generic option and receive the value that will be assigned

    CLI Example:

    .. code-block:: bash

        salt '*' config.option redis.host
    R	(t__opts__t
__pillar__tgettDEFAULTS(tvaluetdefaultt	omit_optstomit_mastertomit_pillar((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pyRiscC@sd}|s>|tkr>t|}t|tj�r;|Sq>n|s|tjdi�krtd|}|dkr�|}t|tj�r|Sqt|t�r�t|t�r�|j|�|}qt|t	t
f�rt|t	t
f�rt	|�t	|�}qqn|s�|tkr�t|}|dkrY|}t|tj�r�|Sq�t|t�r�t|t�r�|j|�|}q�t|t	t
f�r�t|t	t
f�r�t	|�t	|�}q�q�n|dkr�|tkr�t|S|p�|S(s�
    Retrieves an option based on key, merging all matches.

    Same as ``option()`` except that it merges all matches, rather than taking
    the first match.

    CLI Example:

    .. code-block:: bash

        salt '*' config.merge schedule
    R	N(tNoneR!t
isinstanceRtstring_typesR"R#tdicttupdatetlistttupleR$(R%R&R'R(R)tretttmp((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pytmerge�sF


	

	cC@s�tjjjt|d�}|dkr+|Stjjjt|d�}|dkrV|Stjjjt|d�}|dkr�|Stjjjtjdi�|d�}|dkr�|S|S(s
    .. versionadded: 0.14.0

    Attempt to retrieve the named value from opts, pillar, grains of the master
    config, if the named value is not available return the passed default.
    The default return is an empty string.

    The value can also represent a value in a nested dict using a ":" delimiter
    for the dict. This means that if a dict looks like this::

        {'pkg': {'apache': 'httpd'}}

    To retrieve the value associated with the apache key in the pkg dict this
    key can be passed::

        pkg:apache

    This routine traverses these data stores in this order:

    - Local minion config (opts)
    - Minion's grains
    - Minion's pillar
    - Master config

    CLI Example:

    .. code-block:: bash

        salt '*' config.get pkg:apache
    s_|-R	(RRtdatattraverse_dict_and_listR!t
__grains__R"R#(tkeyR&R1((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pyR#�s'cC@s�i}xNtjtjdi��D]1\}}|jdj|��r"|||<q"q"WxBtjt�D]1\}}|jdj|��rg|||<qgqgW|S(s�
    Pass in a configuration value that should be preceded by the module name
    and a dot, this will return a list of all read key/value pairs

    CLI Example:

    .. code-block:: bash

        salt '*' config.dot_vals host
    R	s{0}.(Rt	iteritemsR"R#t
startswithtformatR!(R%R1R7tval((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pytdot_vals�s((t__doc__t
__future__RRRtostsalt.utils.dataRtsalt.utils.filest
salt.syspathstsyspathstsalt.extRR*RtTruetpathtjointSRV_ROOT_DIRR$RRR RR3R#R<(((sB/usr/lib/python2.7/site-packages/salt/client/ssh/wrapper/config.pyt<module>sl

 		2.

Zerion Mini Shell 1.0