Adding namespace on integration tests + examples

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
Alex Stephen 2019-09-30 22:08:25 +00:00 committed by Modular Magician
parent 6c7c5f4977
commit 516fada880
130 changed files with 570 additions and 570 deletions

View file

@ -129,7 +129,7 @@ notes:
EXAMPLES = '''
- name: create a firewall rule
gcp_appengine_firewall_rule:
google.cloud.gcp_appengine_firewall_rule:
priority: 1000
source_range: 10.0.0.0
action: ALLOW

View file

@ -241,7 +241,7 @@ options:
EXAMPLES = '''
- name: create a dataset
gcp_bigquery_dataset:
google.cloud.gcp_bigquery_dataset:
name: my_example_dataset
dataset_reference:
dataset_id: my_example_dataset

View file

@ -501,7 +501,7 @@ options:
EXAMPLES = '''
- name: create a dataset
gcp_bigquery_dataset:
google.cloud.gcp_bigquery_dataset:
name: example_dataset
dataset_reference:
dataset_id: example_dataset
@ -512,7 +512,7 @@ EXAMPLES = '''
register: dataset
- name: create a table
gcp_bigquery_table:
google.cloud.gcp_bigquery_table:
name: example_table
dataset: example_dataset
table_reference:

View file

@ -342,7 +342,7 @@ notes:
EXAMPLES = '''
- name: create a repository
gcp_sourcerepo_repository:
google.cloud.gcp_sourcerepo_repository:
name: projects/{{ gcp_project }}/repos/{{ resource_name }}
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -350,7 +350,7 @@ EXAMPLES = '''
state: present
- name: create a trigger
gcp_cloudbuild_trigger:
google.cloud.gcp_cloudbuild_trigger:
trigger_template:
branch_name: master
project_id: test_project

View file

@ -199,7 +199,7 @@ options:
EXAMPLES = '''
- name: create a cloud function
gcp_cloudfunctions_cloud_function:
google.cloud.gcp_cloudfunctions_cloud_function:
name: test_object
location: us-central1
entry_point: helloGET

View file

@ -333,7 +333,7 @@ notes:
EXAMPLES = '''
- name: create a job
gcp_cloudscheduler_job:
google.cloud.gcp_cloudscheduler_job:
name: job
region: us-central1
schedule: "*/4 * * * *"

View file

@ -203,7 +203,7 @@ options:
EXAMPLES = '''
- name: create a queue
gcp_cloudtasks_queue:
google.cloud.gcp_cloudtasks_queue:
name: test_object
location: us-central1
project: test_project

View file

@ -181,7 +181,7 @@ notes:
EXAMPLES = '''
- name: create a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: test-address1
region: us-west1
project: test_project

View file

@ -252,7 +252,7 @@ notes:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-instancetemplate
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -261,7 +261,7 @@ EXAMPLES = '''
register: network
- name: create a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: address-instancetemplate
region: us-central1
project: "{{ gcp_project }}"
@ -271,7 +271,7 @@ EXAMPLES = '''
register: address
- name: create a instance template
gcp_compute_instance_template:
google.cloud.gcp_compute_instance_template:
name: "{{ resource_name }}"
properties:
disks:
@ -293,7 +293,7 @@ EXAMPLES = '''
register: instancetemplate
- name: create a instance group manager
gcp_compute_instance_group_manager:
google.cloud.gcp_compute_instance_group_manager:
name: "{{ resource_name }}"
base_instance_name: test1-child
instance_template: "{{ instancetemplate }}"
@ -306,7 +306,7 @@ EXAMPLES = '''
register: igm
- name: create a autoscaler
gcp_compute_autoscaler:
google.cloud.gcp_compute_autoscaler:
name: test_object
zone: us-central1-a
target: "{{ igm }}"

View file

