File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/modjk_worker.cpython-310.pyc
Back
o ;j� � @ sL d Z dd� Zddd�Zddd�Zdd d �Zddd�Zdd d�Zddd�ZdS )a` Manage modjk workers ==================== Send commands to a :strong:`modjk` load balancer via the peer system. This module can be used with the :ref:`prereq <requisites-prereq>` requisite to remove/add the worker from the load balancer before deploying/restarting service. Mandatory Settings: - The minion needs to have permission to publish the :strong:`modjk.*` functions (see :ref:`here <peer>` for information on configuring peer publishing permissions) - The modjk load balancer must be configured as stated in the :strong:`modjk` execution module :mod:`documentation <salt.modules.modjk>` c C s dS )z( Check if we have peer access ? T� r r r �L/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/modjk_worker.py�__virtual__ s r �default�globc C s� ddg d�}d| � �}|||g}t d ||||�} g } g }| D ]}|�|� | | s/| �|� q| s;d| � �|d<