Bug fixes for GCP modules (#60115)
This commit is contained in:
parent
be459c00bf
commit
6cb5b67b22
9 changed files with 26 additions and 25 deletions
|
@ -174,7 +174,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
register: instancegroup
|
||||
|
||||
- name: create a http health check
|
||||
- name: create a HTTP health check
|
||||
gcp_compute_http_health_check:
|
||||
name: httphealthcheck-globalforwardingrule
|
||||
healthy_threshold: 10
|
||||
|
@ -201,7 +201,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
register: backendservice
|
||||
|
||||
- name: create a url map
|
||||
- name: create a URL map
|
||||
gcp_compute_url_map:
|
||||
name: urlmap-globalforwardingrule
|
||||
default_service: "{{ backendservice }}"
|
||||
|
@ -211,7 +211,7 @@ EXAMPLES = '''
|
|||
state: present
|
||||
register: urlmap
|
||||
|
||||
- name: create a target http proxy
|
||||
- name: create a target HTTP proxy
|
||||
gcp_compute_target_http_proxy:
|
||||
name: targethttpproxy-globalforwardingrule
|
||||
url_map: "{{ urlmap }}"
|
||||
|
|
|
@ -120,7 +120,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: create a http health check
|
||||
- name: create a HTTP health check
|
||||
gcp_compute_http_health_check:
|
||||
name: test_object
|
||||
healthy_threshold: 10
|
||||
|
|
|
@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an HTTP health check
|
||||
- name: get info on a HTTP health check
|
||||
gcp_compute_http_health_check_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -117,7 +117,7 @@ notes:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: create a https health check
|
||||
- name: create a HTTPS health check
|
||||
gcp_compute_https_health_check:
|
||||
name: test_object
|
||||
healthy_threshold: 10
|
||||
|
|
|
@ -52,7 +52,7 @@ extends_documentation_fragment: gcp
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: get info on an HTTPS health check
|
||||
- name: get info on a HTTPS health check
|
||||
gcp_compute_https_health_check_info:
|
||||
filters:
|
||||
- name = test_object
|
||||
|
|
|
@ -321,7 +321,7 @@ options:
|
|||
description:
|
||||
- Specifies the title of an existing network. Not setting the network title
|
||||
will select the default network interface, which could have SSH already
|
||||
configured.
|
||||
configured .
|
||||
- 'This field represents a link to a Network resource in GCP. It can be specified
|
||||
in two ways. First, you can place a dictionary with key ''selfLink'' and
|
||||
value of your resource''s selfLink Alternatively, you can add `register:
|
||||
|
@ -787,7 +787,8 @@ networkInterfaces:
|
|||
network:
|
||||
description:
|
||||
- Specifies the title of an existing network. Not setting the network title
|
||||
will select the default network interface, which could have SSH already configured.
|
||||
will select the default network interface, which could have SSH already configured
|
||||
.
|
||||
returned: success
|
||||
type: dict
|
||||
networkIP:
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: present
|
||||
register: instancegroup
|
||||
- name: create a http health check
|
||||
- name: create a HTTP health check
|
||||
gcp_compute_http_health_check:
|
||||
name: httphealthcheck-globalforwardingrule
|
||||
healthy_threshold: 10
|
||||
|
@ -55,7 +55,7 @@
|
|||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: present
|
||||
register: backendservice
|
||||
- name: create a url map
|
||||
- name: create a URL map
|
||||
gcp_compute_url_map:
|
||||
name: urlmap-globalforwardingrule
|
||||
default_service: "{{ backendservice }}"
|
||||
|
@ -64,7 +64,7 @@
|
|||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: present
|
||||
register: urlmap
|
||||
- name: create a target http proxy
|
||||
- name: create a target HTTP proxy
|
||||
gcp_compute_target_http_proxy:
|
||||
name: targethttpproxy-globalforwardingrule
|
||||
url_map: "{{ urlmap }}"
|
||||
|
@ -183,7 +183,7 @@
|
|||
#---------------------------------------------------------
|
||||
# Post-test teardown
|
||||
# If errors happen, don't crash the playbook!
|
||||
- name: delete a target http proxy
|
||||
- name: delete a target HTTP proxy
|
||||
gcp_compute_target_http_proxy:
|
||||
name: targethttpproxy-globalforwardingrule
|
||||
url_map: "{{ urlmap }}"
|
||||
|
@ -193,7 +193,7 @@
|
|||
state: absent
|
||||
register: httpproxy
|
||||
ignore_errors: true
|
||||
- name: delete a url map
|
||||
- name: delete a URL map
|
||||
gcp_compute_url_map:
|
||||
name: urlmap-globalforwardingrule
|
||||
default_service: "{{ backendservice }}"
|
||||
|
@ -217,7 +217,7 @@
|
|||
state: absent
|
||||
register: backendservice
|
||||
ignore_errors: true
|
||||
- name: delete a http health check
|
||||
- name: delete a HTTP health check
|
||||
gcp_compute_http_health_check:
|
||||
name: httphealthcheck-globalforwardingrule
|
||||
healthy_threshold: 10
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#
|
||||
# ----------------------------------------------------------------------------
|
||||
# Pre-test setup
|
||||
- name: delete a http health check
|
||||
- name: delete a HTTP health check
|
||||
gcp_compute_http_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
@ -25,7 +25,7 @@
|
|||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: absent
|
||||
#----------------------------------------------------------
|
||||
- name: create a http health check
|
||||
- name: create a HTTP health check
|
||||
gcp_compute_http_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
@ -56,7 +56,7 @@
|
|||
that:
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a http health check that already exists
|
||||
- name: create a HTTP health check that already exists
|
||||
gcp_compute_http_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
@ -73,7 +73,7 @@
|
|||
that:
|
||||
- result.changed == false
|
||||
#----------------------------------------------------------
|
||||
- name: delete a http health check
|
||||
- name: delete a HTTP health check
|
||||
gcp_compute_http_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
@ -104,7 +104,7 @@
|
|||
that:
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a http health check that does not exist
|
||||
- name: delete a HTTP health check that does not exist
|
||||
gcp_compute_http_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#
|
||||
# ----------------------------------------------------------------------------
|
||||
# Pre-test setup
|
||||
- name: delete a https health check
|
||||
- name: delete a HTTPS health check
|
||||
gcp_compute_https_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
@ -25,7 +25,7 @@
|
|||
service_account_file: "{{ gcp_cred_file }}"
|
||||
state: absent
|
||||
#----------------------------------------------------------
|
||||
- name: create a https health check
|
||||
- name: create a HTTPS health check
|
||||
gcp_compute_https_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
@ -56,7 +56,7 @@
|
|||
that:
|
||||
- results['resources'] | length == 1
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: create a https health check that already exists
|
||||
- name: create a HTTPS health check that already exists
|
||||
gcp_compute_https_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
@ -73,7 +73,7 @@
|
|||
that:
|
||||
- result.changed == false
|
||||
#----------------------------------------------------------
|
||||
- name: delete a https health check
|
||||
- name: delete a HTTPS health check
|
||||
gcp_compute_https_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
@ -104,7 +104,7 @@
|
|||
that:
|
||||
- results['resources'] | length == 0
|
||||
# ----------------------------------------------------------------------------
|
||||
- name: delete a https health check that does not exist
|
||||
- name: delete a HTTPS health check that does not exist
|
||||
gcp_compute_https_health_check:
|
||||
name: "{{ resource_name }}"
|
||||
healthy_threshold: 10
|
||||
|
|
Loading…
Reference in a new issue