Bug fixes for GCP (as of 2019-07-09T06:06:53Z) (#59172)

* Bug fixes for GCP modules

* ignore syntax
pull/59319/head
The Magician 5 years ago committed by Matt Clay
parent b75e8d19be
commit c5e26ab4da

@ -57,32 +57,38 @@ options:
name-of-resource` to a gcp_compute_backend_service task and then set this default_service name-of-resource` to a gcp_compute_backend_service task and then set this default_service
field to "{{ name-of-resource }}"' field to "{{ name-of-resource }}"'
required: true required: true
type: dict
description: description:
description: description:
- An optional description of this resource. Provide this property when you create - An optional description of this resource. Provide this property when you create
the resource. the resource.
required: false required: false
type: str
host_rules: host_rules:
description: description:
- The list of HostRules to use against the URL. - The list of HostRules to use against the URL.
required: false required: false
type: list
suboptions: suboptions:
description: description:
description: description:
- An optional description of this HostRule. Provide this property when you - An optional description of this HostRule. Provide this property when you
create the resource. create the resource.
required: false required: false
type: str
hosts: hosts:
description: description:
- The list of host patterns to match. They must be valid hostnames, except - The list of host patterns to match. They must be valid hostnames, except
* will match any string of ([a-z0-9-.]*). In that case, * must be the first * will match any string of ([a-z0-9-.]*). In that case, * must be the first
character and must be followed in the pattern by either - or . character and must be followed in the pattern by either - or .
required: true required: true
type: list
path_matcher: path_matcher:
description: description:
- The name of the PathMatcher to use to match the path portion of the URL - The name of the PathMatcher to use to match the path portion of the URL
if the hostRule matches the URL's host portion. if the hostRule matches the URL's host portion.
required: true required: true
type: str
name: name:
description: description:
- Name of the resource. Provided by the client when the resource is created. The - Name of the resource. Provided by the client when the resource is created. The
@ -92,10 +98,12 @@ options:
characters must be a dash, lowercase letter, or digit, except the last character, characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash. which cannot be a dash.
required: true required: true
type: str
path_matchers: path_matchers:
description: description:
- The list of named PathMatchers to use against the URL. - The list of named PathMatchers to use against the URL.
required: false required: false
type: list
suboptions: suboptions:
default_service: default_service:
description: description:
@ -107,18 +115,22 @@ options:
name-of-resource` to a gcp_compute_backend_service task and then set this name-of-resource` to a gcp_compute_backend_service task and then set this
default_service field to "{{ name-of-resource }}"' default_service field to "{{ name-of-resource }}"'
required: true required: true
type: dict
description: description:
description: description:
- An optional description of this resource. - An optional description of this resource.
required: false required: false
type: str
name: name:
description: description:
- The name to which this PathMatcher is referred by the HostRule. - The name to which this PathMatcher is referred by the HostRule.
required: true required: true
type: str
path_rules: path_rules:
description: description:
- The list of path rules. - The list of path rules.
required: false required: false
type: list
suboptions: suboptions:
paths: paths:
description: description:
@ -127,6 +139,7 @@ options:
to the path matcher does not include any text after the first ? or #, to the path matcher does not include any text after the first ? or #,
and those chars are not allowed here.' and those chars are not allowed here.'
required: true required: true
type: list
service: service:
description: description:
- A reference to the BackendService resource if this rule is matched. - A reference to the BackendService resource if this rule is matched.
@ -136,24 +149,29 @@ options:
you can add `register: name-of-resource` to a gcp_compute_backend_service you can add `register: name-of-resource` to a gcp_compute_backend_service
task and then set this service field to "{{ name-of-resource }}"' task and then set this service field to "{{ name-of-resource }}"'
required: true required: true
type: dict
tests: tests:
description: description:
- The list of expected URL mappings. Requests to update this UrlMap will succeed - The list of expected URL mappings. Requests to update this UrlMap will succeed
only if all of the test cases pass. only if all of the test cases pass.
required: false required: false
type: list
suboptions: suboptions:
description: description:
description: description:
- Description of this test case. - Description of this test case.
required: false required: false
type: str
host: host:
description: description:
- Host portion of the URL. - Host portion of the URL.
required: true required: true
type: str
path: path:
description: description:
- Path portion of the URL. - Path portion of the URL.
required: true required: true
type: str
service: service:
description: description:
- A reference to expected BackendService resource the given URL should be - A reference to expected BackendService resource the given URL should be
@ -164,6 +182,7 @@ options:
name-of-resource` to a gcp_compute_backend_service task and then set this name-of-resource` to a gcp_compute_backend_service task and then set this
service field to "{{ name-of-resource }}"' service field to "{{ name-of-resource }}"'
required: true required: true
type: dict
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -55,10 +55,12 @@ options:
be a lowercase letter, and all following characters must be a dash, lowercase be a lowercase letter, and all following characters must be a dash, lowercase
letter, or digit, except the last character, which cannot be a dash. letter, or digit, except the last character, which cannot be a dash.
required: true required: true
type: str
description: description:
description: description:
- An optional description of this resource. - An optional description of this resource.
required: false required: false
type: str
target_vpn_gateway: target_vpn_gateway:
description: description:
- URL of the Target VPN gateway with which this VPN tunnel is associated. - URL of the Target VPN gateway with which this VPN tunnel is associated.
@ -68,6 +70,7 @@ options:
name-of-resource` to a gcp_compute_target_vpn_gateway task and then set this name-of-resource` to a gcp_compute_target_vpn_gateway task and then set this
target_vpn_gateway field to "{{ name-of-resource }}"' target_vpn_gateway field to "{{ name-of-resource }}"'
required: false required: false
type: dict
router: router:
description: description:
- URL of router resource to be used for dynamic routing. - URL of router resource to be used for dynamic routing.
@ -77,21 +80,25 @@ options:
to a gcp_compute_router task and then set this router field to "{{ name-of-resource to a gcp_compute_router task and then set this router field to "{{ name-of-resource
}}"' }}"'
required: false required: false
type: dict
peer_ip: peer_ip:
description: description:
- IP address of the peer VPN gateway. Only IPv4 is supported. - IP address of the peer VPN gateway. Only IPv4 is supported.
required: false required: false
type: str
shared_secret: shared_secret:
description: description:
- Shared secret used to set the secure session between the Cloud VPN gateway and - Shared secret used to set the secure session between the Cloud VPN gateway and
the peer VPN gateway. the peer VPN gateway.
required: true required: true
type: str
ike_version: ike_version:
description: description:
- IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. - IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway.
- Acceptable IKE versions are 1 or 2. Default version is 2. - Acceptable IKE versions are 1 or 2. Default version is 2.
required: false required: false
default: '2' default: '2'
type: int
local_traffic_selector: local_traffic_selector:
description: description:
- Local traffic selector to use when establishing the VPN tunnel with peer VPN - Local traffic selector to use when establishing the VPN tunnel with peer VPN
@ -99,6 +106,7 @@ options:
The ranges should be disjoint. The ranges should be disjoint.
- Only IPv4 is supported. - Only IPv4 is supported.
required: false required: false
type: list
remote_traffic_selector: remote_traffic_selector:
description: description:
- Remote traffic selector to use when establishing the VPN tunnel with peer VPN - Remote traffic selector to use when establishing the VPN tunnel with peer VPN
@ -106,10 +114,12 @@ options:
The ranges should be disjoint. The ranges should be disjoint.
- Only IPv4 is supported. - Only IPv4 is supported.
required: false required: false
type: list
region: region:
description: description:
- The region where the tunnel is located. - The region where the tunnel is located.
required: true required: true
type: str
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
notes: notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/vpnTunnels)' - 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/vpnTunnels)'

