golden hour
/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-310.pyc
171 B
Del
OK
aliyun.cpython-310.pyc
19.81 KB
Del
OK
azurearm.cpython-310.pyc
39.67 KB
Del
OK
clc.cpython-310.pyc
8.91 KB
Del
OK
cloudstack.cpython-310.pyc
10.87 KB
Del
OK
digitalocean.cpython-310.pyc
27.39 KB
Del
OK
dimensiondata.cpython-310.pyc
12.62 KB
Del
OK
ec2.cpython-310.pyc
92.28 KB
Del
OK
gce.cpython-310.pyc
48.78 KB
Del
OK
gogrid.cpython-310.pyc
11.07 KB
Del
OK
hetzner.cpython-310.pyc
11.82 KB
Del
OK
joyent.cpython-310.pyc
22.78 KB
Del
OK
libvirt.cpython-310.pyc
16.69 KB
Del
OK
linode.cpython-310.pyc
59.17 KB
Del
OK
lxc.cpython-310.pyc
10.9 KB
Del
OK
msazure.cpython-310.pyc
71.44 KB
Del
OK
oneandone.cpython-310.pyc
18.39 KB
Del
OK
opennebula.cpython-310.pyc
90.2 KB
Del
OK
openstack.cpython-310.pyc
23.53 KB
Del
OK
packet.cpython-310.pyc
12.06 KB
Del
OK
parallels.cpython-310.pyc
11.89 KB
Del
OK
profitbricks.cpython-310.pyc
25.34 KB
Del
OK
proxmox.cpython-310.pyc
27.25 KB
Del
OK
pyrax.cpython-310.pyc
2.59 KB
Del
OK
qingcloud.cpython-310.pyc
16.64 KB
Del
OK
saltify.cpython-310.pyc
11.91 KB
Del
OK
scaleway.cpython-310.pyc
9.36 KB
Del
OK
softlayer.cpython-310.pyc
13.26 KB
Del
OK
softlayer_hw.cpython-310.pyc
13.5 KB
Del
OK
tencentcloud.cpython-310.pyc
20.55 KB
Del
OK
vagrant.cpython-310.pyc
8.32 KB
Del
OK
virtualbox.cpython-310.pyc
9.57 KB
Del
OK
vmware.cpython-310.pyc
94.14 KB
Del
OK
vultrpy.cpython-310.pyc
12.8 KB
Del
OK
xen.cpython-310.pyc
25.66 KB
Del
OK
Edit: joyent.cpython-310.pyc
o �xec| � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddl m Z ddlZddl ZddlZddlZddlZddlmZmZmZmZ zddlmZ dZdZW nA ey� dZzddlmZ ddlmZ dZW n% ey� zddlmZ ddl mZ dZW n ey� dZY nw Y nw Y nw e�!e"�Z#d Z$d Z%dZ&dd ddd�Z'dZ(dZ)ej*j+ej*j,ej*j-ej*j.gZ/dd� Z0dd� Z1dd� Z2dd� Z3dd� Z4dYdd�Z5dd� Z6d d!� Z7dZd"d#�Z8dZd$d%�Z9dZd&d'�Z:dZd(d)�Z;ddddd*e(fd+d,�Z<d-d.� Z=dZd/d0�Z>dZd1d2�Z?d3d4� Z@dZd5d6�ZAd7d8� ZBdZd9d:�ZCd;d<� ZDd=d>� ZEd[d?d@�ZFd\dAdB�ZGdZdCdD�ZHdZdEdF�ZIdGdH� ZJdZdIdJ�ZKdZdKdL�ZLdYdMdN�ZMdYdOdP�ZNdYdQdR�ZOdYdSdT�ZPe(e%fdUdV�ZQd]dWdX�ZRdS )^aH Joyent Cloud Module =================== The Joyent Cloud module is used to interact with the Joyent cloud system. Set up the cloud configuration at ``/etc/salt/cloud.providers`` or ``/etc/salt/cloud.providers.d/joyent.conf``: .. code-block:: yaml my-joyent-config: driver: joyent # The Joyent login user user: fred # The Joyent user's password password: saltybacon # The location of the ssh private key that can log into the new VM private_key: /root/mykey.pem # The name of the private key keyname: mykey When creating your profiles for the joyent cloud, add the location attribute to the profile, this will automatically get picked up when performing tasks associated with that vm. An example profile might look like: .. code-block:: yaml joyent_512: provider: my-joyent-config size: g4-highcpu-512M image: centos-6 location: us-east-1 This driver can also be used with the Joyent SmartDataCenter project. More details can be found at: .. _`SmartDataCenter`: https://github.com/joyent/sdc Using SDC requires that an api_host_suffix is set. The default value for this is `.api.joyentcloud.com`. All characters, including the leading `.`, should be included: .. code-block:: yaml api_host_suffix: .api.myhostname.com :depends: PyCrypto � N)�SaltCloudExecutionFailure�SaltCloudExecutionTimeout�SaltCloudNotFound�SaltCloudSystemExit)�EVPTF)�SHA256)� PKCS1_v1_5�joyentz.api.joyentcloud.comz~7.2zNorth Virginia, USAzBay Area, California, USAzLas Vegas, Nevada, USAzAmsterdam, Netherlands)� us-east-1z us-west-1zus-sw-1zeu-ams-1r c C s t du rdS t� du r dS tS )z" Check for Joyent configs F)Fz4Either PyCrypto or Cryptodome needs to be installed.)�HAS_REQUIRED_CRYPTO�get_configured_provider�__virtualname__� r r �L/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/joyent.py�__virtual__| s r c C s"