@ -151,7 +151,7 @@ notes:
EXAMPLES = '''
- name: create a bucket
gcp_storage_bucket:
google.cloud.gcp_storage_bucket:
name: bucket-backendbucket
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -160,7 +160,7 @@ EXAMPLES = '''
register: bucket
- name: create a backend bucket
gcp_compute_backend_bucket:
google.cloud.gcp_compute_backend_bucket:
name: test_object
bucket_name: "{{ bucket.name }}"
description: A BackendBucket to connect LNB w/ Storage Bucket

View file

@ -392,7 +392,7 @@ notes:
EXAMPLES = '''
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-backendservice
zone: us-central1-a
project: "{{ gcp_project }}"
@ -402,7 +402,7 @@ EXAMPLES = '''
register: instancegroup
- name: create a HTTP health check
gcp_compute_http_health_check:
google.cloud.gcp_compute_http_health_check:
name: httphealthcheck-backendservice
healthy_threshold: 10
port: 8080
@ -415,7 +415,7 @@ EXAMPLES = '''
register: healthcheck
- name: create a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: test_object
backends:
- group: "{{ instancegroup.selfLink }}"

View file

@ -257,7 +257,7 @@ notes:
EXAMPLES = '''
- name: create a disk
gcp_compute_disk:
google.cloud.gcp_compute_disk:
name: test_object
size_gb: 50
disk_encryption_key:

View file

@ -283,7 +283,7 @@ notes:
EXAMPLES = '''
- name: create a firewall
gcp_compute_firewall:
google.cloud.gcp_compute_firewall:
name: test_object
allowed:
- ip_protocol: tcp

View file

@ -279,7 +279,7 @@ notes:
EXAMPLES = '''
- name: create a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: address-forwardingrule
region: us-west1
project: "{{ gcp_project }}"
@ -289,7 +289,7 @@ EXAMPLES = '''
register: address
- name: create a target pool
gcp_compute_target_pool:
google.cloud.gcp_compute_target_pool:
name: targetpool-forwardingrule
region: us-west1
project: "{{ gcp_project }}"
@ -299,7 +299,7 @@ EXAMPLES = '''
register: targetpool
- name: create a forwarding rule
gcp_compute_forwarding_rule:
google.cloud.gcp_compute_forwarding_rule:
name: test_object
region: us-west1
target: "{{ targetpool }}"

View file

@ -171,7 +171,7 @@ notes:
EXAMPLES = '''
- name: create a global address
gcp_compute_global_address:
google.cloud.gcp_compute_global_address:
name: test_object
project: test_project
auth_kind: serviceaccount

View file

@ -241,7 +241,7 @@ options:
EXAMPLES = '''
- name: create a global address
gcp_compute_global_address:
google.cloud.gcp_compute_global_address:
name: globaladdress-globalforwardingrule
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -250,7 +250,7 @@ EXAMPLES = '''
register: globaladdress
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-globalforwardingrule
zone: us-central1-a
project: "{{ gcp_project }}"
@ -260,7 +260,7 @@ EXAMPLES = '''
register: instancegroup
- name: create a HTTP health check
gcp_compute_http_health_check:
google.cloud.gcp_compute_http_health_check:
name: httphealthcheck-globalforwardingrule
healthy_threshold: 10
port: 8080
@ -273,7 +273,7 @@ EXAMPLES = '''
register: healthcheck
- name: create a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: backendservice-globalforwardingrule
backends:
- group: "{{ instancegroup.selfLink }}"
@ -287,7 +287,7 @@ EXAMPLES = '''
register: backendservice
- name: create a URL map
gcp_compute_url_map:
google.cloud.gcp_compute_url_map:
name: urlmap-globalforwardingrule
default_service: "{{ backendservice }}"
project: "{{ gcp_project }}"
@ -297,7 +297,7 @@ EXAMPLES = '''
register: urlmap
- name: create a target HTTP proxy
gcp_compute_target_http_proxy:
google.cloud.gcp_compute_target_http_proxy:
name: targethttpproxy-globalforwardingrule
url_map: "{{ urlmap }}"
project: "{{ gcp_project }}"
@ -307,7 +307,7 @@ EXAMPLES = '''
register: httpproxy
- name: create a global forwarding rule
gcp_compute_global_forwarding_rule:
google.cloud.gcp_compute_global_forwarding_rule:
name: test_object
ip_address: "{{ globaladdress.address }}"
ip_protocol: TCP