@ -49,6 +49,7 @@ options:
description: description:
- The region where the tunnel is located. - The region where the tunnel is located.
required: true required: true
type: str
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -53,10 +53,12 @@ options:
and can be up to 40 characters. Must be Lowercase letters, numbers, and hyphens and can be up to 40 characters. Must be Lowercase letters, numbers, and hyphens
only. Must start with a letter. Must end with a number or a letter. only. Must start with a letter. Must end with a number or a letter.
required: false required: false
type: str
description: description:
description: description:
- An optional description of this cluster. - An optional description of this cluster.
required: false required: false
type: str
initial_node_count: initial_node_count:
description: description:
- The number of nodes to create in this cluster. You must ensure that your Compute - The number of nodes to create in this cluster. You must ensure that your Compute
@ -67,6 +69,7 @@ options:
name. Do not use this and a nodePool at the same time. name. Do not use this and a nodePool at the same time.
- This field has been deprecated. Please use nodePool.initial_node_count instead. - This field has been deprecated. Please use nodePool.initial_node_count instead.
required: false required: false
type: int
node_config: node_config:
description: description:
- Parameters used in creating the cluster's nodes. - Parameters used in creating the cluster's nodes.
@ -77,17 +80,20 @@ options:
the node configuration of the first node pool. If unspecified, the defaults the node configuration of the first node pool. If unspecified, the defaults
are used. are used.
required: false required: false
type: dict
suboptions: suboptions:
machine_type: machine_type:
description: description:
- The name of a Google Compute Engine machine type (e.g. - The name of a Google Compute Engine machine type (e.g.
- n1-standard-1). If unspecified, the default machine type is n1-standard-1. - n1-standard-1). If unspecified, the default machine type is n1-standard-1.
required: false required: false
type: str
disk_size_gb: disk_size_gb:
description: description:
- Size of the disk attached to each node, specified in GB. The smallest allowed - Size of the disk attached to each node, specified in GB. The smallest allowed
disk size is 10GB. If unspecified, the default disk size is 100GB. disk size is 10GB. If unspecified, the default disk size is 100GB.
required: false required: false
type: int
oauth_scopes: oauth_scopes:
description: description:
- The set of Google API scopes to be made available on all of the node VMs - The set of Google API scopes to be made available on all of the node VMs
@ -100,11 +106,13 @@ options:
- If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring - If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring
are enabled, in which case their required scopes will be added. are enabled, in which case their required scopes will be added.
required: false required: false
type: list
service_account: service_account:
description: description:
- The Google Cloud Platform Service Account to be used by the node VMs. If - The Google Cloud Platform Service Account to be used by the node VMs. If
no Service Account is specified, the "default" service account is used. no Service Account is specified, the "default" service account is used.
required: false required: false
type: str
metadata: metadata:
description: description:
- The metadata key/value pairs assigned to instances in the cluster. - The metadata key/value pairs assigned to instances in the cluster.
@ -120,11 +128,13 @@ options:
- 'An object containing a list of "key": value pairs.' - 'An object containing a list of "key": value pairs.'
- 'Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.' - 'Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
required: false required: false
type: dict
image_type: image_type:
description: description:
- The image type to use for this node. Note that for a given image type, the - The image type to use for this node. Note that for a given image type, the
latest version of it will be used. latest version of it will be used.
required: false required: false
type: str
labels: labels:
description: description:
- 'The map of Kubernetes labels (key/value pairs) to be applied to each node. - 'The map of Kubernetes labels (key/value pairs) to be applied to each node.
@ -136,6 +146,7 @@ options:
An object containing a list of "key": value pairs.' An object containing a list of "key": value pairs.'
- 'Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.' - 'Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
required: false required: false
type: dict
local_ssd_count: local_ssd_count:
description: description:
- The number of local SSD disks to be attached to the node. - The number of local SSD disks to be attached to the node.
@ -143,6 +154,7 @@ options:
available on a machine per zone. See: U(https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits) available on a machine per zone. See: U(https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits)
for more information.' for more information.'
required: false required: false
type: int
tags: tags:
description: description:
- The list of instance tags applied to all nodes. Tags are used to identify - The list of instance tags applied to all nodes. Tags are used to identify
@ -150,6 +162,7 @@ options:
client during cluster or node pool creation. Each tag within the list must client during cluster or node pool creation. Each tag within the list must
comply with RFC1035. comply with RFC1035.
required: false required: false
type: list
preemptible: preemptible:
description: description:
- 'Whether the nodes are created as preemptible VM instances. See: U(https://cloud.google.com/compute/docs/instances/preemptible) - 'Whether the nodes are created as preemptible VM instances. See: U(https://cloud.google.com/compute/docs/instances/preemptible)
@ -161,27 +174,32 @@ options:
- A list of hardware accelerators to be attached to each node. See U(https://cloud.google.com/compute/docs/gpus) - A list of hardware accelerators to be attached to each node. See U(https://cloud.google.com/compute/docs/gpus)
for more information about support for GPUs. for more information about support for GPUs.
required: false required: false
type: list
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
accelerator_count: accelerator_count:
description: description:
- The number of accelerator cards exposed to an instance. - The number of accelerator cards exposed to an instance.
required: false required: false
type: str
accelerator_type: accelerator_type:
description: description:
- The accelerator type resource name. - The accelerator type resource name.
required: false required: false
type: str
disk_type: disk_type:
description: description:
- Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') - Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
If unspecified, the default disk type is 'pd-standard' . If unspecified, the default disk type is 'pd-standard' .
required: false required: false
type: str
version_added: 2.9 version_added: 2.9
min_cpu_platform: min_cpu_platform:
description: description:
- Minimum CPU platform to be used by this instance. The instance may be scheduled - Minimum CPU platform to be used by this instance. The instance may be scheduled
on the specified or newer CPU platform. on the specified or newer CPU platform.
required: false required: false
type: str
version_added: 2.9 version_added: 2.9
taints: taints:
description: description:
@ -189,43 +207,51 @@ options:
- 'For more information, including usage and the valid values, see: U(https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) - 'For more information, including usage and the valid values, see: U(https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/)
.' .'
required: false required: false
type: list
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
key: key:
description: description:
- Key for taint. - Key for taint.
required: false required: false
type: str
value: value:
description: description:
- Value for taint. - Value for taint.
required: false required: false
type: str
effect: effect:
description: description:
- Effect for taint. - Effect for taint.
- 'Some valid choices include: "EFFECT_UNSPECIFIED", "NO_SCHEDULE", "PREFER_NO_SCHEDULE", - 'Some valid choices include: "EFFECT_UNSPECIFIED", "NO_SCHEDULE", "PREFER_NO_SCHEDULE",
"NO_EXECUTE"' "NO_EXECUTE"'
required: false required: false
type: str
master_auth: master_auth:
description: description:
- The authentication information for accessing the master endpoint. - The authentication information for accessing the master endpoint.
required: false required: false
type: dict
suboptions: suboptions:
username: username:
description: description:
- The username to use for HTTP basic authentication to the master endpoint. - The username to use for HTTP basic authentication to the master endpoint.
required: false required: false
type: str
password: password:
description: description:
- The password to use for HTTP basic authentication to the master endpoint. - The password to use for HTTP basic authentication to the master endpoint.
Because the master endpoint is open to the Internet, you should create a Because the master endpoint is open to the Internet, you should create a
strong password with a minimum of 16 characters. strong password with a minimum of 16 characters.
required: false required: false
type: str
client_certificate_config: client_certificate_config:
description: description:
- Configuration for client certificate authentication on the cluster. For - Configuration for client certificate authentication on the cluster. For
clusters before v1.12, if no configuration is specified, a client certificate clusters before v1.12, if no configuration is specified, a client certificate
is issued. is issued.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
issue_client_certificate: issue_client_certificate:
@ -241,6 +267,7 @@ options:
- if left as an empty string,logging.googleapis.com will be used. - if left as an empty string,logging.googleapis.com will be used.
- 'Some valid choices include: "logging.googleapis.com", "none"' - 'Some valid choices include: "logging.googleapis.com", "none"'
required: false required: false
type: str
monitoring_service: monitoring_service:
description: description:
- The monitoring service the cluster should use to write metrics. - The monitoring service the cluster should use to write metrics.
@ -250,15 +277,18 @@ options:
- if left as an empty string, monitoring.googleapis.com will be used. - if left as an empty string, monitoring.googleapis.com will be used.
- 'Some valid choices include: "monitoring.googleapis.com", "none"' - 'Some valid choices include: "monitoring.googleapis.com", "none"'
required: false required: false
type: str
network: network:
description: description:
- The name of the Google Compute Engine network to which the cluster is connected. - The name of the Google Compute Engine network to which the cluster is connected.
If left unspecified, the default network will be used. If left unspecified, the default network will be used.
required: false required: false
type: str
private_cluster_config: private_cluster_config:
description: description:
- Configuration for a private cluster. - Configuration for a private cluster.
required: false required: false
type: dict
version_added: 2.8 version_added: 2.8
suboptions: suboptions:
enable_private_nodes: enable_private_nodes:
@ -280,22 +310,26 @@ options:
set of masters, as well as the ILB VIP. This range must not overlap with set of masters, as well as the ILB VIP. This range must not overlap with
any other ranges in use within the cluster's network. any other ranges in use within the cluster's network.
required: false required: false
type: str
cluster_ipv4_cidr: cluster_ipv4_cidr:
description: description:
- The IP address range of the container pods in this cluster, in CIDR notation - The IP address range of the container pods in this cluster, in CIDR notation
(e.g. 10.96.0.0/14). Leave blank to have one automatically chosen or specify (e.g. 10.96.0.0/14). Leave blank to have one automatically chosen or specify
a /14 block in 10.0.0.0/8. a /14 block in 10.0.0.0/8.
required: false required: false
type: str
addons_config: addons_config:
description: description:
- Configurations for the various addons available to run in the cluster. - Configurations for the various addons available to run in the cluster.
required: false required: false
type: dict
suboptions: suboptions:
http_load_balancing: http_load_balancing:
description: description:
- Configuration for the HTTP (L7) load balancing controller addon, which makes - Configuration for the HTTP (L7) load balancing controller addon, which makes
it easy to set up HTTP load balancers for services in a cluster. it easy to set up HTTP load balancers for services in a cluster.
required: false required: false
type: dict
suboptions: suboptions:
disabled: disabled:
description: description:
@ -310,6 +344,7 @@ options:
or decreases the number of replica pods a replication controller has based or decreases the number of replica pods a replication controller has based
on the resource usage of the existing pods. on the resource usage of the existing pods.
required: false required: false
type: dict
suboptions: suboptions:
disabled: disabled:
description: description:
@ -324,6 +359,7 @@ options:
or not on the Master, it does not track whether network policy is enabled or not on the Master, it does not track whether network policy is enabled
for the nodes. for the nodes.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
disabled: disabled:
@ -335,11 +371,13 @@ options:
description: description:
- The name of the Google Compute Engine subnetwork to which the cluster is connected. - The name of the Google Compute Engine subnetwork to which the cluster is connected.
required: false required: false
type: str
locations: locations:
description: description:
- The list of Google Compute Engine zones in which the cluster's nodes should - The list of Google Compute Engine zones in which the cluster's nodes should
be located. be located.
required: false required: false
type: list
aliases: aliases:
- nodeLocations - nodeLocations
version_added: 2.9 version_added: 2.9
@ -348,11 +386,13 @@ options:
- The resource labels for the cluster to use to annotate any related Google Compute - The resource labels for the cluster to use to annotate any related Google Compute
Engine resources. Engine resources.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
legacy_abac: legacy_abac:
description: description:
- Configuration for the legacy ABAC authorization mode. - Configuration for the legacy ABAC authorization mode.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
enabled: enabled:
@ -367,6 +407,7 @@ options:
description: description:
- Configuration options for the NetworkPolicy feature. - Configuration options for the NetworkPolicy feature.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
provider: provider:
@ -374,6 +415,7 @@ options:
- The selected network policy provider. - The selected network policy provider.
- 'Some valid choices include: "PROVIDER_UNSPECIFIED", "CALICO"' - 'Some valid choices include: "PROVIDER_UNSPECIFIED", "CALICO"'
required: false required: false
type: str
enabled: enabled:
description: description:
- Whether network policy is enabled on the cluster. - Whether network policy is enabled on the cluster.
@ -385,12 +427,14 @@ options:
on a node in the node pool of this cluster. on a node in the node pool of this cluster.
- Only honored if cluster created with IP Alias support. - Only honored if cluster created with IP Alias support.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
max_pods_per_node: max_pods_per_node:
description: description:
- Constraint enforced on the max num of pods per node. - Constraint enforced on the max num of pods per node.
required: false required: false
type: str
enable_tpu: enable_tpu:
description: description:
- Enable the ability to use Cloud TPUs in this cluster. - Enable the ability to use Cloud TPUs in this cluster.
@ -401,11 +445,13 @@ options:
description: description:
- The IP address range of the Cloud TPUs in this cluster, in CIDR notation. - The IP address range of the Cloud TPUs in this cluster, in CIDR notation.
required: false required: false
type: str
version_added: 2.9 version_added: 2.9
location: location:
description: description:
- The location where the cluster is deployed. - The location where the cluster is deployed.
required: true required: true
type: str
aliases: aliases:
- zone - zone
version_added: 2.8 version_added: 2.8
@ -416,12 +462,14 @@ options:
- Any existing file at this path will be completely overwritten. - Any existing file at this path will be completely overwritten.
- This requires the PyYaml library. - This requires the PyYaml library.
required: false required: false
type: str
version_added: 2.9 version_added: 2.9
kubectl_context: kubectl_context:
description: description:
- The name of the context for the kubectl config file. Will default to the cluster - The name of the context for the kubectl config file. Will default to the cluster
name. name.
required: false required: false
type: str
version_added: 2.9 version_added: 2.9
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -44,6 +44,7 @@ options:
description: description:
- The location where the cluster is deployed. - The location where the cluster is deployed.
required: true required: true
type: str
aliases: aliases:
- region - region
- zone - zone

@ -55,21 +55,25 @@ options:
description: description:
- The name of the node pool. - The name of the node pool.
required: false required: false
type: str
config: config:
description: description:
- The node configuration of the pool. - The node configuration of the pool.
required: false required: false
type: dict
suboptions: suboptions:
machine_type: machine_type:
description: description:
- The name of a Google Compute Engine machine type (e.g. - The name of a Google Compute Engine machine type (e.g.
- n1-standard-1). If unspecified, the default machine type is n1-standard-1. - n1-standard-1). If unspecified, the default machine type is n1-standard-1.
required: false required: false
type: str
disk_size_gb: disk_size_gb:
description: description:
- Size of the disk attached to each node, specified in GB. The smallest allowed - Size of the disk attached to each node, specified in GB. The smallest allowed
disk size is 10GB. If unspecified, the default disk size is 100GB. disk size is 10GB. If unspecified, the default disk size is 100GB.
required: false required: false
type: int
oauth_scopes: oauth_scopes:
description: description:
- The set of Google API scopes to be made available on all of the node VMs - The set of Google API scopes to be made available on all of the node VMs
@ -82,11 +86,13 @@ options:
- If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring - If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring
are enabled, in which case their required scopes will be added. are enabled, in which case their required scopes will be added.
required: false required: false
type: list
service_account: service_account:
description: description:
- The Google Cloud Platform Service Account to be used by the node VMs. If - The Google Cloud Platform Service Account to be used by the node VMs. If
no Service Account is specified, the "default" service account is used. no Service Account is specified, the "default" service account is used.
required: false required: false
type: str
metadata: metadata:
description: description:
- The metadata key/value pairs assigned to instances in the cluster. - The metadata key/value pairs assigned to instances in the cluster.
@ -102,11 +108,13 @@ options:
- 'An object containing a list of "key": value pairs.' - 'An object containing a list of "key": value pairs.'
- 'Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.' - 'Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
required: false required: false
type: dict
image_type: image_type:
description: description:
- The image type to use for this node. Note that for a given image type, the - The image type to use for this node. Note that for a given image type, the
latest version of it will be used. latest version of it will be used.
required: false required: false
type: str
labels: labels:
description: description:
- 'The map of Kubernetes labels (key/value pairs) to be applied to each node. - 'The map of Kubernetes labels (key/value pairs) to be applied to each node.
@ -118,6 +126,7 @@ options:
An object containing a list of "key": value pairs.' An object containing a list of "key": value pairs.'
- 'Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.' - 'Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
required: false required: false
type: dict
local_ssd_count: local_ssd_count:
description: description:
- The number of local SSD disks to be attached to the node. - The number of local SSD disks to be attached to the node.
@ -125,6 +134,7 @@ options:
available on a machine per zone. See: U(https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits) available on a machine per zone. See: U(https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits)
for more information.' for more information.'
required: false required: false
type: int
tags: tags:
description: description:
- The list of instance tags applied to all nodes. Tags are used to identify - The list of instance tags applied to all nodes. Tags are used to identify
@ -132,6 +142,7 @@ options:
client during cluster or node pool creation. Each tag within the list must client during cluster or node pool creation. Each tag within the list must
comply with RFC1035. comply with RFC1035.
required: false required: false
type: list
preemptible: preemptible:
description: description:
- 'Whether the nodes are created as preemptible VM instances. See: U(https://cloud.google.com/compute/docs/instances/preemptible) - 'Whether the nodes are created as preemptible VM instances. See: U(https://cloud.google.com/compute/docs/instances/preemptible)
@ -142,62 +153,74 @@ options:
description: description:
- A list of hardware accelerators to be attached to each node. - A list of hardware accelerators to be attached to each node.
required: false required: false
type: list
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
accelerator_count: accelerator_count:
description: description:
- The number of the accelerator cards exposed to an instance. - The number of the accelerator cards exposed to an instance.
required: false required: false
type: int
accelerator_type: accelerator_type:
description: description:
- The accelerator type resource name. - The accelerator type resource name.
required: false required: false
type: str
disk_type: disk_type:
description: description:
- Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') - Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
If unspecified, the default disk type is 'pd-standard' . If unspecified, the default disk type is 'pd-standard' .
required: false required: false
type: str
version_added: 2.9 version_added: 2.9
min_cpu_platform: min_cpu_platform:
description: description:
- Minimum CPU platform to be used by this instance. The instance may be scheduled - Minimum CPU platform to be used by this instance. The instance may be scheduled
on the specified or newer CPU platform . on the specified or newer CPU platform .
required: false required: false
type: str
version_added: 2.9 version_added: 2.9
taints: taints:
description: description:
- List of kubernetes taints to be applied to each node. - List of kubernetes taints to be applied to each node.
required: false required: false
type: list
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
key: key:
description: description:
- Key for taint. - Key for taint.
required: false required: false
type: str
value: value:
description: description:
- Value for taint. - Value for taint.
required: false required: false
type: str
effect: effect:
description: description:
- Effect for taint. - Effect for taint.
required: false required: false
type: str
initial_node_count: initial_node_count:
description: description:
- The initial node count for the pool. You must ensure that your Compute Engine - The initial node count for the pool. You must ensure that your Compute Engine
resource quota is sufficient for this number of instances. You must also have resource quota is sufficient for this number of instances. You must also have
available firewall and routes quota. available firewall and routes quota.
required: true required: true
type: int
version: version:
description: description:
- The version of the Kubernetes of this node. - The version of the Kubernetes of this node.
required: false required: false
type: str
version_added: 2.8 version_added: 2.8
autoscaling: autoscaling:
description: description:
- Autoscaler configuration for this NodePool. Autoscaler is enabled only if a - Autoscaler configuration for this NodePool. Autoscaler is enabled only if a
valid configuration is present. valid configuration is present.
required: false required: false
type: dict
suboptions: suboptions:
enabled: enabled:
description: description:
@ -208,15 +231,18 @@ options:
description: description:
- Minimum number of nodes in the NodePool. Must be >= 1 and <= maxNodeCount. - Minimum number of nodes in the NodePool. Must be >= 1 and <= maxNodeCount.
required: false required: false
type: int
max_node_count: max_node_count:
description: description:
- Maximum number of nodes in the NodePool. Must be >= minNodeCount. - Maximum number of nodes in the NodePool. Must be >= minNodeCount.
- There has to enough quota to scale up the cluster. - There has to enough quota to scale up the cluster.
required: false required: false
type: int
management: management:
description: description:
- Management configuration for this NodePool. - Management configuration for this NodePool.
required: false required: false
type: dict
suboptions: suboptions:
auto_upgrade: auto_upgrade:
description: description:
@ -237,22 +263,26 @@ options:
description: description:
- Specifies the Auto Upgrade knobs for the node pool. - Specifies the Auto Upgrade knobs for the node pool.
required: false required: false
type: dict
suboptions: {} suboptions: {}
max_pods_constraint: max_pods_constraint:
description: description:
- The constraint on the maximum number of pods that can be run simultaneously - The constraint on the maximum number of pods that can be run simultaneously
on a node in the node pool. on a node in the node pool.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
max_pods_per_node: max_pods_per_node:
description: description:
- Constraint enforced on the max num of pods per node. - Constraint enforced on the max num of pods per node.
required: false required: false
type: int
conditions: conditions:
description: description:
- Which conditions caused the current node pool state. - Which conditions caused the current node pool state.
required: false required: false
type: list
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
code: code:
@ -261,6 +291,7 @@ options:
- 'Some valid choices include: "UNKNOWN", "GCE_STOCKOUT", "GKE_SERVICE_ACCOUNT_DELETED", - 'Some valid choices include: "UNKNOWN", "GCE_STOCKOUT", "GKE_SERVICE_ACCOUNT_DELETED",
"GCE_QUOTA_EXCEEDED", "SET_BY_OPERATOR"' "GCE_QUOTA_EXCEEDED", "SET_BY_OPERATOR"'
required: false required: false
type: str
cluster: cluster:
description: description:
- The cluster this node pool belongs to. - The cluster this node pool belongs to.
@ -270,10 +301,12 @@ options:
to a gcp_container_cluster task and then set this cluster field to "{{ name-of-resource to a gcp_container_cluster task and then set this cluster field to "{{ name-of-resource
}}"' }}"'
required: true required: true
type: dict
location: location:
description: description:
- The location where the node pool is deployed. - The location where the node pool is deployed.
required: true required: true
type: str
aliases: aliases:
- region - region
- zone - zone

@ -44,6 +44,7 @@ options:
description: description:
- The location where the node pool is deployed. - The location where the node pool is deployed.
required: true required: true
type: str
aliases: aliases:
- region - region
- zone - zone
@ -57,6 +58,7 @@ options:
to a gcp_container_cluster task and then set this cluster field to "{{ name-of-resource to a gcp_container_cluster task and then set this cluster field to "{{ name-of-resource
}}"' }}"'
required: true required: true
type: dict
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -53,14 +53,17 @@ options:
- A mutable string of at most 1024 characters associated with this resource for - A mutable string of at most 1024 characters associated with this resource for
the user's convenience. Has no effect on the managed zone's function. the user's convenience. Has no effect on the managed zone's function.
required: true required: true
type: str
dns_name: dns_name:
description: description:
- The DNS name of this managed zone, for instance "example.com.". - The DNS name of this managed zone, for instance "example.com.".
required: true required: true
type: str
dnssec_config: dnssec_config:
description: description:
- DNSSEC configuration. - DNSSEC configuration.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
kind: kind:
@ -68,23 +71,27 @@ options:
- Identifies what kind of resource this is. - Identifies what kind of resource this is.
required: false required: false
default: dns#managedZoneDnsSecConfig default: dns#managedZoneDnsSecConfig
type: str
non_existence: non_existence:
description: description:
- Specifies the mechanism used to provide authenticated denial-of-existence - Specifies the mechanism used to provide authenticated denial-of-existence
responses. responses.
- 'Some valid choices include: "nsec", "nsec3"' - 'Some valid choices include: "nsec", "nsec3"'
required: false required: false
type: str
state: state:
description: description:
- Specifies whether DNSSEC is enabled, and what mode it is in. - Specifies whether DNSSEC is enabled, and what mode it is in.
- 'Some valid choices include: "off", "on", "transfer"' - 'Some valid choices include: "off", "on", "transfer"'
required: false required: false
type: str
default_key_specs: default_key_specs:
description: description:
- Specifies parameters that will be used for generating initial DnsKeys for - Specifies parameters that will be used for generating initial DnsKeys for
this ManagedZone. If you provide a spec for keySigning or zoneSigning, you this ManagedZone. If you provide a spec for keySigning or zoneSigning, you
must also provide one for the other. must also provide one for the other.
required: false required: false
type: list
suboptions: suboptions:
algorithm: algorithm:
description: description:
@ -92,10 +99,12 @@ options:
- 'Some valid choices include: "ecdsap256sha256", "ecdsap384sha384", "rsasha1", - 'Some valid choices include: "ecdsap256sha256", "ecdsap384sha384", "rsasha1",
"rsasha256", "rsasha512"' "rsasha256", "rsasha512"'
required: false required: false
type: str
key_length: key_length:
description: description:
- Length of the keys in bits. - Length of the keys in bits.
required: false required: false
type: int
key_type: key_type:
description: description:
- Specifies whether this is a key signing key (KSK) or a zone signing - Specifies whether this is a key signing key (KSK) or a zone signing
@ -105,26 +114,31 @@ options:
and will be used to sign all other types of resource record sets. . and will be used to sign all other types of resource record sets. .
- 'Some valid choices include: "keySigning", "zoneSigning"' - 'Some valid choices include: "keySigning", "zoneSigning"'
required: false required: false
type: str
kind: kind:
description: description:
- Identifies what kind of resource this is. - Identifies what kind of resource this is.
required: false required: false
default: dns#dnsKeySpec default: dns#dnsKeySpec
type: str
name: name:
description: description:
- User assigned name for this resource. - User assigned name for this resource.
- Must be unique within the project. - Must be unique within the project.
required: true required: true
type: str
name_server_set: name_server_set:
description: description:
- Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet - Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
is a set of DNS name servers that all host the same ManagedZones. Most users is a set of DNS name servers that all host the same ManagedZones. Most users
will leave this field unset. will leave this field unset.
required: false required: false
type: str
labels: labels:
description: description:
- A set of key/value label pairs to assign to this ManagedZone. - A set of key/value label pairs to assign to this ManagedZone.
required: false required: false
type: dict
version_added: 2.8 version_added: 2.8
visibility: visibility:
description: description:
@ -134,18 +148,21 @@ options:
- 'Some valid choices include: "private", "public"' - 'Some valid choices include: "private", "public"'
required: false required: false
default: public default: public
type: str
version_added: 2.8 version_added: 2.8
private_visibility_config: private_visibility_config:
description: description:
- For privately visible zones, the set of Virtual Private Cloud resources that - For privately visible zones, the set of Virtual Private Cloud resources that
the zone is visible from. the zone is visible from.
required: false required: false
type: dict
version_added: 2.8 version_added: 2.8
suboptions: suboptions:
networks: networks:
description: description:
- The list of VPC networks that can see this zone. - The list of VPC networks that can see this zone.
required: false required: false
type: list
suboptions: suboptions:
network_url: network_url:
description: description:
@ -153,6 +170,7 @@ options:
- This should be formatted like `U(https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`) - This should be formatted like `U(https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`)
. .
required: false required: false
type: str
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
notes: notes:
- 'API Reference: U(https://cloud.google.com/dns/api/v1/managedZones)' - 'API Reference: U(https://cloud.google.com/dns/api/v1/managedZones)'

@ -55,20 +55,24 @@ options:
description: description:
- For example, U(www.example.com). - For example, U(www.example.com).
required: true required: true
type: str
type: type:
description: description:
- One of valid DNS resource types. - One of valid DNS resource types.
- 'Some valid choices include: "A", "AAAA", "CAA", "CNAME", "MX", "NAPTR", "NS", - 'Some valid choices include: "A", "AAAA", "CAA", "CNAME", "MX", "NAPTR", "NS",
"PTR", "SOA", "SPF", "SRV", "TLSA", "TXT"' "PTR", "SOA", "SPF", "SRV", "TLSA", "TXT"'
required: true required: true
type: str
ttl: ttl:
description: description:
- Number of seconds that this ResourceRecordSet can be cached by resolvers. - Number of seconds that this ResourceRecordSet can be cached by resolvers.
required: false required: false
type: int
target: target:
description: description:
- As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) . - As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) .
required: false required: false
type: list
managed_zone: managed_zone:
description: description:
- Identifies the managed zone addressed by this request. - Identifies the managed zone addressed by this request.
@ -78,6 +82,7 @@ options:
to a gcp_dns_managed_zone task and then set this managed_zone field to "{{ name-of-resource to a gcp_dns_managed_zone task and then set this managed_zone field to "{{ name-of-resource
}}"' }}"'
required: true required: true
type: dict
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -49,6 +49,7 @@ options:
to a gcp_dns_managed_zone task and then set this managed_zone field to "{{ name-of-resource to a gcp_dns_managed_zone task and then set this managed_zone field to "{{ name-of-resource
}}"' }}"'
required: true required: true
type: dict
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -51,25 +51,30 @@ options:
description: description:
- The name of the role. - The name of the role.
required: true required: true
type: str
title: title:
description: description:
- A human-readable title for the role. Typically this is limited to 100 UTF-8 - A human-readable title for the role. Typically this is limited to 100 UTF-8
bytes. bytes.
required: false required: false
type: str
description: description:
description: description:
- Human-readable description for the role. - Human-readable description for the role.
required: false required: false
type: str
included_permissions: included_permissions:
description: description:
- Names of permissions this role grants when bound in an IAM policy. - Names of permissions this role grants when bound in an IAM policy.
required: false required: false
type: list
stage: stage:
description: description:
- The current launch stage of the role. - The current launch stage of the role.
- 'Some valid choices include: "ALPHA", "BETA", "GA", "DEPRECATED", "DISABLED", - 'Some valid choices include: "ALPHA", "BETA", "GA", "DEPRECATED", "DISABLED",
"EAP"' "EAP"'
required: false required: false
type: str
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -51,10 +51,12 @@ options:
description: description:
- The name of the service account. - The name of the service account.
required: false required: false
type: str
display_name: display_name:
description: description:
- User specified description of service account. - User specified description of service account.
required: false required: false
type: str
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -52,11 +52,13 @@ options:
- Output format for the service account key. - Output format for the service account key.
- 'Some valid choices include: "TYPE_UNSPECIFIED", "TYPE_PKCS12_FILE", "TYPE_GOOGLE_CREDENTIALS_FILE"' - 'Some valid choices include: "TYPE_UNSPECIFIED", "TYPE_PKCS12_FILE", "TYPE_GOOGLE_CREDENTIALS_FILE"'
required: false required: false
type: str
key_algorithm: key_algorithm:
description: description:
- Specifies the algorithm for the key. - Specifies the algorithm for the key.
- 'Some valid choices include: "KEY_ALG_UNSPECIFIED", "KEY_ALG_RSA_1024", "KEY_ALG_RSA_2048"' - 'Some valid choices include: "KEY_ALG_UNSPECIFIED", "KEY_ALG_RSA_1024", "KEY_ALG_RSA_2048"'
required: false required: false
type: str
service_account: service_account:
description: description:
- The name of the serviceAccount. - The name of the serviceAccount.
@ -66,12 +68,14 @@ options:
to a gcp_iam_service_account task and then set this service_account field to to a gcp_iam_service_account task and then set this service_account field to
"{{ name-of-resource }}"' "{{ name-of-resource }}"'
required: false required: false
type: dict
path: path:
description: description:
- The full name of the file that will hold the service account private key. The - The full name of the file that will hold the service account private key. The
management of this file will depend on the value of sync_file parameter. management of this file will depend on the value of sync_file parameter.
- File path must be absolute. - File path must be absolute.
required: false required: false
type: path
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -52,6 +52,7 @@ options:
description: description:
- Name of the subscription. - Name of the subscription.
required: true required: true
type: str
topic: topic:
description: description:
- A reference to a Topic resource. - A reference to a Topic resource.
@ -61,10 +62,12 @@ options:
to a gcp_pubsub_topic task and then set this topic field to "{{ name-of-resource to a gcp_pubsub_topic task and then set this topic field to "{{ name-of-resource
}}"' }}"'
required: true required: true
type: dict
labels: labels:
description: description:
- A set of key/value label pairs to assign to this Subscription. - A set of key/value label pairs to assign to this Subscription.
required: false required: false
type: dict
version_added: 2.8 version_added: 2.8
push_config: push_config:
description: description:
@ -72,12 +75,14 @@ options:
it. An empty pushConfig signifies that the subscriber will pull and ack messages it. An empty pushConfig signifies that the subscriber will pull and ack messages
using API methods. using API methods.
required: false required: false
type: dict
suboptions: suboptions:
push_endpoint: push_endpoint:
description: description:
- A URL locating the endpoint to which messages should be pushed. - A URL locating the endpoint to which messages should be pushed.
- For example, a Webhook endpoint might use "U(https://example.com/push"). - For example, a Webhook endpoint might use "U(https://example.com/push").
required: true required: true
type: str
attributes: attributes:
description: description:
- Endpoint configuration attributes. - Endpoint configuration attributes.
@ -97,6 +102,7 @@ options:
defined in the v1beta1 Pub/Sub API.' defined in the v1beta1 Pub/Sub API.'
- "- v1 or v1beta2: uses the push format defined in the v1 Pub/Sub API." - "- v1 or v1beta2: uses the push format defined in the v1 Pub/Sub API."
required: false required: false
type: dict
ack_deadline_seconds: ack_deadline_seconds:
description: description:
- This value is the maximum time after a subscriber receives a message before - This value is the maximum time after a subscriber receives a message before
@ -114,6 +120,7 @@ options:
- If the subscriber never acknowledges the message, the Pub/Sub system will eventually - If the subscriber never acknowledges the message, the Pub/Sub system will eventually
redeliver the message. redeliver the message.
required: false required: false
type: int
message_retention_duration: message_retention_duration:
description: description:
- How long to retain unacknowledged messages in the subscription's backlog, from - How long to retain unacknowledged messages in the subscription's backlog, from
@ -125,6 +132,7 @@ options:
Example: `"600.5s"`.' Example: `"600.5s"`.'
required: false required: false
default: 604800s default: 604800s
type: str
version_added: 2.8 version_added: 2.8
retain_acked_messages: retain_acked_messages:
description: description:
@ -142,6 +150,7 @@ options:
If expirationPolicy is not set, a default policy with ttl of 31 days will be If expirationPolicy is not set, a default policy with ttl of 31 days will be
used. The minimum allowed value for expirationPolicy.ttl is 1 day. used. The minimum allowed value for expirationPolicy.ttl is 1 day.
required: false required: false
type: dict
version_added: 2.9 version_added: 2.9
suboptions: suboptions:
ttl: ttl:
@ -154,6 +163,7 @@ options:
- A duration in seconds with up to nine fractional digits, terminated by 's'. - A duration in seconds with up to nine fractional digits, terminated by 's'.
- Example - "3.5s". - Example - "3.5s".
required: false required: false
type: str
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
notes: notes:
- 'API Reference: U(https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions)' - 'API Reference: U(https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions)'

