google.cloud/tests/integration/targets/connection_plugin/templates/inventory.yml.j2
Jorge Gallegos 5745bdaac2
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
2025-09-04 19:28:23 -07:00

31 lines
514 B
Django/Jinja

---
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