View file

@ -460,7 +460,7 @@ notes:
EXAMPLES = '''
- name: create a health check
gcp_compute_health_check:
google.cloud.gcp_compute_health_check:
name: test_object
type: TCP
tcp_health_check:

View file

@ -167,7 +167,7 @@ notes:
EXAMPLES = '''
- name: create a HTTP health check
gcp_compute_http_health_check:
google.cloud.gcp_compute_http_health_check:
name: test_object
healthy_threshold: 10
port: 8080

View file

@ -164,7 +164,7 @@ notes:
EXAMPLES = '''
- name: create a HTTPS health check
gcp_compute_https_health_check:
google.cloud.gcp_compute_https_health_check:
name: test_object
healthy_threshold: 10
port: 8080

View file

@ -246,7 +246,7 @@ notes:
EXAMPLES = '''
- name: create a disk
gcp_compute_disk:
google.cloud.gcp_compute_disk:
name: disk-image
zone: us-central1-a
project: "{{ gcp_project }}"
@ -256,7 +256,7 @@ EXAMPLES = '''
register: disk
- name: create a image
gcp_compute_image:
google.cloud.gcp_compute_image:
name: test_object
source_disk: "{{ disk }}"
project: test_project

View file

@ -513,7 +513,7 @@ options:
EXAMPLES = '''
- name: create a disk
gcp_compute_disk:
google.cloud.gcp_compute_disk:
name: disk-instance
size_gb: 50
source_image: projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts
@ -525,7 +525,7 @@ EXAMPLES = '''
register: disk
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-instance
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -534,7 +534,7 @@ EXAMPLES = '''
register: network
- name: create a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: address-instance
region: us-central1
project: "{{ gcp_project }}"
@ -544,7 +544,7 @@ EXAMPLES = '''
register: address
- name: create a instance
gcp_compute_instance:
google.cloud.gcp_compute_instance:
name: test_object
machine_type: n1-standard-1
disks:

View file

@ -166,7 +166,7 @@ options:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-instancegroup
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -175,7 +175,7 @@ EXAMPLES = '''
register: network
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: test_object
named_ports:
- name: ansible

View file

@ -163,7 +163,7 @@ options:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-instancetemplate
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -172,7 +172,7 @@ EXAMPLES = '''
register: network
- name: create a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: address-instancetemplate
region: us-west1
project: "{{ gcp_project }}"
@ -182,7 +182,7 @@ EXAMPLES = '''
register: address
- name: create a instance template
gcp_compute_instance_template:
google.cloud.gcp_compute_instance_template:
name: "{{ resource_name }}"
properties:
disks:
@ -204,7 +204,7 @@ EXAMPLES = '''
register: instancetemplate
- name: create a instance group manager
gcp_compute_instance_group_manager:
google.cloud.gcp_compute_instance_group_manager:
name: test_object
base_instance_name: test1-child
instance_template: "{{ instancetemplate }}"

View file

@ -484,7 +484,7 @@ options:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-instancetemplate
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -493,7 +493,7 @@ EXAMPLES = '''
register: network
- name: create a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: address-instancetemplate
region: us-west1
project: "{{ gcp_project }}"
@ -503,7 +503,7 @@ EXAMPLES = '''
register: address
- name: create a instance template
gcp_compute_instance_template:
google.cloud.gcp_compute_instance_template:
name: test_object
properties:
disks:

View file

@ -184,7 +184,7 @@ options:
EXAMPLES = '''
- name: create a interconnect attachment
gcp_compute_interconnect_attachment:
google.cloud.gcp_compute_interconnect_attachment:
name: test_object
region: us-central1
project: test_project

View file

@ -156,7 +156,7 @@ notes:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: test_object
auto_create_subnetworks: 'true'
project: test_project

View file

