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: gce.cpython-310.pyc
o �xe� � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl ZddlZddl ZddlZddlT ddlmZ ddlmZ ddlmZ dZz(ddlZddlmZmZ dd lmZ dd lmZ dd lmZ dd l!mZ" dZ#W n e$y� e�%� ZdZ#Y nw e�&e'�Z(d Z)dZ*dZ+ee,e-� �Z,ee.e-� �Z.ee/e-� �Z/ee0e-� �Z0ee1e-� �Z1ee2e-� �Z2e�3d�Z4dd� Z5dd� Z6dd� Z7dd� Z8d�dd�Z9dd� Z:dd� Z;dd � Z<d!d"� Z=d#d$� Z>d%d&� Z?d�d'd(�Z@d�d)d*�ZAd�d+d,�ZBd-d.� ZCd/d0� ZDd1d2� ZEd3d4� ZFd5d6� ZGd7d8� ZHd9d:� ZId;d<� ZJd=d>� ZKd?d@� ZLdAdB� ZMdCdD� ZNdEdF� ZOdGdH� ZPd�dIdJ�ZQd�dKdL�ZRd�dMdN�ZSd�dOdP�ZTd�dQdR�ZUd�dSdT�ZVd�dUdV�ZWd�dWdX�ZXd�dYdZ�ZYd�d[d\�ZZd�d]d^�Z[d�d_d`�Z\d�dadb�Z]d�dcdd�Z^d�dedf�Z_d�dgdh�Z`d�didj�Zad�dkdl�Zbd�dmdn�Zcd�dodp�Zdd�dqdr�Zed�dsdt�Zfd�dudv�Zgd�dwdx�Zhd�dydz�Zid�d{d|�Zjd�d}d~�Zkd�dd��Zld�d�d��Zmd�d�d��Znd�d�d��Zod�d�d��Z/d�d�d��Zpd�d�� Zqd�d�d��Zrd�d�d��Zsd�d�d��ZtdS )�a� Copyright 2013 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Google Compute Engine Module ============================ The Google Compute Engine module. This module interfaces with Google Compute Engine (GCE). To authenticate to GCE, you will need to create a Service Account. To set up Service Account Authentication, follow the :ref:`gce_setup` instructions. Example Provider Configuration ------------------------------ .. code-block:: yaml my-gce-config: # The Google Cloud Platform Project ID project: "my-project-id" # The Service Account client ID service_account_email_address: 1234567890@developer.gserviceaccount.com # The location of the private key (PEM format) service_account_private_key: /home/erjohnso/PRIVKEY.pem driver: gce # Specify whether to use public or private IP for deploy script. # Valid options are: # private_ips - The salt-master is also hosted with GCE # public_ips - The salt-master is hosted outside of GCE ssh_interface: public_ips :maintainer: Eric Johnson <erjohnso@google.com> :maintainer: Russell Tolle <russ.tolle@gmail.com> :depends: libcloud >= 1.0.0 � N)�literal_eval)�*)�SaltCloudSystemExit)�namespaced_function)�Version)�ResourceInUseError�ResourceNotFoundError)� get_driver)�ProviderTF�gcez salt-cloudz0.2.0z'^(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)$c C s� t sdS ttj�td�k rdS t� du rdS t� du rdS td �� D ]$\} }d|vr,q#|d }tj � |d �}|rGtjj �| |�du rG dS q#tS )zI Set up the libcloud functions and check for GCE configurations. )Fz apache-libcloud is not installedz2.5.0)Fz9The salt-cloud GCE driver requires apache-libcloud>=2.5.0FZ providersr �service_account_private_key)�HAS_LIBCLOUDr �libcloud�__version__�get_configured_provider�get_dependencies�__opts__�items�os�path� expanduser�salt�utilsZcloudZcheck_key_path_and_mode�__virtualname__)�providerZdetailsZ parameters�pathname� r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/gce.py�__virtual__g s&