File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/roster/__pycache__/cloud.cpython-310.pyc
o
�N�gs � @ sJ d Z ddlZddlZddlZddlZddlZddlZddd�Zdd� Z dS ) a�
Use the cloud cache on the master to derive IPv4 addresses based on minion ID.
This roster requires that the minion in question was created using at least the
2015.5.0 version of Salt Cloud. Starting with the 2015.5.0 release, Salt Cloud
maintains an index of minions that it creates and deletes. This index tracks the
provider and profile configuration used to provision the minion, including
authentication information. So long as this configuration remains current, it can
be used by Salt SSH to log into any minion in the index.
To connect as a user other than root, modify the cloud configuration file
usually located at /etc/salt/cloud. For example, add the following:
.. code-block:: yaml
ssh_username: my_user
sudo: True
� N�globc K s� i }t j�tj�tj�td �d��}td | �}|� � D ]�\}}|�
dd�|�
dd�}} | |d�}
|�
dg �}|�
d g �}g }
||fD ]}t|t�rQ|
| }
qEt|t
�r[|
�|� qEt�
d
d�}t||
�}t�t�
di ��||<