Class: Ansible::Ruby::Modules::Gce_lb
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gce_lb
- 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
-
#credentials_file ⇒ Object?
Path to the JSON file associated with the service account email.
-
#external_ip ⇒ Object?
The external static IPv4 (or auto-assigned) address for the LB.
-
#httphealthcheck_healthy_count ⇒ Integer?
Number of consecutive successful checks before marking a node healthy.
-
#httphealthcheck_host ⇒ Object?
Host header to pass through on HTTP check requests.
-
#httphealthcheck_interval ⇒ Integer?
The duration in seconds between each health check request.
-
#httphealthcheck_name ⇒ String?
The name identifier for the HTTP health check.
-
#httphealthcheck_path ⇒ String?
The url path to use for HTTP health checking.
-
#httphealthcheck_port ⇒ Integer?
The TCP port to use for HTTP health checking.
-
#httphealthcheck_timeout ⇒ Integer?
The timeout in seconds before a request is considered a failed check.
-
#httphealthcheck_unhealthy_count ⇒ Integer?
Number of consecutive failed checks before marking a node unhealthy.
-
#members ⇒ Array<String>, ...
A list of zone/nodename pairs, e.g [‘us-central1-a/www-a’, …].
-
#name ⇒ String?
Name of the load-balancer resource.
-
#pem_file ⇒ Object?
Path to the pem file associated with the service account email This option is deprecated.
-
#port_range ⇒ Object?
The port (range) to forward, e.g.
-
#project_id ⇒ Object?
Your GCE project ID.
-
#protocol ⇒ :tcp, ...
The protocol used for the load-balancer packet forwarding, tcp or udp.
-
#region ⇒ String?
The GCE region where the load-balancer is defined.
-
#service_account_email ⇒ Object?
Service account email.
-
#state ⇒ :active, ...
Desired state of the LB.
Methods inherited from Base
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_file ⇒ Object?
Returns 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_ip ⇒ Object?
Returns 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_count ⇒ Integer?
Returns 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_host ⇒ Object?
Returns 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_interval ⇒ Integer?
Returns 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_name ⇒ String?
Returns 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_path ⇒ String?
Returns 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_port ⇒ Integer?
Returns 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_timeout ⇒ Integer?
Returns 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_count ⇒ Integer?
Returns 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 |
#members ⇒ Array<String>, ...
Returns 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 |
#name ⇒ String?
Returns name of the load-balancer resource.
42 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_lb.rb', line 42 attribute :name |
#pem_file ⇒ Object?
Returns 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_range ⇒ Object?
Returns 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_id ⇒ Object?
Returns 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.
46 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_lb.rb', line 46 attribute :protocol |
#region ⇒ String?
Returns 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_email ⇒ Object?
Returns 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.
64 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_lb.rb', line 64 attribute :state |