@ -148,7 +148,7 @@ notes:
EXAMPLES = '''
- name: create a node template
gcp_compute_node_template:
google.cloud.gcp_compute_node_template:
name: test_object
region: us-central1
node_type: n1-node-96-624

View file

@ -216,7 +216,7 @@ notes:
EXAMPLES = '''
- name: create a region disk
gcp_compute_region_disk:
google.cloud.gcp_compute_region_disk:
name: test_object
size_gb: 500
disk_encryption_key:

View file

@ -201,7 +201,7 @@ notes:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-route
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -210,7 +210,7 @@ EXAMPLES = '''
register: network
- name: create a route
gcp_compute_route:
google.cloud.gcp_compute_route:
name: test_object
dest_range: 192.168.6.0/24
next_hop_gateway: global/gateways/default-internet-gateway

View file

@ -182,7 +182,7 @@ notes:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-router
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -191,7 +191,7 @@ EXAMPLES = '''
register: network
- name: create a router
gcp_compute_router:
google.cloud.gcp_compute_router:
name: test_object
network: "{{ network }}"
bgp:

View file

@ -181,7 +181,7 @@ notes:
EXAMPLES = '''
- name: create a disk
gcp_compute_disk:
google.cloud.gcp_compute_disk:
name: disk-snapshot
zone: us-central1-a
project: "{{ gcp_project }}"
@ -191,7 +191,7 @@ EXAMPLES = '''
register: disk
- name: create a snapshot
gcp_compute_snapshot:
google.cloud.gcp_compute_snapshot:
name: test_object
source_disk: "{{ disk }}"
zone: us-central1-a

View file

@ -131,7 +131,7 @@ notes:
EXAMPLES = '''
- name: create a SSL certificate
gcp_compute_ssl_certificate:
google.cloud.gcp_compute_ssl_certificate:
name: test_object
description: A certificate for testing. Do not use this certificate in production
certificate: |-

View file

@ -142,7 +142,7 @@ notes:
EXAMPLES = '''
- name: create a SSL policy
gcp_compute_ssl_policy:
google.cloud.gcp_compute_ssl_policy:
name: test_object
profile: CUSTOM
min_tls_version: TLS_1_2

View file

@ -195,7 +195,7 @@ notes:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-subnetwork
auto_create_subnetworks: 'true'
project: "{{ gcp_project }}"
@ -205,7 +205,7 @@ EXAMPLES = '''
register: network
- name: create a subnetwork
gcp_compute_subnetwork:
google.cloud.gcp_compute_subnetwork:
name: ansiblenet
region: us-west1
network: "{{ network }}"

View file

@ -129,7 +129,7 @@ notes:
EXAMPLES = '''
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-targethttpproxy
zone: us-central1-a
project: "{{ gcp_project }}"
@ -139,7 +139,7 @@ EXAMPLES = '''
register: instancegroup
- name: create a HTTP health check
gcp_compute_http_health_check:
google.cloud.gcp_compute_http_health_check:
name: httphealthcheck-targethttpproxy
healthy_threshold: 10
port: 8080
@ -152,7 +152,7 @@ EXAMPLES = '''
register: healthcheck
- name: create a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: backendservice-targethttpproxy
backends:
- group: "{{ instancegroup.selfLink }}"
@ -166,7 +166,7 @@ EXAMPLES = '''
register: backendservice
- name: create a URL map
gcp_compute_url_map:
google.cloud.gcp_compute_url_map:
name: urlmap-targethttpproxy
default_service: "{{ backendservice }}"
project: "{{ gcp_project }}"
@ -176,7 +176,7 @@ EXAMPLES = '''
register: urlmap
- name: create a target HTTP proxy
gcp_compute_target_http_proxy:
google.cloud.gcp_compute_target_http_proxy:
name: test_object
url_map: "{{ urlmap }}"
project: test_project

View file

