Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
description:
- A reference to the region where the disk resides.
required: true
type: str
extends_documentation_fragment: gcp
'''

Expand Down
11 changes: 11 additions & 0 deletions lib/ansible/modules/cloud/google/gcp_compute_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,19 @@
- present
- absent
default: present
type: str
dest_range:
description:
- The destination range of outgoing packets that this route applies to.
- Only IPv4 is supported.
required: true
type: str
description:
description:
- An optional description of this resource. Provide this property when you create
the resource.
required: false
type: str
version_added: 2.7
name:
description:
Expand All @@ -82,6 +85,7 @@
characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.
required: true
type: str
network:
description:
- The network that this route applies to.
Expand All @@ -91,6 +95,7 @@
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
}}"'
required: true
type: dict
priority:
description:
- The priority of this route. Priority is used to break ties in cases where there
Expand All @@ -99,10 +104,12 @@
priority value wins.
- Default value is 1000. Valid range is 0 through 65535.
required: false
type: int
tags:
description:
- A list of instance tags to which this route applies.
required: false
type: list
next_hop_gateway:
description:
- URL to a gateway that should handle matching packets.
Expand All @@ -111,6 +118,7 @@
* projects/project/global/gateways/default-internet-gateway * global/gateways/default-internet-gateway
.'
required: false
type: str
next_hop_instance:
description:
- URL to an instance that should handle matching packets.
Expand All @@ -123,10 +131,12 @@
to a gcp_compute_instance task and then set this next_hop_instance field to
"{{ name-of-resource }}"'
required: false
type: dict
next_hop_ip:
description:
- Network IP address of an instance that should handle matching packets.
required: false
type: str
next_hop_vpn_tunnel:
description:
- URL to a VpnTunnel that should handle matching packets.
Expand All @@ -136,6 +146,7 @@
to a gcp_compute_vpn_tunnel task and then set this next_hop_vpn_tunnel field
to "{{ name-of-resource }}"'
required: false
type: dict
extends_documentation_fragment: gcp
notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/routes)'
Expand Down
12 changes: 12 additions & 0 deletions lib/ansible/modules/cloud/google/gcp_compute_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- present
- absent
default: present
type: str
name:
description:
- Name of the resource. The name must be 1-63 characters long, and comply with
Expand All @@ -55,10 +56,12 @@
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.
required: true
type: str
description:
description:
- An optional description of this resource.
required: false
type: str
network:
description:
- A reference to the network to which this router belongs.
Expand All @@ -68,24 +71,28 @@
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
}}"'
required: true
type: dict
bgp:
description:
- BGP information specific to this router.
required: false
type: dict
suboptions:
asn:
description:
- Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN,
either 16-bit or 32-bit. The value will be fixed for this router resource.
All VPN tunnels that link to this router will have the same local ASN.
required: true
type: int
advertise_mode:
description:
- User-specified flag to indicate which mode to use for advertisement.
- 'Valid values of this enum field are: DEFAULT, CUSTOM .'
- 'Some valid choices include: "DEFAULT", "CUSTOM"'
required: false
default: DEFAULT
type: str
advertised_groups:
description:
- User-specified list of prefix groups to advertise in custom mode.
Expand All @@ -95,6 +102,7 @@
groups.
- 'This enum field has the one valid value: ALL_SUBNETS .'
required: false
type: list
advertised_ip_ranges:
description:
- User-specified list of individual IP ranges to advertise in custom mode.
Expand All @@ -103,19 +111,23 @@
to any specified groups.
- Leave this field blank to advertise no custom IP ranges.
required: false
type: list
suboptions:
range:
description:
- The IP range to advertise. The value must be a CIDR-formatted string.
required: false
type: str
description:
description:
- User-specified description for the IP range.
required: false
type: str
region:
description:
- Region where the router resides.
required: true
type: str
extends_documentation_fragment: gcp
notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/routers)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
description:
- Region where the router resides.
required: true
type: str
extends_documentation_fragment: gcp
'''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,19 @@
- present
- absent
default: present
type: str
certificate:
description:
- The certificate in PEM format.
- The certificate chain must be no greater than 5 certs long.
- The chain must include at least one intermediate cert.
required: true
type: str
description:
description:
- An optional description of this resource.
required: false
type: str
name:
description:
- Name of the resource. Provided by the client when the resource is created. The
Expand All @@ -68,10 +71,12 @@
characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.
required: false
type: str
private_key:
description:
- The write-only private key in PEM format.
required: true
type: str
extends_documentation_fragment: gcp
notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/sslCertificates)'
Expand Down
6 changes: 6 additions & 0 deletions lib/ansible/modules/cloud/google/gcp_compute_ssl_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
- present
- absent
default: present
type: str
description:
description:
- An optional description of this resource.
required: false
type: str
name:
description:
- Name of the resource. Provided by the client when the resource is created. The
Expand All @@ -61,6 +63,7 @@
characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.
required: true
type: str
profile:
description:
- Profile specifies the set of SSL features that can be used by the load balancer
Expand All @@ -69,19 +72,22 @@
must be specified in the `customFeatures` field.
- 'Some valid choices include: "COMPATIBLE", "MODERN", "RESTRICTED", "CUSTOM"'
required: false
type: str
min_tls_version:
description:
- The minimum version of SSL protocol that can be used by the clients to establish
a connection with the load balancer. This can be one of `TLS_1_0`, `TLS_1_1`,
`TLS_1_2`.
- 'Some valid choices include: "TLS_1_0", "TLS_1_1", "TLS_1_2"'
required: false
type: str
custom_features:
description:
- A list of features enabled when the selected profile is CUSTOM. The method returns
the set of features that can be specified in this list. This field must be empty
if the profile is not CUSTOM.
required: false
type: list
extends_documentation_fragment: gcp
notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/sslPolicies)'
Expand Down
9 changes: 9 additions & 0 deletions lib/ansible/modules/cloud/google/gcp_compute_subnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,21 @@
- present
- absent
default: present
type: str
description:
description:
- An optional description of this resource. Provide this property when you create
the resource. This field can be set only at resource creation time.
required: false
type: str
ip_cidr_range:
description:
- The range of internal addresses that are owned by this subnetwork.
- Provide this property when you create the subnetwork. For example, 10.0.0.0/8
or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network.
Only IPv4 is supported.
required: true
type: str
name:
description:
- The name of the resource, provided by the client when initially creating the
Expand All @@ -84,6 +87,7 @@
characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.
required: true
type: str
network:
description:
- The network this subnet belongs to.
Expand All @@ -94,6 +98,7 @@
to a gcp_compute_network task and then set this network field to "{{ name-of-resource
}}"'
required: true
type: dict
enable_flow_logs:
description:
- Whether to enable flow logging for this subnetwork.
Expand All @@ -106,6 +111,7 @@
in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange
of the subnetwork. The alias IPs may belong to either primary or secondary ranges.
required: false
type: list
version_added: 2.8
suboptions:
range_name:
Expand All @@ -114,13 +120,15 @@
an alias IP range to a VM instance. The name must be 1-63 characters long,
and comply with RFC1035. The name must be unique within the subnetwork.
required: true
type: str
ip_cidr_range:
description:
- The range of IP addresses belonging to this subnetwork secondary range.
Provide this property when you create the subnetwork.
- Ranges must be unique and non-overlapping with all primary and secondary
IP ranges within a network. Only IPv4 is supported.
required: true
type: str
private_ip_google_access:
description:
- When enabled, VMs in this subnetwork without external IP addresses can access
Expand All @@ -131,6 +139,7 @@
description:
- URL of the GCP region for this subnetwork.
required: true
type: str
extends_documentation_fragment: gcp
notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/beta/subnetworks)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
description:
- URL of the GCP region for this subnetwork.
required: true
type: str
extends_documentation_fragment: gcp
'''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
- present
- absent
default: present
type: str
description:
description:
- An optional description of this resource.
required: false
type: str
name:
description:
- Name of the resource. Provided by the client when the resource is created. The
Expand All @@ -61,6 +63,7 @@
characters must be a dash, lowercase letter, or digit, except the last character,
which cannot be a dash.
required: true
type: str
url_map:
description:
- A reference to the UrlMap resource that defines the mapping from URL to the
Expand All @@ -71,6 +74,7 @@
to a gcp_compute_url_map task and then set this url_map field to "{{ name-of-resource
}}"'
required: true
type: dict
extends_documentation_fragment: gcp
notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/v1/targetHttpProxies)'
Expand Down