%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/alternatives.pyo

�
���^c@@s`dZddlmZmZmZidd6Zd�Zd�Zd�Zd�Z	d	�Z
d
S(u
Configuration of the alternatives system

Control the alternatives system

.. code-block:: jinja

  {% set my_hadoop_conf = '/opt/hadoop/conf' %}

  {{ my_hadoop_conf }}:
    file.directory

  hadoop-0.20-conf:
    alternatives.install:
      - name: hadoop-0.20-conf
      - link: /etc/hadoop-0.20/conf
      - path: {{ my_hadoop_conf }}
      - priority: 30
      - require:
        - file: {{ my_hadoop_conf }}

  hadoop-0.20-conf:
    alternatives.remove:
      - name: hadoop-0.20-conf
      - path: {{ my_hadoop_conf }}

i(tabsolute_importtprint_functiontunicode_literalsusetuset_cC@sdtkrtStS(uB
    Only load if alternatives execution module is available.
    ualternatives.auto(t__salt__tTruetFalse(((s</usr/lib/python2.7/site-packages/salt/states/alternatives.pyt__virtual__%scC@sUi|d6|d6|d6|d6td6id6dd6}td	||�rcd
j||�|d<n�tdr�dj|||�|d<d|d<|Std
||||�}td	||�r1td||�r�dj|||�|d<ndj|||�|d<i|d6|d6|d6|d6|d<n t|d<dj||�|d<|S(u�
    Install new alternative for defined <name>

    name
        is the master name for this link group
        (e.g. pager)

    link
        is the symlink pointing to /etc/alternatives/<name>.
        (e.g. /usr/bin/pager)

    path
        is the location of the new alternative target.
        NB: This file / directory must already exist.
        (e.g. /usr/bin/less)

    priority
        is an integer; options with higher numbers have higher priority in
        automatic mode.
    unameulinkupathupriorityuresultuchangesuucommentualternatives.check_existsu-Alternative {0} for {1} is already registeredutestu8Alternative will be set for {0} to {1} with priority {2}ualternatives.installualternatives.check_installedu5Alternative for {0} set to path {1} with priority {2}uKAlternative {0} for {1} registered with priority {2} and not set to defaultu&Alternative for {0} not installed: {1}N(RRtformatt__opts__tNoneR(tnametlinktpathtprioritytrettout((s</usr/lib/python2.7/site-packages/salt/states/alternatives.pytinstall,s:





cC@sEi|d6|d6td6id6dd6}td||�}|r�tdrmd	j|�|d<d|d<|Std
||�td|�}|r�t|d<dj||�|d<i|d6|d<|Sd
j|�|d<i|d<|Std|�}|r$t|d<dj||�|d<|St|d<dj|�|d<|S(u:
    Removes installed alternative for defined <name> and <path>
    or fallback to default alternative, if some defined before.

    name
        is the master name for this link group
        (e.g. pager)

    path
        is the location of one of the alternative target files.
        (e.g. /usr/bin/less)
    unameupathuresultuchangesuucommentualternatives.check_existsutestu#Alternative for {0} will be removedualternatives.removeualternatives.show_currentu5Alternative for {0} removed. Falling back to path {1}uAlternative for {0} removedu3Alternative for {0} is set to it's default path {1}u!Alternative for {0} doesn't existN(RRRRR	R(R
RRtisinstalledtcurrent((s</usr/lib/python2.7/site-packages/salt/states/alternatives.pytremovejsB









cC@s�i|d6td6dd6id6}td|�}|j�d}|jd�rhd	j|�|d<|Std
r�dj|�|d<d
|d<|Std|�|dd<|S(u�
    .. versionadded:: 0.17.0

    Instruct alternatives to use the highest priority
    path for <name>

    name
        is the master name for this link group
        (e.g. pager)

    unameuresultuucommentuchangesualternatives.displayiu
 auto modeu{0} already in auto modeutestu{0} will be put in auto modeualternatives.autoN(RRt
splitlinestendswithRRR	(R
Rtdisplaytline((s</usr/lib/python2.7/site-packages/salt/states/alternatives.pytauto�s



cC@ski|d6|d6td6id6dd6}td|�}||kr_dj||�|d<|Std	|�}t}x-|j�D]}|j|�r�t}Pq�q�W|rGtd
r�dj||�|d<d|d<|Std||�td|�}||kr0d
j||�|d<i|d6|d<ndj|�|d<|St|d<dj||�|d<|S(u�
    .. versionadded:: 0.17.0

    Sets alternative for <name> to <path>, if <path> is defined
    as an alternative for <name>.

    name
        is the master name for this link group
        (e.g. pager)

    path
        is the location of one of the alternative target files.
        (e.g. /usr/bin/less)

    .. code-block:: yaml

        foo:
          alternatives.set:
            - path: /usr/bin/foo-2.0
    unameupathuresultuchangesuucommentualternatives.show_currentu&Alternative for {0} already set to {1}ualternatives.displayutestu+Alternative for {0} will be set to path {1}ualternatives.setu#Alternative for {0} set to path {1}uAlternative for {0} not updatedu%Alternative {0} for {1} doesn't existN(RRRRRt
startswithRR	(R
RRRRRR((s</usr/lib/python2.7/site-packages/salt/states/alternatives.pytset_�sB




N(t__doc__t
__future__RRRt__func_alias__RRRRR(((s</usr/lib/python2.7/site-packages/salt/states/alternatives.pyt<module>s
		>	8	

Zerion Mini Shell 1.0