@ -160,7 +160,7 @@ notes:
EXAMPLES = '''
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-targethttpsproxy
zone: us-central1-a
project: "{{ gcp_project }}"
@ -170,7 +170,7 @@ EXAMPLES = '''
register: instancegroup
- name: create a HTTP health check
gcp_compute_http_health_check:
google.cloud.gcp_compute_http_health_check:
name: httphealthcheck-targethttpsproxy
healthy_threshold: 10
port: 8080
@ -183,7 +183,7 @@ EXAMPLES = '''
register: healthcheck
- name: create a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: backendservice-targethttpsproxy
backends:
- group: "{{ instancegroup.selfLink }}"
@ -197,7 +197,7 @@ EXAMPLES = '''
register: backendservice
- name: create a URL map
gcp_compute_url_map:
google.cloud.gcp_compute_url_map:
name: urlmap-targethttpsproxy
default_service: "{{ backendservice }}"
project: "{{ gcp_project }}"
@ -207,7 +207,7 @@ EXAMPLES = '''
register: urlmap
- name: create a SSL certificate
gcp_compute_ssl_certificate:
google.cloud.gcp_compute_ssl_certificate:
name: sslcert-targethttpsproxy
description: A certificate for testing. Do not use this certificate in production
certificate: |-
@ -241,7 +241,7 @@ EXAMPLES = '''
register: sslcert
- name: create a target HTTPS proxy
gcp_compute_target_https_proxy:
google.cloud.gcp_compute_target_https_proxy:
name: test_object
ssl_certificates:
- "{{ sslcert }}"

View file

@ -187,7 +187,7 @@ notes:
EXAMPLES = '''
- name: create a target pool
gcp_compute_target_pool:
google.cloud.gcp_compute_target_pool:
name: test_object
region: us-west1
project: test_project

View file

@ -155,7 +155,7 @@ notes:
EXAMPLES = '''
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-targetsslproxy
zone: us-central1-a
project: "{{ gcp_project }}"
@ -165,7 +165,7 @@ EXAMPLES = '''
register: instancegroup
- name: create a health check
gcp_compute_health_check:
google.cloud.gcp_compute_health_check:
name: healthcheck-targetsslproxy
type: TCP
tcp_health_check:
@ -182,7 +182,7 @@ EXAMPLES = '''
register: healthcheck
- name: create a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: backendservice-targetsslproxy
backends:
- group: "{{ instancegroup.selfLink }}"
@ -196,7 +196,7 @@ EXAMPLES = '''
register: backendservice
- name: create a SSL certificate
gcp_compute_ssl_certificate:
google.cloud.gcp_compute_ssl_certificate:
name: sslcert-targetsslproxy
description: A certificate for testing. Do not use this certificate in production
certificate: |-
@ -230,7 +230,7 @@ EXAMPLES = '''
register: sslcert
- name: create a target SSL proxy
gcp_compute_target_ssl_proxy:
google.cloud.gcp_compute_target_ssl_proxy:
name: test_object
ssl_certificates:
- "{{ sslcert }}"

View file

@ -135,7 +135,7 @@ notes:
EXAMPLES = '''
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-targettcpproxy
zone: us-central1-a
project: "{{ gcp_project }}"
@ -145,7 +145,7 @@ EXAMPLES = '''
register: instancegroup
- name: create a health check
gcp_compute_health_check:
google.cloud.gcp_compute_health_check:
name: healthcheck-targettcpproxy
type: TCP
tcp_health_check:
@ -162,7 +162,7 @@ EXAMPLES = '''
register: healthcheck
- name: create a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: backendservice-targettcpproxy
backends:
- group: "{{ instancegroup.selfLink }}"
@ -176,7 +176,7 @@ EXAMPLES = '''
register: backendservice
- name: create a target TCP proxy
gcp_compute_target_tcp_proxy:
google.cloud.gcp_compute_target_tcp_proxy:
name: test_object
proxy_header: PROXY_V1
service: "{{ backendservice }}"

View file

