Class: Ansible::Ruby::Modules::Gce_lb

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

Overview

This module can create and destroy Google Compute Engine C(loadbalancer) and C(httphealthcheck) resources. The primary LB resource is the C(load_balancer) resource and the health check parameters are all prefixed with I(httphealthcheck). The full documentation for Google Compute Engine load balancing is at U(developers.google.com/compute/docs/load-balancing/). However, the ansible module simplifies the configuration by following the libcloud model. 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_fileObject?

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

Returns:

  • (Object, nil)

    path to the JSON file associated with the service account email



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

attribute :credentials_file

#external_ipObject?

Returns the external static IPv4 (or auto-assigned) address for the LB.

Returns:

  • (Object, nil)

    the external static IPv4 (or auto-assigned) address for the LB



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

attribute :external_ip

#httphealthcheck_healthy_countInteger?

Returns number of consecutive successful checks before marking a node healthy.

Returns:

  • (Integer, nil)

    number of consecutive successful checks before marking a node healthy



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

attribute :httphealthcheck_healthy_count

#httphealthcheck_hostObject?

Returns host header to pass through on HTTP check requests.

Returns:

  • (Object, nil)

    host header to pass through on HTTP check requests



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

attribute :httphealthcheck_host

#httphealthcheck_intervalInteger?

Returns the duration in seconds between each health check request.

Returns:

  • (Integer, nil)

    the duration in seconds between each health check request



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

attribute :httphealthcheck_interval

#httphealthcheck_nameString?

Returns the name identifier for the HTTP health check.

Returns:

  • (String, nil)

    the name identifier for the HTTP health check



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

attribute :httphealthcheck_name

#httphealthcheck_pathString?

Returns the url path to use for HTTP health checking.

Returns:

  • (String, nil)

    the url path to use for HTTP health checking



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

attribute :httphealthcheck_path

#httphealthcheck_portInteger?

Returns the TCP port to use for HTTP health checking.

Returns:

  • (Integer, nil)

    the TCP port to use for HTTP health checking



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

attribute :httphealthcheck_port

#httphealthcheck_timeoutInteger?

Returns the timeout in seconds before a request is considered a failed check.

Returns:

  • (Integer, nil)

    the timeout in seconds before a request is considered a failed check



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

attribute :httphealthcheck_timeout

#httphealthcheck_unhealthy_countInteger?

Returns number of consecutive failed checks before marking a node unhealthy.

Returns:

  • (Integer, nil)

    number of consecutive failed checks before marking a node unhealthy



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

attribute :httphealthcheck_unhealthy_count

#membersArray<String>, ...

Returns a list of zone/nodename pairs, e.g [‘us-central1-a/www-a’, …].

Returns:

  • (Array<String>, String, nil)

    a list of zone/nodename pairs, e.g [‘us-central1-a/www-a’, …]



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

attribute :members

#nameString?

Returns name of the load-balancer resource.

Returns:

  • (String, nil)

    name of the load-balancer resource



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

attribute :name

#pem_fileObject?

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

Returns:

  • (Object, nil)

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



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

attribute :pem_file

#port_rangeObject?

Returns the port (range) to forward, e.g. 80 or 8000-8888 defaults to all ports.

Returns:

  • (Object, nil)

    the port (range) to forward, e.g. 80 or 8000-8888 defaults to all ports



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

attribute :port_range

#project_idObject?

Returns your GCE project ID.

Returns:

  • (Object, nil)

    your GCE project ID



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

attribute :project_id

#protocol:tcp, ...

Returns the protocol used for the load-balancer packet forwarding, tcp or udp.

Returns:

  • (:tcp, :udp, nil)

    the protocol used for the load-balancer packet forwarding, tcp or udp



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

attribute :protocol

#regionString?

Returns the GCE region where the load-balancer is defined.

Returns:

  • (String, nil)

    the GCE region where the load-balancer is defined



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

attribute :region

#service_account_emailObject?

Returns service account email.

Returns:

  • (Object, nil)

    service account email



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

attribute :service_account_email

#state:active, ...

Returns desired state of the LB.

Returns:

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

    desired state of the LB



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

attribute :state