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: vultrpy.cpython-310.pyc
o �xe,D � @ s2 d Z ddlZddlZddlZddlZddlmZ ddlm Z m Z e�e�Z dZi Zdd� Zdd� Zd d � Zd7dd�Zd7d d�Zd7dd�Zd7dd�Zd7dd�Zd8dd�Zd8dd�Zd8dd�Zd8dd�Zd7dd�Zd7dd �Zd!d"� Zd#d$� Zd8d%d&�Z d'd(� Z!d)d*� Z"d+d,� Z#d7d-d.�Z$d/d0� Z%d1d2� Z&d9d5d6�Z'dS ):a� Vultr Cloud Module using python-vultr bindings ============================================== .. versionadded:: 2016.3.0 The Vultr cloud module is used to control access to the Vultr VPS system. Use of this module only requires the ``api_key`` parameter. Set up the cloud configuration at ``/etc/salt/cloud.providers`` or ``/etc/salt/cloud.providers.d/vultr.conf``: .. code-block:: yaml my-vultr-config: # Vultr account api key api_key: <supersecretapi_key> driver: vultr Set up the cloud profile at ``/etc/salt/cloud.profiles`` or ``/etc/salt/cloud.profiles.d/vultr.conf``: .. code-block:: yaml nyc-4gb-4cpu-ubuntu-14-04: location: 1 provider: my-vultr-config image: 160 size: 95 enable_private_network: True This driver also supports Vultr's `startup script` feature. You can list startup scripts in your account with .. code-block:: bash salt-cloud -f list_scripts <name of vultr provider> That list will include the IDs of the scripts in your account. Thus, if you have a script called 'setup-networking' with an ID of 493234 you can specify that startup script in a profile like so: .. code-block:: yaml nyc-2gb-1cpu-ubuntu-17-04: location: 1 provider: my-vultr-config image: 223 size: 13 startup_script_id: 493234 Similarly you can also specify a fiewall group ID using the option firewall_group_id. You can list firewall groups with .. code-block:: bash salt-cloud -f list_firewall_groups <name of vultr provider> To specify SSH keys to be preinstalled on the server, use the ssh_key_names setting .. code-block:: yaml nyc-2gb-1cpu-ubuntu-17-04: location: 1 provider: my-vultr-config image: 223 size: 13 ssh_key_names: dev1,dev2,salt-master You can list SSH keys available on your account using .. code-block:: bash salt-cloud -f list_keypairs <name of vultr provider> � N)�SaltCloudConfigError�SaltCloudSystemExit�vultrc C s t � du rdS tS )zA Set up the Vultr functions and check for configurations F)�get_configured_provider�__virtualname__� r r �M/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/vultrpy.py�__virtual___ s r c C s"