mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-09-15 01:18:28 -07:00
Integration test for new IAP connection plugin
1. creates instances with a custom ssh keypair 2. change the connection plugin method and perform basic checks 3. cleanup
This commit is contained in:
parent
0296c92c00
commit
5745bdaac2
8 changed files with 215 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
plugin: google.cloud.gcp_compute
|
||||
|
||||
zones:
|
||||
{{ gcp_zones | to_nice_yaml }}
|
||||
|
||||
projects:
|
||||
- {{ gcp_project }}
|
||||
|
||||
auth_kind: {{ gcp_cred_kind }}
|
||||
|
||||
service_account_file: {{ gcp_cred_file }}
|
||||
|
||||
scopes:
|
||||
- 'https://www.googleapis.com/auth/cloud-platform'
|
||||
- 'https://www.googleapis.com/auth/compute.readonly'
|
||||
|
||||
keyed_groups:
|
||||
- prefix: gcp
|
||||
key: labels
|
||||
|
||||
filters:
|
||||
- 'labels.test:{{ prefix }}'
|
||||
|
||||
hostnames:
|
||||
- name
|
||||
|
||||
# set variables for the connection plugin
|
||||
compose:
|
||||
ansible_gcloud_zone: zone
|
||||
ansible_gcloud_project: project
|
Loading…
Add table
Add a link
Reference in a new issue