Class: Ansible::Ruby::Modules::Gce

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb

Overview

Creates or terminates Google Compute Engine (GCE) instances. See U(cloud.google.com/products/compute-engine) for an overview. Full install/configuration instructions for the gce* modules can be found in the comments of ansible/test/gce_tests.py.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#credentials_fileString?

Returns path to the JSON file associated with the service account email.

Returns:

  • (String, nil)

    path to the JSON file associated with the service account email



38
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 38

attribute :credentials_file

#disk_auto_deleteString?

Returns if set boot disk will be removed after instance destruction.

Returns:

  • (String, nil)

    if set boot disk will be removed after instance destruction



80
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 80

attribute :disk_auto_delete

#disksObject?

Returns a list of persistent disks to attach to the instance; a string value gives the name of the disk; alternatively, a dictionary value can define ‘name’ and ‘mode’ (‘READ_ONLY’ or ‘READ_WRITE’). The first entry will be the boot disk (which must be READ_WRITE).

Returns:

  • (Object, nil)

    a list of persistent disks to attach to the instance; a string value gives the name of the disk; alternatively, a dictionary value can define ‘name’ and ‘mode’ (‘READ_ONLY’ or ‘READ_WRITE’). The first entry will be the boot disk (which must be READ_WRITE).



58
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 58

attribute :disks

#external_ipString?

Returns type of external ip, ephemeral by default; alternatively, a list of fixed gce ips or ip names can be given (if there is not enough specified ip, ‘ephemeral’ will be used).

Returns:

  • (String, nil)

    type of external ip, ephemeral by default; alternatively, a list of fixed gce ips or ip names can be given (if there is not enough specified ip, ‘ephemeral’ will be used)



76
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 76

attribute :external_ip

#imageString?

Returns image string to use for the instance.

Returns:

  • (String, nil)

    image string to use for the instance



11
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 11

attribute :image

#instance_namesObject?

Returns a comma-separated list of instance names to create or destroy.

Returns:

  • (Object, nil)

    a comma-separated list of instance names to create or destroy



15
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 15

attribute :instance_names

#ip_forwardString?

Returns set to true if the instance can forward ip packets (useful for gateways).

Returns:

  • (String, nil)

    set to true if the instance can forward ip packets (useful for gateways)



72
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 72

attribute :ip_forward

#machine_typeString?

Returns machine type to use for the instance, use ‘n1-standard-1’ by default.

Returns:

  • (String, nil)

    machine type to use for the instance, use ‘n1-standard-1’ by default



18
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 18

attribute :machine_type

#metadataHash?

Returns a hash/dictionary of custom data for the instance; ‘…’.

Returns:

  • (Hash, nil)

    a hash/dictionary of custom data for the instance; ‘…’



22
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 22

attribute :metadata

#nameString?

Returns identifier when working with a single instance.

Returns:

  • (String, nil)

    identifier when working with a single instance



46
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 46

attribute :name

#networkString?

Returns name of the network, ‘default’ will be used if not specified.

Returns:

  • (String, nil)

    name of the network, ‘default’ will be used if not specified



50
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 50

attribute :network

#pem_fileString?

Returns path to the pem file associated with the service account email This option is deprecated. Use ‘credentials_file’.

Returns:

  • (String, nil)

    path to the pem file associated with the service account email This option is deprecated. Use ‘credentials_file’.



34
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 34

attribute :pem_file

#persistent_boot_diskString?

Returns if set, create the instance with a persistent boot disk.

Returns:

  • (String, nil)

    if set, create the instance with a persistent boot disk



54
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 54

attribute :persistent_boot_disk

#preemptibleString?

Returns if set to true, instances will be preemptible and time-limited. (requires libcloud >= 0.20.0).

Returns:

  • (String, nil)

    if set to true, instances will be preemptible and time-limited. (requires libcloud >= 0.20.0)



84
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 84

attribute :preemptible

#project_idString?

Returns your GCE project ID.

Returns:

  • (String, nil)

    your GCE project ID



42
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 42

attribute :project_id

#service_account_emailString?

Returns service account email.

Returns:

  • (String, nil)

    service account email



26
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 26

attribute :service_account_email

#service_account_permissions:bigquery, ...

Returns service account permissions (see U(cloud.google.com/sdk/gcloud/reference/compute/instances/create), –scopes section for detailed information).

Returns:

  • (:bigquery, :"cloud-platform", :"compute-ro", :"compute-rw", :"useraccounts-ro", :"useraccounts-rw", :datastore, :"logging-write", :monitoring, :sql, :"sql-admin", :"storage-full", :"storage-ro", :"storage-rw", :taskqueue, :"userinfo-email", nil)

    service account permissions (see U(cloud.google.com/sdk/gcloud/reference/compute/instances/create), –scopes section for detailed information)



30
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 30

attribute :service_account_permissions

#state:active, ...

Returns desired state of the resource.

Returns:

  • (:active, :present, :absent, :deleted, nil)

    desired state of the resource



61
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 61

attribute :state

#tagsObject?

Returns a comma-separated list of tags to associate with the instance.

Returns:

  • (Object, nil)

    a comma-separated list of tags to associate with the instance



65
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 65

attribute :tags

#zoneString

Returns the GCE zone to use.

Returns:

  • (String)

    the GCE zone to use



68
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce.rb', line 68

attribute :zone