@ -132,7 +132,7 @@ notes:
EXAMPLES = '''
- name: create a address
gcp_compute_address:
google.cloud.gcp_compute_address:
name: address-vpngateway
region: us-west1
project: "{{ gcp_project }}"
@ -142,7 +142,7 @@ EXAMPLES = '''
register: address
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-vpngateway
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -151,7 +151,7 @@ EXAMPLES = '''
register: network
- name: create a target vpn gateway
gcp_compute_target_vpn_gateway:
google.cloud.gcp_compute_target_vpn_gateway:
name: test_object
region: us-west1
network: "{{ network }}"

View file

@ -225,7 +225,7 @@ options:
EXAMPLES = '''
- name: create a instance group
gcp_compute_instance_group:
google.cloud.gcp_compute_instance_group:
name: instancegroup-urlmap
zone: us-central1-a
project: "{{ gcp_project }}"
@ -235,7 +235,7 @@ EXAMPLES = '''
register: instancegroup
- name: create a HTTP health check
gcp_compute_http_health_check:
google.cloud.gcp_compute_http_health_check:
name: httphealthcheck-urlmap
healthy_threshold: 10
port: 8080
@ -248,7 +248,7 @@ EXAMPLES = '''
register: healthcheck
- name: create a backend service
gcp_compute_backend_service:
google.cloud.gcp_compute_backend_service:
name: backendservice-urlmap
backends:
- group: "{{ instancegroup.selfLink }}"
@ -262,7 +262,7 @@ EXAMPLES = '''
register: backendservice
- name: create a URL map
gcp_compute_url_map:
google.cloud.gcp_compute_url_map:
name: test_object
default_service: "{{ backendservice }}"
project: test_project

View file

@ -176,7 +176,7 @@ notes:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-vpn-tunnel
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -185,7 +185,7 @@ EXAMPLES = '''
register: network
- name: create a router
gcp_compute_router:
google.cloud.gcp_compute_router:
name: router-vpn-tunnel
network: "{{ network }}"
bgp:
@ -204,7 +204,7 @@ EXAMPLES = '''
register: router
- name: create a target vpn gateway
gcp_compute_target_vpn_gateway:
google.cloud.gcp_compute_target_vpn_gateway:
name: gateway-vpn-tunnel
region: us-west1
network: "{{ network }}"
@ -215,7 +215,7 @@ EXAMPLES = '''
register: gateway
- name: create a vpn tunnel
gcp_compute_vpn_tunnel:
google.cloud.gcp_compute_vpn_tunnel:
name: test_object
region: us-west1
target_vpn_gateway: "{{ gateway }}"

View file

@ -616,7 +616,7 @@ options:
EXAMPLES = '''
- name: create a cluster
gcp_container_cluster:
google.cloud.gcp_container_cluster:
name: my-cluster
initial_node_count: 2
master_auth:

View file

@ -353,7 +353,7 @@ options:
EXAMPLES = '''
- name: create a cluster
gcp_container_cluster:
google.cloud.gcp_container_cluster:
name: cluster-nodepool
initial_node_count: 4
location: us-central1-a
@ -364,7 +364,7 @@ EXAMPLES = '''
register: cluster
- name: create a node pool
gcp_container_node_pool:
google.cloud.gcp_container_node_pool:
name: my-pool
initial_node_count: 4
cluster: "{{ cluster }}"

View file

@ -226,7 +226,7 @@ notes:
EXAMPLES = '''
- name: create a managed zone
gcp_dns_managed_zone:
google.cloud.gcp_dns_managed_zone:
name: test_object
dns_name: test.somewild2.example.com.
description: test zone

View file

@ -122,7 +122,7 @@ options:
EXAMPLES = '''
- name: create a managed zone
gcp_dns_managed_zone:
google.cloud.gcp_dns_managed_zone:
name: managedzone-rrs
dns_name: testzone-4.com.
description: test zone
@ -133,7 +133,7 @@ EXAMPLES = '''
register: managed_zone
- name: create a resource record set
gcp_dns_resource_record_set:
google.cloud.gcp_dns_resource_record_set:
name: www.testzone-4.com.
managed_zone: "{{ managed_zone }}"
type: A

View file

@ -171,7 +171,7 @@ notes:
EXAMPLES = '''
- name: create a instance
gcp_filestore_instance:
google.cloud.gcp_filestore_instance:
name: test_object
zone: us-central1-b
tier: PREMIUM

View file

@ -117,7 +117,7 @@ options:
EXAMPLES = '''
- name: create a role
gcp_iam_role:
google.cloud.gcp_iam_role:
name: myCustomRole2
title: My Custom Role
description: My custom role description

View file

@ -99,7 +99,7 @@ options:
EXAMPLES = '''
- name: create a service account
gcp_iam_service_account:
google.cloud.gcp_iam_service_account:
name: sa-{{ resource_name.split("-")[-1] }}@graphite-playground.google.com.iam.gserviceaccount.com
display_name: My Ansible test key
project: test_project

View file

@ -118,7 +118,7 @@ options:
EXAMPLES = '''
- name: create a service account
gcp_iam_service_account:
google.cloud.gcp_iam_service_account:
name: test-ansible@graphite-playground.google.com.iam.gserviceaccount.com
display_name: My Ansible test key
project: "{{ gcp_project }}"
@ -128,7 +128,7 @@ EXAMPLES = '''
register: serviceaccount
- name: create a service account key
gcp_iam_service_account_key:
google.cloud.gcp_iam_service_account_key:
service_account: "{{ serviceaccount }}"
private_key_type: TYPE_GOOGLE_CREDENTIALS_FILE
path: "~/test_account.json"

View file

@ -154,7 +154,7 @@ notes:
EXAMPLES = '''
- name: create a key ring
gcp_kms_key_ring:
google.cloud.gcp_kms_key_ring:
name: key-key-ring
location: us-central1
project: "{{ gcp_project }}"
@ -164,7 +164,7 @@ EXAMPLES = '''
register: keyring
- name: create a crypto key
gcp_kms_crypto_key:
google.cloud.gcp_kms_crypto_key:
name: test_object
key_ring: projects/{{ gcp_project }}/locations/us-central1/keyRings/key-key-ring
project: test_project

View file

@ -114,7 +114,7 @@ notes:
EXAMPLES = '''
- name: create a key ring
gcp_kms_key_ring:
google.cloud.gcp_kms_key_ring:
name: test_object
location: us-central1
project: test_project

View file

@ -135,7 +135,7 @@ options:
EXAMPLES = '''
- name: create a model
gcp_mlengine_model:
google.cloud.gcp_mlengine_model:
name: "{{ resource_name | replace('-', '_') }}"
description: My model
regions:

View file

@ -199,7 +199,7 @@ options:
EXAMPLES = '''
- name: create a model
gcp_mlengine_model:
google.cloud.gcp_mlengine_model:
name: model_version
description: My model
regions:
@ -213,7 +213,7 @@ EXAMPLES = '''
register: model
- name: create a version
gcp_mlengine_version:
google.cloud.gcp_mlengine_version:
name: "{{ resource_name | replace('-', '_') }}"
model: "{{ model }}"
runtime_version: 1.13

View file

@ -219,7 +219,7 @@ notes:
EXAMPLES = '''
- name: create a topic
gcp_pubsub_topic:
google.cloud.gcp_pubsub_topic:
name: topic-subscription
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -228,7 +228,7 @@ EXAMPLES = '''
register: topic
- name: create a subscription
gcp_pubsub_subscription:
google.cloud.gcp_pubsub_subscription:
name: test_object
topic: "{{ topic }}"
ack_deadline_seconds: 300

View file

@ -140,7 +140,7 @@ notes:
EXAMPLES = '''
- name: create a topic
gcp_pubsub_topic:
google.cloud.gcp_pubsub_topic:
name: test-topic1
project: test_project
auth_kind: serviceaccount

View file

@ -179,7 +179,7 @@ notes:
EXAMPLES = '''
- name: create a network
gcp_compute_network:
google.cloud.gcp_compute_network:
name: network-instance
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -188,7 +188,7 @@ EXAMPLES = '''
register: network
- name: create a instance
gcp_redis_instance:
google.cloud.gcp_redis_instance:
name: instance37
tier: STANDARD_HA
memory_size_gb: 1

View file

@ -132,7 +132,7 @@ options:
EXAMPLES = '''
- name: create a project
gcp_resourcemanager_project:
google.cloud.gcp_resourcemanager_project:
name: My Sample Project
id: alextest-{{ 10000000000 | random }}
auth_kind: serviceaccount

View file

@ -109,7 +109,7 @@ notes:
EXAMPLES = '''
- name: create a repository
gcp_sourcerepo_repository:
google.cloud.gcp_sourcerepo_repository:
name: test_object
project: test_project
auth_kind: serviceaccount

View file

@ -126,7 +126,7 @@ notes:
EXAMPLES = '''
- name: create a instance
gcp_spanner_instance:
google.cloud.gcp_spanner_instance:
name: instance-database
display_name: My Spanner Instance
node_count: 2
@ -140,7 +140,7 @@ EXAMPLES = '''
register: instance
- name: create a database
gcp_spanner_database:
google.cloud.gcp_spanner_database:
name: webstore
instance: "{{ instance }}"
project: test_project

View file

@ -136,7 +136,7 @@ notes:
EXAMPLES = '''
- name: create a instance
gcp_spanner_instance:
google.cloud.gcp_spanner_instance:
name: testinstance
display_name: My Spanner Instance
node_count: 2

View file

@ -116,7 +116,7 @@ options:
EXAMPLES = '''
- name: create a instance
gcp_sql_instance:
google.cloud.gcp_sql_instance:
name: "{{resource_name}}-3"
settings:
ip_configuration:
@ -132,7 +132,7 @@ EXAMPLES = '''
register: instance
- name: create a database
gcp_sql_database:
google.cloud.gcp_sql_database:
name: test_object
charset: utf8
instance: "{{ instance.name }}"

View file

@ -363,7 +363,7 @@ options:
EXAMPLES = '''
- name: create a instance
gcp_sql_instance:
google.cloud.gcp_sql_instance:
name: "{{resource_name}}-2"
settings:
ip_configuration:

View file

@ -116,7 +116,7 @@ options:
EXAMPLES = '''
- name: create a instance
gcp_sql_instance:
google.cloud.gcp_sql_instance:
name: "{{resource_name}}-1"
settings:
ip_configuration:
@ -132,7 +132,7 @@ EXAMPLES = '''
register: instance
- name: create a user
gcp_sql_user:
google.cloud.gcp_sql_user:
name: test-user
host: 10.1.2.3
password: secret-password

View file

@ -397,7 +397,7 @@ options:
EXAMPLES = '''
- name: create a bucket
gcp_storage_bucket:
google.cloud.gcp_storage_bucket:
name: ansible-storage-module
project: test_project
auth_kind: serviceaccount

View file

@ -124,7 +124,7 @@ options:
EXAMPLES = '''
- name: create a bucket
gcp_storage_bucket:
google.cloud.gcp_storage_bucket:
name: "{{ resource_name }}"
project: "{{ gcp_project }}"
auth_kind: "{{ gcp_cred_kind }}"
@ -133,7 +133,7 @@ EXAMPLES = '''
register: bucket
- name: create a bucket access control
gcp_storage_bucket_access_control:
google.cloud.gcp_storage_bucket_access_control:
bucket: "{{ bucket }}"
entity: user-alexstephen@google.com
role: WRITER

View file

@ -116,7 +116,7 @@ options:
EXAMPLES = '''
- name: create a object
gcp_storage_object:
google.cloud.gcp_storage_object:
action: download
bucket: ansible-bucket
src: modules.zip

View file

@ -163,7 +163,7 @@ notes:
EXAMPLES = '''
- name: create a node
gcp_tpu_node:
google.cloud.gcp_tpu_node:
name: test_object
zone: us-central1-b
accelerator_type: v3-8