File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/__pycache__/digitalocean.cpython-310.pyc
Back
o ;j(� � @ s4 d Z ddlZddlZddlZddlZddlZddlmZ ddlZ ddl Z ddlZ ddlZ ddl mZmZmZmZmZmZ zddlZdZW n eyO dZY nw e�e�ZdZdZdd � Zd d� Zdd � Zdd� Zd\dd�Z d\dd�Z!d\dd�Z"d\dd�Z#d]dd�Z$d\dd�Z%dd� Z&dd� Z'd d!� Z(d"d#� Z)d$d%� Z* 'd^d(d)�Z+d*d+� Z,d\d,d-�Z-d.d/� Z.d\d0d1�Z/d_d2d3�Z0d_d4d5�Z1d_d6d7�Z2d_d8d9�Z3d:d;� Z4d\d<d=�Z5d>d?� Z6d@dA� Z7d_dBdC�Z8d\dDdE�Z9d_dFdG�Z:d_dHdI�Z;d_dJdK�Z<d_dLdM�Z=d_dNdO�Z>d`dPdQ�Z?d\dRdS�Z@d\dTdU�ZAd\dVdW�ZBdadXdY�ZCdZd[� ZDdS )bad DigitalOcean Cloud Module ========================= The DigitalOcean cloud module is used to control access to the DigitalOcean VPS system. Use of this module requires a requires a ``personal_access_token``, an ``ssh_key_file``, and at least one SSH key name in ``ssh_key_names``. More ``ssh_key_names`` can be added by separating each key with a comma. The ``personal_access_token`` can be found in the DigitalOcean web interface in the "Apps & API" section. The SSH key name can be found under the "SSH Keys" section. .. code-block:: yaml # Note: This example is for /etc/salt/cloud.providers or any file in the # /etc/salt/cloud.providers.d/ directory. my-digital-ocean-config: personal_access_token: xxx ssh_key_file: /path/to/ssh/key/file ssh_key_names: my-key-name,my-key-name-2 driver: digitalocean :depends: requests � N)�SaltCloudConfigError�SaltCloudExecutionFailure�SaltCloudExecutionTimeout�SaltCloudNotFound�SaltCloudSystemExit�SaltInvocationErrorTF�digitalocean)Z digital_oceanZdoc C s t � du rdS t� du rdS tS )z/ Check for DigitalOcean configurations F)�get_configured_provider�get_dependencies�__virtualname__� r r �R/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/digitalocean.py�__virtual__>