mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-07 11:20:28 -07:00
Use Ruby YAML library to serialize Ansible examples (#196)
<!-- This change is generated by MagicModules. --> /cc @rambleraptor
This commit is contained in:
parent
675efbaadd
commit
ebd14d6e56
127 changed files with 1968 additions and 2049 deletions
|
@ -148,13 +148,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a dataset
|
- name: create a dataset
|
||||||
gcp_bigquery_dataset:
|
gcp_bigquery_dataset:
|
||||||
name: my_example_dataset
|
name: my_example_dataset
|
||||||
dataset_reference:
|
dataset_reference:
|
||||||
dataset_id: my_example_dataset
|
dataset_id: my_example_dataset
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a dataset facts
|
- name: " a dataset facts"
|
||||||
gcp_bigquery_dataset_facts:
|
gcp_bigquery_dataset_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -428,27 +428,27 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a dataset
|
- name: create a dataset
|
||||||
gcp_bigquery_dataset:
|
gcp_bigquery_dataset:
|
||||||
name: example_dataset
|
name: example_dataset
|
||||||
dataset_reference:
|
dataset_reference:
|
||||||
dataset_id: example_dataset
|
dataset_id: example_dataset
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
register: dataset
|
register: dataset
|
||||||
|
|
||||||
- name: create a table
|
- name: create a table
|
||||||
gcp_bigquery_table:
|
gcp_bigquery_table:
|
||||||
name: example_table
|
name: example_table
|
||||||
dataset: example_dataset
|
dataset: example_dataset
|
||||||
table_reference:
|
table_reference:
|
||||||
dataset_id: example_dataset
|
dataset_id: example_dataset
|
||||||
project_id: "test_project"
|
project_id: test_project
|
||||||
table_id: example_table
|
table_id: example_table
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -48,12 +48,13 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a table facts
|
- name: " a table facts"
|
||||||
gcp_bigquery_table_facts:
|
gcp_bigquery_table_facts:
|
||||||
dataset: example_dataset
|
dataset: example_dataset
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -184,23 +184,23 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a repository
|
- name: create a repository
|
||||||
gcp_sourcerepo_repository:
|
gcp_sourcerepo_repository:
|
||||||
name: projects/{{ gcp_project }}/repos/{{ resource_name }}
|
name: projects/{{ gcp_project }}/repos/{{ resource_name }}
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: create a trigger
|
- name: create a trigger
|
||||||
gcp_cloudbuild_trigger:
|
gcp_cloudbuild_trigger:
|
||||||
trigger_template:
|
trigger_template:
|
||||||
branch_name: master
|
branch_name: master
|
||||||
project_id: "test_project"
|
project_id: test_project
|
||||||
repo_name: "test_object"
|
repo_name: test_object
|
||||||
filename: cloudbuild.yaml
|
filename: cloudbuild.yaml
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a trigger facts
|
- name: " a trigger facts"
|
||||||
gcp_cloudbuild_trigger_facts:
|
gcp_cloudbuild_trigger_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -121,12 +121,12 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a address
|
- name: create a address
|
||||||
gcp_compute_address:
|
gcp_compute_address:
|
||||||
name: test-address1
|
name: test-address1
|
||||||
region: us-west1
|
region: us-west1
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -56,12 +56,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a address facts"
|
- name: " a address facts"
|
||||||
gcp_compute_address_facts:
|
gcp_compute_address_facts:
|
||||||
region: us-west1
|
region: us-west1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -92,14 +92,14 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a backend bucket
|
- name: create a backend bucket
|
||||||
gcp_compute_backend_bucket:
|
gcp_compute_backend_bucket:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
bucket_name: "{{ bucket.name }}"
|
bucket_name: "{{ bucket.name }}"
|
||||||
description: A BackendBucket to connect LNB w/ Storage Bucket
|
description: A BackendBucket to connect LNB w/ Storage Bucket
|
||||||
enable_cdn: true
|
enable_cdn: 'true'
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a backend bucket facts"
|
- name: " a backend bucket facts"
|
||||||
gcp_compute_backend_bucket_facts:
|
gcp_compute_backend_bucket_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -328,16 +328,16 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a backend service
|
- name: create a backend service
|
||||||
gcp_compute_backend_service:
|
gcp_compute_backend_service:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
backends:
|
backends:
|
||||||
- group: "{{ instancegroup }}"
|
- group: "{{ instancegroup }}"
|
||||||
health_checks:
|
health_checks:
|
||||||
- "{{ healthcheck.selfLink }}"
|
- "{{ healthcheck.selfLink }}"
|
||||||
enable_cdn: true
|
enable_cdn: 'true'
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a backend service facts"
|
- name: " a backend service facts"
|
||||||
gcp_compute_backend_service_facts:
|
gcp_compute_backend_service_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -197,15 +197,15 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a disk
|
- name: create a disk
|
||||||
gcp_compute_disk:
|
gcp_compute_disk:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
size_gb: 50
|
size_gb: 50
|
||||||
disk_encryption_key:
|
disk_encryption_key:
|
||||||
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
|
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
|
||||||
zone: us-central1-a
|
zone: us-central1-a
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a disk facts"
|
- name: " a disk facts"
|
||||||
gcp_compute_disk_facts:
|
gcp_compute_disk_facts:
|
||||||
zone: us-central1-a
|
zone: us-central1-a
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -221,20 +221,20 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a firewall
|
- name: create a firewall
|
||||||
gcp_compute_firewall:
|
gcp_compute_firewall:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
allowed:
|
allowed:
|
||||||
- ip_protocol: tcp
|
- ip_protocol: tcp
|
||||||
ports:
|
ports:
|
||||||
- '22'
|
- '22'
|
||||||
target_tags:
|
target_tags:
|
||||||
- test-ssh-server
|
- test-ssh-server
|
||||||
- staging-ssh-server
|
- staging-ssh-server
|
||||||
source_tags:
|
source_tags:
|
||||||
- test-ssh-clients
|
- test-ssh-clients
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a firewall facts"
|
- name: " a firewall facts"
|
||||||
gcp_compute_firewall_facts:
|
gcp_compute_firewall_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -232,16 +232,16 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a forwarding rule
|
- name: create a forwarding rule
|
||||||
gcp_compute_forwarding_rule:
|
gcp_compute_forwarding_rule:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
region: us-west1
|
region: us-west1
|
||||||
target: "{{ targetpool }}"
|
target: "{{ targetpool }}"
|
||||||
ip_protocol: TCP
|
ip_protocol: TCP
|
||||||
port_range: 80-80
|
port_range: 80-80
|
||||||
ip_address: "{{ address.address }}"
|
ip_address: "{{ address.address }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -56,12 +56,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a forwarding rule facts"
|
- name: " a forwarding rule facts"
|
||||||
gcp_compute_forwarding_rule_facts:
|
gcp_compute_forwarding_rule_facts:
|
||||||
region: us-west1
|
region: us-west1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -95,11 +95,11 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a global address
|
- name: create a global address
|
||||||
gcp_compute_global_address:
|
gcp_compute_global_address:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a global address facts"
|
- name: " a global address facts"
|
||||||
gcp_compute_global_address_facts:
|
gcp_compute_global_address_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -254,15 +254,15 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a global forwarding rule
|
- name: create a global forwarding rule
|
||||||
gcp_compute_global_forwarding_rule:
|
gcp_compute_global_forwarding_rule:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
ip_address: "{{ globaladdress.address }}"
|
ip_address: "{{ globaladdress.address }}"
|
||||||
ip_protocol: TCP
|
ip_protocol: TCP
|
||||||
port_range: 80-80
|
port_range: 80-80
|
||||||
target: "{{ httpproxy.selfLink }}"
|
target: "{{ httpproxy.selfLink }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a global forwarding rule facts"
|
- name: " a global forwarding rule facts"
|
||||||
gcp_compute_global_forwarding_rule_facts:
|
gcp_compute_global_forwarding_rule_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -271,19 +271,19 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a health check
|
- name: create a health check
|
||||||
gcp_compute_health_check:
|
gcp_compute_health_check:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
type: TCP
|
type: TCP
|
||||||
tcp_health_check:
|
tcp_health_check:
|
||||||
port_name: service-health
|
port_name: service-health
|
||||||
request: ping
|
request: ping
|
||||||
response: pong
|
response: pong
|
||||||
healthy_threshold: 10
|
healthy_threshold: 10
|
||||||
timeout_sec: 2
|
timeout_sec: 2
|
||||||
unhealthy_threshold: 5
|
unhealthy_threshold: 5
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a health check facts"
|
- name: " a health check facts"
|
||||||
gcp_compute_health_check_facts:
|
gcp_compute_health_check_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -112,15 +112,15 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a http health check
|
- name: create a http health check
|
||||||
gcp_compute_http_health_check:
|
gcp_compute_http_health_check:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
healthy_threshold: 10
|
healthy_threshold: 10
|
||||||
port: 8080
|
port: 8080
|
||||||
timeout_sec: 2
|
timeout_sec: 2
|
||||||
unhealthy_threshold: 5
|
unhealthy_threshold: 5
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a http health check facts"
|
- name: " a http health check facts"
|
||||||
gcp_compute_http_health_check_facts:
|
gcp_compute_http_health_check_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -109,15 +109,15 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a https health check
|
- name: create a https health check
|
||||||
gcp_compute_https_health_check:
|
gcp_compute_https_health_check:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
healthy_threshold: 10
|
healthy_threshold: 10
|
||||||
port: 8080
|
port: 8080
|
||||||
timeout_sec: 2
|
timeout_sec: 2
|
||||||
unhealthy_threshold: 5
|
unhealthy_threshold: 5
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a https health check facts"
|
- name: " a https health check facts"
|
||||||
gcp_compute_https_health_check_facts:
|
gcp_compute_https_health_check_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -210,12 +210,12 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a image
|
- name: create a image
|
||||||
gcp_compute_image:
|
gcp_compute_image:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
source_disk: "{{ disk }}"
|
source_disk: "{{ disk }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a image facts"
|
- name: " a image facts"
|
||||||
gcp_compute_image_facts:
|
gcp_compute_image_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -455,26 +455,26 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a instance
|
- name: create a instance
|
||||||
gcp_compute_instance:
|
gcp_compute_instance:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
machine_type: n1-standard-1
|
machine_type: n1-standard-1
|
||||||
disks:
|
disks:
|
||||||
- auto_delete: true
|
- auto_delete: 'true'
|
||||||
boot: true
|
boot: 'true'
|
||||||
source: "{{ disk }}"
|
source: "{{ disk }}"
|
||||||
metadata:
|
metadata:
|
||||||
startup-script-url: gs:://graphite-playground/bootstrap.sh
|
startup-script-url: gs:://graphite-playground/bootstrap.sh
|
||||||
cost-center: '12345'
|
cost-center: '12345'
|
||||||
network_interfaces:
|
network_interfaces:
|
||||||
- network: "{{ network }}"
|
- network: "{{ network }}"
|
||||||
access_configs:
|
access_configs:
|
||||||
- name: External NAT
|
- name: External NAT
|
||||||
nat_ip: "{{ address }}"
|
nat_ip: "{{ address }}"
|
||||||
type: ONE_TO_ONE_NAT
|
type: ONE_TO_ONE_NAT
|
||||||
zone: us-central1-a
|
zone: us-central1-a
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a instance facts"
|
- name: " a instance facts"
|
||||||
gcp_compute_instance_facts:
|
gcp_compute_instance_facts:
|
||||||
zone: us-central1-a
|
zone: us-central1-a
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -127,16 +127,16 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a instance group
|
- name: create a instance group
|
||||||
gcp_compute_instance_group:
|
gcp_compute_instance_group:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
named_ports:
|
named_ports:
|
||||||
- name: ansible
|
- name: ansible
|
||||||
port: 1234
|
port: 1234
|
||||||
network: "{{ network }}"
|
network: "{{ network }}"
|
||||||
zone: us-central1-a
|
zone: us-central1-a
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a instance group facts"
|
- name: " a instance group facts"
|
||||||
gcp_compute_instance_group_facts:
|
gcp_compute_instance_group_facts:
|
||||||
zone: us-central1-a
|
zone: us-central1-a
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -158,15 +158,15 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a instance group manager
|
- name: create a instance group manager
|
||||||
gcp_compute_instance_group_manager:
|
gcp_compute_instance_group_manager:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
base_instance_name: test1-child
|
base_instance_name: test1-child
|
||||||
instance_template: "{{ instancetemplate }}"
|
instance_template: "{{ instancetemplate }}"
|
||||||
target_size: 3
|
target_size: 3
|
||||||
zone: us-west1-a
|
zone: us-west1-a
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a instance group manager facts"
|
- name: " a instance group manager facts"
|
||||||
gcp_compute_instance_group_manager_facts:
|
gcp_compute_instance_group_manager_facts:
|
||||||
zone: us-west1-a
|
zone: us-west1-a
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -437,24 +437,24 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a instance template
|
- name: create a instance template
|
||||||
gcp_compute_instance_template:
|
gcp_compute_instance_template:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
properties:
|
properties:
|
||||||
disks:
|
disks:
|
||||||
- auto_delete: true
|
- auto_delete: 'true'
|
||||||
boot: true
|
boot: 'true'
|
||||||
initialize_params:
|
initialize_params:
|
||||||
source_image: projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts
|
source_image: projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts
|
||||||
machine_type: n1-standard-1
|
machine_type: n1-standard-1
|
||||||
network_interfaces:
|
network_interfaces:
|
||||||
- network: "{{ network }}"
|
- network: "{{ network }}"
|
||||||
access_configs:
|
access_configs:
|
||||||
- name: test-config
|
- name: test-config
|
||||||
type: ONE_TO_ONE_NAT
|
type: ONE_TO_ONE_NAT
|
||||||
nat_ip: "{{ address }}"
|
nat_ip: "{{ address }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a instance template facts"
|
- name: " a instance template facts"
|
||||||
gcp_compute_instance_template_facts:
|
gcp_compute_instance_template_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -119,14 +119,14 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a interconnect attachment
|
- name: create a interconnect attachment
|
||||||
gcp_compute_interconnect_attachment:
|
gcp_compute_interconnect_attachment:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
region: us-central1
|
region: us-central1
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
interconnect: https://googleapis.com/compute/v1/projects/test_project/global/interconnects/...
|
interconnect: https://googleapis.com/compute/v1/projects/test_project/global/interconnects/...
|
||||||
router: https://googleapis.com/compute/v1/projects/test_project/regions/us-central1/routers/...
|
router: https://googleapis.com/compute/v1/projects/test_project/regions/us-central1/routers/...
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
register: disk
|
register: disk
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -53,14 +53,15 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a interconnect attachment facts
|
- name: " a interconnect attachment facts"
|
||||||
gcp_compute_interconnect_attachment_facts:
|
gcp_compute_interconnect_attachment_facts:
|
||||||
region: us-central1
|
region: us-central1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -113,12 +113,12 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a network
|
- name: create a network
|
||||||
gcp_compute_network:
|
gcp_compute_network:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
auto_create_subnetworks: true
|
auto_create_subnetworks: 'true'
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a network facts"
|
- name: " a network facts"
|
||||||
gcp_compute_network_facts:
|
gcp_compute_network_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -157,18 +157,18 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a region disk
|
- name: create a region disk
|
||||||
gcp_compute_region_disk:
|
gcp_compute_region_disk:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
size_gb: 50
|
size_gb: 50
|
||||||
disk_encryption_key:
|
disk_encryption_key:
|
||||||
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
|
raw_key: SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=
|
||||||
region: us-central1
|
region: us-central1
|
||||||
replica_zones:
|
replica_zones:
|
||||||
- https://www.googleapis.com/compute/v1/projects/google.com:graphite-playground/zones/us-central1-a
|
- https://www.googleapis.com/compute/v1/projects/google.com:graphite-playground/zones/us-central1-a
|
||||||
- https://www.googleapis.com/compute/v1/projects/google.com:graphite-playground/zones/us-central1-b
|
- https://www.googleapis.com/compute/v1/projects/google.com:graphite-playground/zones/us-central1-b
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -53,14 +53,15 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a region disk facts
|
- name: " a region disk facts"
|
||||||
gcp_compute_region_disk_facts:
|
gcp_compute_region_disk_facts:
|
||||||
region: us-central1
|
region: us-central1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -151,17 +151,17 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a route
|
- name: create a route
|
||||||
gcp_compute_route:
|
gcp_compute_route:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
dest_range: 192.168.6.0/24
|
dest_range: 192.168.6.0/24
|
||||||
next_hop_gateway: global/gateways/default-internet-gateway
|
next_hop_gateway: global/gateways/default-internet-gateway
|
||||||
network: "{{ network }}"
|
network: "{{ network }}"
|
||||||
tags:
|
tags:
|
||||||
- backends
|
- backends
|
||||||
- databases
|
- databases
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a route facts"
|
- name: " a route facts"
|
||||||
gcp_compute_route_facts:
|
gcp_compute_route_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -135,21 +135,21 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a router
|
- name: create a router
|
||||||
gcp_compute_router:
|
gcp_compute_router:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
network: "{{ network }}"
|
network: "{{ network }}"
|
||||||
bgp:
|
bgp:
|
||||||
asn: 64514
|
asn: 64514
|
||||||
advertise_mode: CUSTOM
|
advertise_mode: CUSTOM
|
||||||
advertised_groups:
|
advertised_groups:
|
||||||
- ALL_SUBNETS
|
- ALL_SUBNETS
|
||||||
advertised_ip_ranges:
|
advertised_ip_ranges:
|
||||||
- range: 1.2.3.4
|
- range: 1.2.3.4
|
||||||
- range: 6.7.0.0/16
|
- range: 6.7.0.0/16
|
||||||
region: us-central1
|
region: us-central1
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a router facts"
|
- name: " a router facts"
|
||||||
gcp_compute_router_facts:
|
gcp_compute_router_facts:
|
||||||
region: us-central1
|
region: us-central1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -81,36 +81,24 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a ssl certificate
|
- name: create a ssl certificate
|
||||||
gcp_compute_ssl_certificate:
|
gcp_compute_ssl_certificate:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
description: A certificate for testing. Do not use this certificate in production
|
description: A certificate for testing. Do not use this certificate in production
|
||||||
certificate: |
|
certificate: "-----BEGIN CERTIFICATE----- MIICqjCCAk+gAwIBAgIJAIuJ+0352Kq4MAoGCCqGSM49BAMCMIGwMQswCQYDVQQG
|
||||||
-----BEGIN CERTIFICATE-----
|
EwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjERMA8GA1UEBwwIS2lya2xhbmQxFTAT BgNVBAoMDEdvb2dsZSwgSW5jLjEeMBwGA1UECwwVR29vZ2xlIENsb3VkIFBsYXRm
|
||||||
MIICqjCCAk+gAwIBAgIJAIuJ+0352Kq4MAoGCCqGSM49BAMCMIGwMQswCQYDVQQG
|
b3JtMR8wHQYDVQQDDBZ3d3cubXktc2VjdXJlLXNpdGUuY29tMSEwHwYJKoZIhvcN AQkBFhJuZWxzb25hQGdvb2dsZS5jb20wHhcNMTcwNjI4MDQ1NjI2WhcNMjcwNjI2
|
||||||
EwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjERMA8GA1UEBwwIS2lya2xhbmQxFTAT
|
MDQ1NjI2WjCBsDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xETAP BgNVBAcMCEtpcmtsYW5kMRUwEwYDVQQKDAxHb29nbGUsIEluYy4xHjAcBgNVBAsM
|
||||||
BgNVBAoMDEdvb2dsZSwgSW5jLjEeMBwGA1UECwwVR29vZ2xlIENsb3VkIFBsYXRm
|
FUdvb2dsZSBDbG91ZCBQbGF0Zm9ybTEfMB0GA1UEAwwWd3d3Lm15LXNlY3VyZS1z aXRlLmNvbTEhMB8GCSqGSIb3DQEJARYSbmVsc29uYUBnb29nbGUuY29tMFkwEwYH
|
||||||
b3JtMR8wHQYDVQQDDBZ3d3cubXktc2VjdXJlLXNpdGUuY29tMSEwHwYJKoZIhvcN
|
KoZIzj0CAQYIKoZIzj0DAQcDQgAEHGzpcRJ4XzfBJCCPMQeXQpTXwlblimODQCuQ 4mzkzTv0dXyB750fOGN02HtkpBOZzzvUARTR10JQoSe2/5PIwaNQME4wHQYDVR0O
|
||||||
AQkBFhJuZWxzb25hQGdvb2dsZS5jb20wHhcNMTcwNjI4MDQ1NjI2WhcNMjcwNjI2
|
BBYEFKIQC3A2SDpxcdfn0YLKineDNq/BMB8GA1UdIwQYMBaAFKIQC3A2SDpxcdfn 0YLKineDNq/BMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0EAwIDSQAwRgIhALs4vy+O
|
||||||
MDQ1NjI2WjCBsDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xETAP
|
M3jcqgA4fSW/oKw6UJxp+M6a+nGMX+UJR3YgAiEAvvl39QRVAiv84hdoCuyON0lJ zqGNhIPGq2ULqXKK8BY=
|
||||||
BgNVBAcMCEtpcmtsYW5kMRUwEwYDVQQKDAxHb29nbGUsIEluYy4xHjAcBgNVBAsM
|
-----END CERTIFICATE-----"
|
||||||
FUdvb2dsZSBDbG91ZCBQbGF0Zm9ybTEfMB0GA1UEAwwWd3d3Lm15LXNlY3VyZS1z
|
private_key: "-----BEGIN EC PRIVATE KEY----- MHcCAQEEIObtRo8tkUqoMjeHhsOh2ouPpXCgBcP+EDxZCB/tws15oAoGCCqGSM49
|
||||||
aXRlLmNvbTEhMB8GCSqGSIb3DQEJARYSbmVsc29uYUBnb29nbGUuY29tMFkwEwYH
|
AwEHoUQDQgAEHGzpcRJ4XzfBJCCPMQeXQpTXwlblimODQCuQ4mzkzTv0dXyB750f OGN02HtkpBOZzzvUARTR10JQoSe2/5PIwQ==
|
||||||
KoZIzj0CAQYIKoZIzj0DAQcDQgAEHGzpcRJ4XzfBJCCPMQeXQpTXwlblimODQCuQ
|
-----END EC PRIVATE KEY-----"
|
||||||
4mzkzTv0dXyB750fOGN02HtkpBOZzzvUARTR10JQoSe2/5PIwaNQME4wHQYDVR0O
|
project: test_project
|
||||||
BBYEFKIQC3A2SDpxcdfn0YLKineDNq/BMB8GA1UdIwQYMBaAFKIQC3A2SDpxcdfn
|
auth_kind: serviceaccount
|
||||||
0YLKineDNq/BMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0EAwIDSQAwRgIhALs4vy+O
|
service_account_file: "/tmp/auth.pem"
|
||||||
M3jcqgA4fSW/oKw6UJxp+M6a+nGMX+UJR3YgAiEAvvl39QRVAiv84hdoCuyON0lJ
|
state: present
|
||||||
zqGNhIPGq2ULqXKK8BY=
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
private_key: |
|
|
||||||
-----BEGIN EC PRIVATE KEY-----
|
|
||||||
MHcCAQEEIObtRo8tkUqoMjeHhsOh2ouPpXCgBcP+EDxZCB/tws15oAoGCCqGSM49
|
|
||||||
AwEHoUQDQgAEHGzpcRJ4XzfBJCCPMQeXQpTXwlblimODQCuQ4mzkzTv0dXyB750f
|
|
||||||
OGN02HtkpBOZzzvUARTR10JQoSe2/5PIwQ==
|
|
||||||
-----END EC PRIVATE KEY-----
|
|
||||||
project: "test_project"
|
|
||||||
auth_kind: "serviceaccount"
|
|
||||||
service_account_file: "/tmp/auth.pem"
|
|
||||||
state: present
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a ssl certificate facts"
|
- name: " a ssl certificate facts"
|
||||||
gcp_compute_ssl_certificate_facts:
|
gcp_compute_ssl_certificate_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -98,16 +98,16 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a ssl policy
|
- name: create a ssl policy
|
||||||
gcp_compute_ssl_policy:
|
gcp_compute_ssl_policy:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
profile: CUSTOM
|
profile: CUSTOM
|
||||||
min_tls_version: TLS_1_2
|
min_tls_version: TLS_1_2
|
||||||
custom_features:
|
custom_features:
|
||||||
- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
|
- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
|
||||||
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
|
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a ssl policy facts"
|
- name: " a ssl policy facts"
|
||||||
gcp_compute_ssl_policy_facts:
|
gcp_compute_ssl_policy_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -150,14 +150,14 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a subnetwork
|
- name: create a subnetwork
|
||||||
gcp_compute_subnetwork:
|
gcp_compute_subnetwork:
|
||||||
name: ansiblenet
|
name: ansiblenet
|
||||||
region: us-west1
|
region: us-west1
|
||||||
network: "{{ network }}"
|
network: "{{ network }}"
|
||||||
ip_cidr_range: 172.16.0.0/16
|
ip_cidr_range: 172.16.0.0/16
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a subnetwork facts"
|
- name: " a subnetwork facts"
|
||||||
gcp_compute_subnetwork_facts:
|
gcp_compute_subnetwork_facts:
|
||||||
region: us-west1
|
region: us-west1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -126,12 +126,12 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a target http proxy
|
- name: create a target http proxy
|
||||||
gcp_compute_target_http_proxy:
|
gcp_compute_target_http_proxy:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
url_map: "{{ urlmap }}"
|
url_map: "{{ urlmap }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a target http proxy facts"
|
- name: " a target http proxy facts"
|
||||||
gcp_compute_target_http_proxy_facts:
|
gcp_compute_target_http_proxy_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -178,14 +178,14 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a target https proxy
|
- name: create a target https proxy
|
||||||
gcp_compute_target_https_proxy:
|
gcp_compute_target_https_proxy:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
ssl_certificates:
|
ssl_certificates:
|
||||||
- "{{ sslcert }}"
|
- "{{ sslcert }}"
|
||||||
url_map: "{{ urlmap }}"
|
url_map: "{{ urlmap }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a target https proxy facts"
|
- name: " a target https proxy facts"
|
||||||
gcp_compute_target_https_proxy_facts:
|
gcp_compute_target_https_proxy_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -135,12 +135,12 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a target pool
|
- name: create a target pool
|
||||||
gcp_compute_target_pool:
|
gcp_compute_target_pool:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
region: us-west1
|
region: us-west1
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a target pool facts"
|
- name: " a target pool facts"
|
||||||
gcp_compute_target_pool_facts:
|
gcp_compute_target_pool_facts:
|
||||||
region: us-west1
|
region: us-west1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -167,14 +167,14 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a target ssl proxy
|
- name: create a target ssl proxy
|
||||||
gcp_compute_target_ssl_proxy:
|
gcp_compute_target_ssl_proxy:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
ssl_certificates:
|
ssl_certificates:
|
||||||
- "{{ sslcert }}"
|
- "{{ sslcert }}"
|
||||||
service: "{{ backendservice }}"
|
service: "{{ backendservice }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a target ssl proxy facts"
|
- name: " a target ssl proxy facts"
|
||||||
gcp_compute_target_ssl_proxy_facts:
|
gcp_compute_target_ssl_proxy_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -128,13 +128,13 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a target tcp proxy
|
- name: create a target tcp proxy
|
||||||
gcp_compute_target_tcp_proxy:
|
gcp_compute_target_tcp_proxy:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
proxy_header: PROXY_V1
|
proxy_header: PROXY_V1
|
||||||
service: "{{ backendservice }}"
|
service: "{{ backendservice }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a target tcp proxy facts"
|
- name: " a target tcp proxy facts"
|
||||||
gcp_compute_target_tcp_proxy_facts:
|
gcp_compute_target_tcp_proxy_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -100,13 +100,13 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a target vpn gateway
|
- name: create a target vpn gateway
|
||||||
gcp_compute_target_vpn_gateway:
|
gcp_compute_target_vpn_gateway:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
region: us-west1
|
region: us-west1
|
||||||
network: "{{ network }}"
|
network: "{{ network }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a target vpn gateway facts"
|
- name: " a target vpn gateway facts"
|
||||||
gcp_compute_target_vpn_gateway_facts:
|
gcp_compute_target_vpn_gateway_facts:
|
||||||
region: us-west1
|
region: us-west1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -207,12 +207,12 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a url map
|
- name: create a url map
|
||||||
gcp_compute_url_map:
|
gcp_compute_url_map:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
default_service: "{{ backendservice }}"
|
default_service: "{{ backendservice }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -51,11 +51,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a url map facts"
|
- name: " a url map facts"
|
||||||
gcp_compute_url_map_facts:
|
gcp_compute_url_map_facts:
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -123,54 +123,54 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a network
|
- name: create a network
|
||||||
gcp_compute_network:
|
gcp_compute_network:
|
||||||
name: "network-vpn-tunnel"
|
name: network-vpn-tunnel
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
register: network
|
register: network
|
||||||
|
|
||||||
- name: create a router
|
- name: create a router
|
||||||
gcp_compute_router:
|
gcp_compute_router:
|
||||||
name: "router-vpn-tunnel"
|
name: router-vpn-tunnel
|
||||||
network: "{{ network }}"
|
network: "{{ network }}"
|
||||||
bgp:
|
bgp:
|
||||||
asn: 64514
|
asn: 64514
|
||||||
advertise_mode: CUSTOM
|
advertise_mode: CUSTOM
|
||||||
advertised_groups:
|
advertised_groups:
|
||||||
- ALL_SUBNETS
|
- ALL_SUBNETS
|
||||||
advertised_ip_ranges:
|
advertised_ip_ranges:
|
||||||
- range: 1.2.3.4
|
- range: 1.2.3.4
|
||||||
- range: 6.7.0.0/16
|
- range: 6.7.0.0/16
|
||||||
region: us-central1
|
region: us-central1
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
register: router
|
register: router
|
||||||
|
|
||||||
- name: create a target vpn gateway
|
- name: create a target vpn gateway
|
||||||
gcp_compute_target_vpn_gateway:
|
gcp_compute_target_vpn_gateway:
|
||||||
name: "gateway-vpn-tunnel"
|
name: gateway-vpn-tunnel
|
||||||
region: us-west1
|
region: us-west1
|
||||||
network: "{{ network }}"
|
network: "{{ network }}"
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
register: gateway
|
register: gateway
|
||||||
|
|
||||||
- name: create a vpn tunnel
|
- name: create a vpn tunnel
|
||||||
gcp_compute_vpn_tunnel:
|
gcp_compute_vpn_tunnel:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
region: us-west1
|
region: us-west1
|
||||||
target_vpn_gateway: "{{ gateway }}"
|
target_vpn_gateway: "{{ gateway }}"
|
||||||
router: "{{ router }}"
|
router: "{{ router }}"
|
||||||
shared_secret: super secret
|
shared_secret: super secret
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -55,12 +55,13 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: " a vpn tunnel facts"
|
- name: " a vpn tunnel facts"
|
||||||
gcp_compute_vpn_tunnel_facts:
|
gcp_compute_vpn_tunnel_facts:
|
||||||
region: us-west1
|
region: us-west1
|
||||||
filters:
|
filters:
|
||||||
- name = test_object
|
- name = test_object
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -265,19 +265,19 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a cluster
|
- name: create a cluster
|
||||||
gcp_container_cluster:
|
gcp_container_cluster:
|
||||||
name: my-cluster
|
name: my-cluster
|
||||||
initial_node_count: 2
|
initial_node_count: 2
|
||||||
master_auth:
|
master_auth:
|
||||||
username: cluster_admin
|
username: cluster_admin
|
||||||
password: my-secret-password
|
password: my-secret-password
|
||||||
node_config:
|
node_config:
|
||||||
machine_type: n1-standard-4
|
machine_type: n1-standard-4
|
||||||
disk_size_gb: 500
|
disk_size_gb: 500
|
||||||
location: us-central1-a
|
location: us-central1-a
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -52,12 +52,13 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a cluster facts
|
- name: " a cluster facts"
|
||||||
gcp_container_cluster_facts:
|
gcp_container_cluster_facts:
|
||||||
location: us-central1-a
|
location: us-central1-a
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -221,25 +221,25 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a cluster
|
- name: create a cluster
|
||||||
gcp_container_cluster:
|
gcp_container_cluster:
|
||||||
name: "cluster-nodepool"
|
name: cluster-nodepool
|
||||||
initial_node_count: 4
|
initial_node_count: 4
|
||||||
location: us-central1-a
|
location: us-central1-a
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
register: cluster
|
register: cluster
|
||||||
|
|
||||||
- name: create a node pool
|
- name: create a node pool
|
||||||
gcp_container_node_pool:
|
gcp_container_node_pool:
|
||||||
name: my-pool
|
name: my-pool
|
||||||
initial_node_count: 4
|
initial_node_count: 4
|
||||||
cluster: "{{ cluster }}"
|
cluster: "{{ cluster }}"
|
||||||
location: us-central1-a
|
location: us-central1-a
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -60,13 +60,14 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a node pool facts
|
- name: " a node pool facts"
|
||||||
gcp_container_node_pool_facts:
|
gcp_container_node_pool_facts:
|
||||||
cluster: "{{ cluster }}"
|
cluster: "{{ cluster }}"
|
||||||
location: us-central1-a
|
location: us-central1-a
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -82,13 +82,13 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a managed zone
|
- name: create a managed zone
|
||||||
gcp_dns_managed_zone:
|
gcp_dns_managed_zone:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
dns_name: test.somewild2.example.com.
|
dns_name: test.somewild2.example.com.
|
||||||
description: test zone
|
description: test zone
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -47,12 +47,13 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a managed zone facts
|
- name: " a managed zone facts"
|
||||||
gcp_dns_managed_zone_facts:
|
gcp_dns_managed_zone_facts:
|
||||||
dns_name: test.somewild2.example.com.
|
dns_name: test.somewild2.example.com.
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -106,17 +106,17 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a resource record set
|
- name: create a resource record set
|
||||||
gcp_dns_resource_record_set:
|
gcp_dns_resource_record_set:
|
||||||
name: www.testzone-4.com.
|
name: www.testzone-4.com.
|
||||||
managed_zone: "{{ managed_zone }}"
|
managed_zone: "{{ managed_zone }}"
|
||||||
type: A
|
type: A
|
||||||
ttl: 600
|
ttl: 600
|
||||||
target:
|
target:
|
||||||
- 10.1.2.3
|
- 10.1.2.3
|
||||||
- 40.5.6.7
|
- 40.5.6.7
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -52,12 +52,13 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a resource record set facts
|
- name: " a resource record set facts"
|
||||||
gcp_dns_resource_record_set_facts:
|
gcp_dns_resource_record_set_facts:
|
||||||
managed_zone: "{{ managed_zone }}"
|
managed_zone: "{{ managed_zone }}"
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -81,17 +81,17 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a role
|
- name: create a role
|
||||||
gcp_iam_role:
|
gcp_iam_role:
|
||||||
name: myCustomRole2
|
name: myCustomRole2
|
||||||
title: My Custom Role
|
title: My Custom Role
|
||||||
description: My custom role description
|
description: My custom role description
|
||||||
included_permissions:
|
included_permissions:
|
||||||
- iam.roles.list
|
- iam.roles.list
|
||||||
- iam.roles.create
|
- iam.roles.create
|
||||||
- iam.roles.delete
|
- iam.roles.delete
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a role facts
|
- name: " a role facts"
|
||||||
gcp_iam_role_facts:
|
gcp_iam_role_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -61,14 +61,12 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a service account
|
- name: create a service account
|
||||||
gcp_iam_service_account:
|
gcp_iam_service_account:
|
||||||
name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"
|
name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"'
|
||||||
|
display_name: My Ansible test key
|
||||||
'
|
project: test_project
|
||||||
display_name: My Ansible test key
|
auth_kind: serviceaccount
|
||||||
project: "test_project"
|
service_account_file: "/tmp/auth.pem"
|
||||||
auth_kind: "serviceaccount"
|
state: present
|
||||||
service_account_file: "/tmp/auth.pem"
|
|
||||||
state: present
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a service account facts
|
- name: " a service account facts"
|
||||||
gcp_iam_service_account_facts:
|
gcp_iam_service_account_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -83,23 +83,23 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a service account
|
- name: create a service account
|
||||||
gcp_iam_service_account:
|
gcp_iam_service_account:
|
||||||
name: test-ansible@graphite-playground.google.com.iam.gserviceaccount.com
|
name: test-ansible@graphite-playground.google.com.iam.gserviceaccount.com
|
||||||
display_name: My Ansible test key
|
display_name: My Ansible test key
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
register: serviceaccount
|
register: serviceaccount
|
||||||
|
|
||||||
- name: create a service account key
|
- name: create a service account key
|
||||||
gcp_iam_service_account_key:
|
gcp_iam_service_account_key:
|
||||||
service_account: "{{ serviceaccount }}"
|
service_account: "{{ serviceaccount }}"
|
||||||
private_key_type: TYPE_GOOGLE_CREDENTIALS_FILE
|
private_key_type: TYPE_GOOGLE_CREDENTIALS_FILE
|
||||||
path: "~/test_account.json"
|
path: "~/test_account.json"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -131,13 +131,13 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a subscription
|
- name: create a subscription
|
||||||
gcp_pubsub_subscription:
|
gcp_pubsub_subscription:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
topic: "{{ topic }}"
|
topic: "{{ topic }}"
|
||||||
ack_deadline_seconds: 300
|
ack_deadline_seconds: 300
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a subscription facts
|
- name: " a subscription facts"
|
||||||
gcp_pubsub_subscription_facts:
|
gcp_pubsub_subscription_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -65,11 +65,11 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a topic
|
- name: create a topic
|
||||||
gcp_pubsub_topic:
|
gcp_pubsub_topic:
|
||||||
name: test-topic1
|
name: test-topic1
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a topic facts
|
- name: " a topic facts"
|
||||||
gcp_pubsub_topic_facts:
|
gcp_pubsub_topic_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -123,30 +123,30 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a network
|
- name: create a network
|
||||||
gcp_compute_network:
|
gcp_compute_network:
|
||||||
name: "network-instance"
|
name: network-instance
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
register: network
|
register: network
|
||||||
|
|
||||||
- name: create a instance
|
- name: create a instance
|
||||||
gcp_redis_instance:
|
gcp_redis_instance:
|
||||||
name: instance37
|
name: instance37
|
||||||
tier: STANDARD_HA
|
tier: STANDARD_HA
|
||||||
memory_size_gb: 1
|
memory_size_gb: 1
|
||||||
region: us-central1
|
region: us-central1
|
||||||
location_id: us-central1-a
|
location_id: us-central1-a
|
||||||
redis_version: REDIS_3_2
|
redis_version: REDIS_3_2
|
||||||
display_name: Ansible Test Instance
|
display_name: Ansible Test Instance
|
||||||
reserved_ip_range: 192.168.0.0/29
|
reserved_ip_range: 192.168.0.0/29
|
||||||
labels:
|
labels:
|
||||||
my_key: my_val
|
my_key: my_val
|
||||||
other_key: other_val
|
other_key: other_val
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -48,12 +48,13 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a instance facts
|
- name: " a instance facts"
|
||||||
gcp_redis_instance_facts:
|
gcp_redis_instance_facts:
|
||||||
region: us-central1
|
region: us-central1
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -90,14 +90,14 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a project
|
- name: create a project
|
||||||
gcp_resourcemanager_project:
|
gcp_resourcemanager_project:
|
||||||
name: My Sample Project
|
name: My Sample Project
|
||||||
id: alextest-{{ 10000000000 | random }}
|
id: alextest-{{ 10000000000 | random }}
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
parent:
|
parent:
|
||||||
type: organization
|
type: organization
|
||||||
id: 636173955921
|
id: 636173955921
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a project facts
|
- name: " a project facts"
|
||||||
gcp_resourcemanager_project_facts:
|
gcp_resourcemanager_project_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -62,11 +62,11 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a repository
|
- name: create a repository
|
||||||
gcp_sourcerepo_repository:
|
gcp_sourcerepo_repository:
|
||||||
name: projects/test_project/repos/test_object
|
name: projects/test_project/repos/test_object
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a repository facts
|
- name: " a repository facts"
|
||||||
gcp_sourcerepo_repository_facts:
|
gcp_sourcerepo_repository_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -90,12 +90,12 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create a database
|
- name: create a database
|
||||||
gcp_spanner_database:
|
gcp_spanner_database:
|
||||||
name: webstore
|
name: webstore
|
||||||
instance: "{{ instance }}"
|
instance: "{{ instance }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -52,12 +52,13 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a database facts
|
- name: " a database facts"
|
||||||
gcp_spanner_database_facts:
|
gcp_spanner_database_facts:
|
||||||
instance: "{{ instance }}"
|
instance: "{{ instance }}"
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -85,16 +85,16 @@ notes:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a instance
|
- name: create a instance
|
||||||
gcp_spanner_instance:
|
gcp_spanner_instance:
|
||||||
name: testinstance
|
name: testinstance
|
||||||
display_name: My Spanner Instance
|
display_name: My Spanner Instance
|
||||||
node_count: 2
|
node_count: 2
|
||||||
labels:
|
labels:
|
||||||
cost_center: ti-1700004
|
cost_center: ti-1700004
|
||||||
config: regional-us-central1
|
config: regional-us-central1
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -44,11 +44,12 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a instance facts
|
- name: " a instance facts"
|
||||||
gcp_spanner_instance_facts:
|
gcp_spanner_instance_facts:
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -74,29 +74,29 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a instance
|
- name: create a instance
|
||||||
gcp_sql_instance:
|
gcp_sql_instance:
|
||||||
name: "{{resource_name}}-3"
|
name: "{{resource_name}}-3"
|
||||||
settings:
|
settings:
|
||||||
ip_configuration:
|
ip_configuration:
|
||||||
authorized_networks:
|
authorized_networks:
|
||||||
- name: google dns server
|
- name: google dns server
|
||||||
value: 8.8.8.8/32
|
value: 8.8.8.8/32
|
||||||
tier: db-n1-standard-1
|
tier: db-n1-standard-1
|
||||||
region: us-central1
|
region: us-central1
|
||||||
project: "{{ gcp_project }}"
|
project: "{{ gcp_project }}"
|
||||||
auth_kind: "{{ gcp_cred_kind }}"
|
auth_kind: "{{ gcp_cred_kind }}"
|
||||||
service_account_file: "{{ gcp_cred_file }}"
|
service_account_file: "{{ gcp_cred_file }}"
|
||||||
state: present
|
state: present
|
||||||
register: instance
|
register: instance
|
||||||
|
|
||||||
- name: create a database
|
- name: create a database
|
||||||
gcp_sql_database:
|
gcp_sql_database:
|
||||||
name: "test_object"
|
name: test_object
|
||||||
charset: utf8
|
charset: utf8
|
||||||
instance: "{{ instance }}"
|
instance: "{{ instance }}"
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -52,12 +52,13 @@ extends_documentation_fragment: gcp
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: a database facts
|
- name: " a database facts"
|
||||||
gcp_sql_database_facts:
|
gcp_sql_database_facts:
|
||||||
instance: "{{ instance }}"
|
instance: "{{ instance }}"
|
||||||
project: test_project
|
project: test_project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
|
state: facts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -299,18 +299,18 @@ extends_documentation_fragment: gcp
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create a instance
|
- name: create a instance
|
||||||
gcp_sql_instance:
|
gcp_sql_instance:
|
||||||
name: "{{resource_name}}-2"
|
name: "{{resource_name}}-2"
|
||||||
settings:
|
settings:
|
||||||
ip_configuration:
|
ip_configuration:
|
||||||
authorized_networks:
|
authorized_networks:
|
||||||
- name: google dns server
|
- name: google dns server
|
||||||
value: 8.8.8.8/32
|
value: 8.8.8.8/32
|
||||||
tier: db-n1-standard-1
|
tier: db-n1-standard-1
|
||||||
region: us-central1
|
region: us-central1
|
||||||
project: "test_project"
|
project: test_project
|
||||||
auth_kind: "serviceaccount"
|
auth_kind: serviceaccount
|
||||||
service_account_file: "/tmp/auth.pem"
|
service_account_file: "/tmp/auth.pem"
|
||||||
state: present
|
state: present
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue