??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
ßUdac @` s0 d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z yu d d
l m
Z
d d l m Z d d
l
m
Z d d l m Z d d l m Z m Z m Z m Z e
j Z e Z Wn e k
rÚ e Z n Xd d
l m Z d d l m Z m Z m! Z! m" Z" d „ Z# e$ d k r,e# ƒ n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bysk
---
module: gce_lb
version_added: "1.5"
short_description: create/destroy GCE load-balancer resources
description:
- 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(https://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.
options:
httphealthcheck_name:
description:
- the name identifier for the HTTP health check
httphealthcheck_port:
description:
- the TCP port to use for HTTP health checking
default: 80
httphealthcheck_path:
description:
- the url path to use for HTTP health checking
default: "/"
httphealthcheck_interval:
description:
- the duration in seconds between each health check request
default: 5
httphealthcheck_timeout:
description:
- the timeout in seconds before a request is considered a failed check
default: 5
httphealthcheck_unhealthy_count:
description:
- number of consecutive failed checks before marking a node unhealthy
default: 2
httphealthcheck_healthy_count:
description:
- number of consecutive successful checks before marking a node healthy
default: 2
httphealthcheck_host:
description:
- host header to pass through on HTTP check requests
name:
description:
- name of the load-balancer resource
protocol:
description:
- the protocol used for the load-balancer packet forwarding, tcp or udp
default: "tcp"
choices: ['tcp', 'udp']
region:
description:
- the GCE region where the load-balancer is defined
external_ip:
description:
- the external static IPv4 (or auto-assigned) address for the LB
port_range:
description:
- the port (range) to forward, e.g. 80 or 8000-8888 defaults to all ports
members:
description:
- a list of zone/nodename pairs, e.g ['us-central1-a/www-a', ...]
aliases: ['nodes']
state:
description:
- desired state of the LB
default: "present"
choices: ["active", "present", "absent", "deleted"]
service_account_email:
version_added: "1.6"
description:
- service account email
pem_file:
version_added: "1.6"
description:
- path to the pem file associated with the service account email
This option is deprecated. Use 'credentials_file'.
credentials_file:
version_added: "2.1.0"
description:
- path to the JSON file associated with the service account email
project_id:
version_added: "1.6"
description:
- your GCE project ID
requirements:
- "python >= 2.6"
- "apache-libcloud >= 0.13.3, >= 0.17.0 if using JSON credentials"
author: "Eric Johnson (@erjohnso) "
s-
# Simple example of creating a new LB, adding members, and a health check
- local_action:
module: gce_lb
name: testlb
region: us-central1
members: ["us-central1-a/www-a", "us-central1-b/www-b"]
httphealthcheck_name: hc
httphealthcheck_port: 80
httphealthcheck_path: "/up"
( t Provider( t
get_driver( t GoogleBaseErrort QuotaExceededErrort ResourceExistsErrort ResourceNotFoundError( t
AnsibleModule( t USER_AGENT_PRODUCTt USER_AGENT_VERSIONt gce_connectt unexpected_error_msgc ) C` sJ t d t d t ƒ d t d d d d ƒ d t d d ƒ d
t d d d d ƒ d t d d d d ƒ d
t d d d d ƒ d t d d d d ƒ d t ƒ d t ƒ d t d d ƒ d t ƒ d t ƒ d t ƒ d t d d ƒ d t d d ƒ d t ƒ d t d d ƒ d t d d ƒ d t ƒ ƒ ƒ } t s6| j d d! ƒ n t | ƒ } | j j d ƒ } | j j d ƒ } | j j d ƒ } | j j d
ƒ } | j j d ƒ } | j j d
ƒ } | j j d ƒ } | j j d ƒ } | j j d ƒ }
| j j d ƒ } | j j d ƒ } | j j d ƒ }
| j j d ƒ } | j j d ƒ } | j j d ƒ } y6 t t j ƒ d" | ƒ } | j
j d# t t
f ƒ Wn/ t k
r·} | j d t | ƒ d$ t ƒ n Xt } i |
d 6| d 6} |
rý| rý| j d d% d&