@ -51,6 +51,7 @@ options:
description: description:
- Name of the topic. - Name of the topic.
required: true required: true
type: str
kms_key_name: kms_key_name:
description: description:
- The resource name of the Cloud KMS CryptoKey to be used to protect access to - The resource name of the Cloud KMS CryptoKey to be used to protect access to
@ -58,11 +59,13 @@ options:
must have `roles/cloudkms.cryptoKeyEncrypterDecrypter` to use this feature. must have `roles/cloudkms.cryptoKeyEncrypterDecrypter` to use this feature.
- The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*` . - The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*` .
required: false required: false
type: str
version_added: 2.9 version_added: 2.9
labels: labels:
description: description:
- A set of key/value label pairs to assign to this Topic. - A set of key/value label pairs to assign to this Topic.
required: false required: false
type: dict
version_added: 2.8 version_added: 2.8
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
notes: notes:

@ -53,19 +53,23 @@ options:
failures by provisioning it across two zones. failures by provisioning it across two zones.
- If provided, it must be a different zone from the one provided in [locationId]. - If provided, it must be a different zone from the one provided in [locationId].
required: false required: false
type: str
authorized_network: authorized_network:
description: description:
- The full name of the Google Compute Engine network to which the instance is - The full name of the Google Compute Engine network to which the instance is
connected. If left unspecified, the default network will be used. connected. If left unspecified, the default network will be used.
required: false required: false
type: str
display_name: display_name:
description: description:
- An arbitrary and optional user-provided name for the instance. - An arbitrary and optional user-provided name for the instance.
required: false required: false
type: str
labels: labels:
description: description:
- Resource labels to represent user provided metadata. - Resource labels to represent user provided metadata.
required: false required: false
type: dict
redis_configs: redis_configs:
description: description:
- Redis configuration parameters, according to U(http://redis.io/topics/config). - Redis configuration parameters, according to U(http://redis.io/topics/config).
@ -73,6 +77,7 @@ options:
U(https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Instance.FIELDS.redis_configs) U(https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Instance.FIELDS.redis_configs)
.' .'
required: false required: false
type: dict
location_id: location_id:
description: description:
- The zone where the instance will be provisioned. If not provided, the service - The zone where the instance will be provisioned. If not provided, the service
@ -80,20 +85,24 @@ options:
created across two zones for protection against zonal failures. If [alternativeLocationId] created across two zones for protection against zonal failures. If [alternativeLocationId]
is also provided, it must be different from [locationId]. is also provided, it must be different from [locationId].
required: false required: false
type: str
name: name:
description: description:
- The ID of the instance or a fully qualified identifier for the instance. . - The ID of the instance or a fully qualified identifier for the instance. .
required: true required: true
type: str
memory_size_gb: memory_size_gb:
description: description:
- Redis memory size in GiB. - Redis memory size in GiB.
required: true required: true
type: int
redis_version: redis_version:
description: description:
- The version of Redis software. If not provided, latest supported version will - The version of Redis software. If not provided, latest supported version will
be used. Updating the version will perform an upgrade/downgrade to the new version. be used. Updating the version will perform an upgrade/downgrade to the new version.
Currently, the supported values are REDIS_3_2 for Redis 3.2. Currently, the supported values are REDIS_3_2 for Redis 3.2.
required: false required: false
type: str
reserved_ip_range: reserved_ip_range:
description: description:
- The CIDR range of internal addresses that are reserved for this instance. If - The CIDR range of internal addresses that are reserved for this instance. If
@ -101,6 +110,7 @@ options:
or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets or 192.168.0.0/29. Ranges must be unique and non-overlapping with existing subnets
in an authorized network. in an authorized network.
required: false required: false
type: str
tier: tier:
description: description:
- 'The service tier of the instance. Must be one of these values: - BASIC: standalone - 'The service tier of the instance. Must be one of these values: - BASIC: standalone
@ -108,10 +118,12 @@ options:
- 'Some valid choices include: "BASIC", "STANDARD_HA"' - 'Some valid choices include: "BASIC", "STANDARD_HA"'
required: false required: false
default: BASIC default: BASIC
type: str
region: region:
description: description:
- The name of the Redis region of the instance. - The name of the Redis region of the instance.
required: true required: true
type: str
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
notes: notes:
- 'API Reference: U(https://cloud.google.com/memorystore/docs/redis/reference/rest/)' - 'API Reference: U(https://cloud.google.com/memorystore/docs/redis/reference/rest/)'
@ -459,7 +471,7 @@ def wait_for_operation(module, response):
return {} return {}
status = navigate_hash(op_result, ['done']) status = navigate_hash(op_result, ['done'])
wait_done = wait_for_completion(status, op_result, module) wait_done = wait_for_completion(status, op_result, module)
raise_if_errors(op_result, ['error'], module) raise_if_errors(wait_done, ['error'], module)
return navigate_hash(wait_done, ['response']) return navigate_hash(wait_done, ['response'])

@ -44,6 +44,7 @@ options:
description: description:
- The name of the Redis region of the instance. - The name of the Redis region of the instance.
required: true required: true
type: str
extends_documentation_fragment: gcp extends_documentation_fragment: gcp
''' '''

@ -717,13 +717,10 @@ lib/ansible/modules/cloud/google/gcp_compute_url_map_facts.py E337
lib/ansible/modules/cloud/google/gcp_compute_url_map.py E337 lib/ansible/modules/cloud/google/gcp_compute_url_map.py E337
lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel_facts.py E337 lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel_facts.py E337
lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py E337 lib/ansible/modules/cloud/google/gcp_compute_vpn_tunnel.py E337
lib/ansible/modules/cloud/google/gcp_container_cluster_facts.py E337
lib/ansible/modules/cloud/google/gcp_container_cluster.py E337 lib/ansible/modules/cloud/google/gcp_container_cluster.py E337
lib/ansible/modules/cloud/google/gcp_container_node_pool_facts.py E337
lib/ansible/modules/cloud/google/gcp_container_node_pool.py E337 lib/ansible/modules/cloud/google/gcp_container_node_pool.py E337
lib/ansible/modules/cloud/google/gcp_dns_managed_zone_facts.py E337 lib/ansible/modules/cloud/google/gcp_dns_managed_zone_facts.py E337
lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py E337 lib/ansible/modules/cloud/google/gcp_dns_managed_zone.py E337
lib/ansible/modules/cloud/google/gcp_dns_resource_record_set_facts.py E337
lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py E337 lib/ansible/modules/cloud/google/gcp_dns_resource_record_set.py E337
lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py E322 lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py E322
lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py E324 lib/ansible/modules/cloud/google/_gcp_forwarding_rule.py E324
@ -739,7 +736,6 @@ lib/ansible/modules/cloud/google/gcp_iam_service_account_key.py E337
lib/ansible/modules/cloud/google/gcp_iam_service_account.py E337 lib/ansible/modules/cloud/google/gcp_iam_service_account.py E337
lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py E337 lib/ansible/modules/cloud/google/gcp_pubsub_subscription.py E337
lib/ansible/modules/cloud/google/gcp_pubsub_topic.py E337 lib/ansible/modules/cloud/google/gcp_pubsub_topic.py E337
lib/ansible/modules/cloud/google/gcp_redis_instance_facts.py E337
lib/ansible/modules/cloud/google/gcp_redis_instance.py E337 lib/ansible/modules/cloud/google/gcp_redis_instance.py E337
lib/ansible/modules/cloud/google/gcp_resourcemanager_project.py E337 lib/ansible/modules/cloud/google/gcp_resourcemanager_project.py E337
lib/ansible/modules/cloud/google/gcp_sourcerepo_repository.py E337 lib/ansible/modules/cloud/google/gcp_sourcerepo_repository.py E337

Loading…
Cancel
Save