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
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.
The Google Compute Engine module. This module interfaces with Google Compute Engine. To authenticate to GCE, you will need to create a Service Account.
my-gce-config:
# The Google Cloud Platform Project ID
project: google.com:erjohnso
# 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
provider: gce
maintainer: | Eric Johnson <erjohnso@google.com> |
---|---|
maturity: | new |
depends: | libcloud >= 0.14.0-beta3 |
depends: | pycrypto >= 2.1 |
Return a dict of all available VM images on the cloud provider with relevant data
Note that for GCE, there are custom images within the project, but the generic images are in other projects. This returns a dict of images in the project plus images in 'debian-cloud' and 'centos-cloud' (If there is overlap in names, the one in the current project is used.)
Return a dict of all available VM locations on the cloud provider with relevant data
Return a dict of available instances sizes (a.k.a machine types) and convert them to something more serializable.
Create a single GCE instance from a data dict.
Call 'destroy' on the instance. Can be called with "-a destroy" or -d
Return the first configured instance.
Return a conn object for the passed VM data
Return a list of the VMs that are on the provider
Return a list of the VMs that are on the provider, with all fields
Return a list of the VMs that are on the provider, with select fields
Call GCE 'reset' on the instance.
Return the script deployment object
Show the details of the existing instance.
Current Salt release: 2014.1.6
Docs for previous releases on salt.rtfd.org.