File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/__pycache__/clc.cpython-310.pyc
o
�N�g�. � @ sF d Z ddlZddlZddlZddlmZ ddlZddlm Z z
e�
d� ddlZdZW n e
y6 dZY nw zddlmZ e� W n eyK Y nw e�e�ZdZdd � Zd
d� Zdd
� Zdd� Zdd� Zd*dd�Zd*dd�Zd*dd�Zd*dd�Zd*dd�Zd*dd�Zd+dd�Z d+d d!�Z!d+d"d#�Z"d$d%� Z#d&d'� Z$d+d(d)�Z%dS ),a�
CenturyLink Cloud Module
========================
.. versionadded:: 2018.3.0
The CLC cloud module allows you to manage CLC Via the CLC SDK.
:codeauthor: Stephan Looney <slooney@stephanlooney.com>
Dependencies
============
- clc-sdk Python Module
- flask
CLC SDK
-------
clc-sdk can be installed via pip:
.. code-block:: bash
pip install clc-sdk
.. note::
For sdk reference see: https://github.com/CenturyLinkCloud/clc-python-sdk
Flask
-----
flask can be installed via pip:
.. code-block:: bash
pip install flask
Configuration
=============
To use this module: set up the clc-sdk, user, password, key in the
cloud configuration at
``/etc/salt/cloud.providers`` or ``/etc/salt/cloud.providers.d/clc.conf``:
.. code-block:: yaml
my-clc-config:
driver: clc
user: 'web-user'
password: 'verybadpass'
token: ''
token_pass:''
accountalias: 'ACT'
.. note::
The ``provider`` parameter in cloud provider configuration was renamed to ``driver``.
This change was made to avoid confusion with the ``provider`` parameter that is
used in cloud profile configuration. Cloud provider configuration now uses ``driver``
to refer to the salt-cloud driver that provides the underlying functionality to
connect to a cloud provider, while cloud profile configuration continues to use
``provider`` to refer to the cloud provider configuration that you define.
� N)�SaltCloudSystemExit�clcTF)�disable_warningsc C s t � du s
t� du rdS tS )zI
Check for CLC configuration and if required libs are available.
F)�get_configured_provider�get_dependencies�__virtualname__� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/clc.py�__virtual__e s r
c C s"