Commit graph

1107 commits

Author SHA1 Message Date
Chris Hawk
7a6688d602
Merge pull request #711 from thekad/bug/attach-disk-to-instance
Attach disk to instance
2025-09-11 12:15:43 -07:00
Chris Hawk
ffc2b0765f
Merge pull request #710 from p3ck/gcp_iam_service_account-2.19
Fix jinja templating error in assert
2025-09-11 12:15:00 -07:00
Jorge Gallegos
86f6f53d30
Sanity fix 2025-09-10 11:41:25 -07:00
Jorge Gallegos
a65d6ebfa5
Rework gcp_compute_instance integration tests
Also adding the test cases for new attachDisk feature
2025-09-10 11:28:16 -07:00
Jorge Gallegos
a05a7be02a
Adding disk reconciliation to gcp_compute_instance
There was no logic around attaching disks to existing instances. I am
explicitly only attaching persistent disks as per the attachDisk API
2025-09-10 11:24:56 -07:00
Chris Hawk
3fe0212960
Merge pull request #703 from ZuperSero/issue-697-wrongly-named-input
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.19) (push) Has been cancelled
Fix improper names for service_account_contents
2025-09-09 11:55:02 -07:00
Chris Hawk
091d11fd63
Merge pull request #709 from thekad/feature/connection-plugin
Some checks are pending
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.19) (push) Waiting to run
IAP connection plugin
2025-09-08 10:39:52 -07:00
Bill Peck
cac2eb3aaf
Fix jinja templating error in assert
Fixes templating for ansible-2.19.
2025-09-08 07:27:39 -04:00
Jorge Gallegos
fa560f3ef4
More sanity fixes 2025-09-04 20:25:42 -07:00
Jorge Gallegos
2fc899cd32
Unrelated change but it's better if we use an image family 2025-09-04 19:29:36 -07:00
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
Jorge Gallegos
0296c92c00
Fix sanity errors 2025-09-04 18:28:04 -07:00
Jorge Gallegos
fff8805a55
Set documentation the "right" way 2025-09-04 14:34:56 -07:00
Jorge Gallegos
8b68a484e8
Adding README for plugin 2025-09-03 22:36:58 -07:00
Jorge Gallegos
d6e4860eba
Almost a complete rewrite to piggyback on ssh.py
This decreased the size of the plugin considerably, and I don't have to
account for every little corner case in the upstream ssh.py plugin.
2025-09-03 22:15:09 -07:00
Jorge Gallegos
5889c6e667
Forgot the fetch file method 2025-09-02 12:00:14 -07:00
Jorge Gallegos
361da2921f
The Union syntax for type hints is py3.10+
whereas the typing module Optional is supported since py3.2
2025-09-02 11:40:28 -07:00
Jorge Gallegos
f2b6097ded
Initial naive implementation of gcloud-ssh
This is just a plain implementation, nothing fancy pure dumb SSH calls
per task, which makes this really slow. Going to make this faster with
pure SSH first.
2025-08-29 17:54:33 -07:00
Chris Hawk
0d079eb5b6
Merge pull request #708 from ansible-collections/SirGitsalot-enable-stale-issues
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.19) (push) Has been cancelled
Enable the stale issue workflow
2025-08-21 15:24:14 -07:00
Chris Hawk
0e85872dc1
Enable the stale issue workflow
Seems to be working now. For instance, #669 "should not be stale based on the last update date the 22-02-2025" and #664 "should be stale based on the last update date the 13-12-2024"
2025-08-20 16:59:38 -07:00
Chris Hawk
fe488d0ca4
Merge pull request #696 from thekad/feature/audit_indirect_node_counting
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.19) (push) Has been cancelled
Feature/audit indirect node counting
2025-08-14 16:48:59 -07:00
Chris Hawk
a28c973e68
Merge pull request #705 from ansible-collections/SirGitsalot-update-stale-workflow
Update the auto-issue closer workflow
2025-08-14 10:13:54 -07:00
Chris Hawk
6674633473
Update the auto-issue closer workflow
From the dry run logs it looks like I misunderstood how this works - the intention was to close issues and PRs after 180 days of inactivity, but apparently you need to configure it to mark them as stale first. So this config now adds a "stale" label and a comment after 180 days of inactivity, then closes after a further 14 days of inactivity.
2025-08-13 14:21:55 -07:00
Chris Hawk
a03a1b4270
Merge pull request #704 from thekad/docs/update-https-proxy
Some checks are pending
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.19) (push) Waiting to run
docs: Clarify the type of item expected in ssl_certificates
2025-08-13 13:36:06 -07:00
Chris Hawk
b2f899cc91
Merge pull request #701 from ansible-collections/SirGitsalot-stale-workflow
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.19) (push) Has been cancelled
Add a workflow that closes stale issues and PRs
2025-08-12 16:15:43 -07:00
Chris Hawk
63c8d5a0b0
Merge pull request #674 from vitropy/redirected-names-compatbility
Remove `plugin` option from inventory config for compatibility with passthrough plugins
2025-08-12 16:14:28 -07:00
Jorge Gallegos
96af7dfc76
docs: Clarify the type of item expected in ssl_certificates 2025-08-12 15:04:59 -07:00
ZuperSero
e35e58d1db Fix improper names for service_account_contents 2025-08-12 13:34:45 +02:00
Chris Hawk
e70e70646e
Merge pull request #702 from ansible-collections/SirGitsalot-uodate-ansible-test-gh-action
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.19) (push) Has been cancelled
Update to the latest ansible-test-gh-action
2025-08-06 17:36:55 -07:00
Chris Hawk
a4fabf115e
Merge pull request #695 from mariolenz/master
Test with ansible-core 2.19
2025-08-06 17:35:05 -07:00
Chris Hawk
df43549038
Update to the latest ansible-test-gh-action
Also switch to using a commit hash to match Google policy
2025-08-06 17:16:21 -07:00
Chris Hawk
c58d7b4522
Add a workflow that closes stale issues and PRs
For now it is in debug mode so it will just log what it would do.
2025-08-06 16:52:47 -07:00
Jorge Gallegos
c4d0b3f188
Adding audit extension doc 2025-08-04 22:12:29 -07:00
Jorge Gallegos
a97dbbaefd
Indirect node counting taxonomy query file
Used to count resources managed in a given cloud provider, GCP in this
case. Refer to README.md for more info.
2025-08-04 22:12:29 -07:00
Chris Hawk
4a61adfe23
Merge pull request #700 from ansible-collections/release-1.7
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Prepare the 1.7.0 release
2025-07-31 15:31:05 -07:00
Chris Hawk
1ea9fa5aeb Prepare the 1.7.0 release 2025-07-30 15:23:21 -07:00
Chris Hawk
61bd3d1c13
Merge pull request #698 from ansible-collections/param-mgr-sanity
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Fix an invalid format string on Python 2.7
2025-07-29 16:24:50 -07:00
Chris Hawk
02c4a83263 Fix an invalid format string on Python 2.7 2025-07-29 15:38:43 -07:00
Chris Hawk
2ed1936ad8
Merge pull request #693 from thekad/feature/bucket_policy
Some checks are pending
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Waiting to run
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Waiting to run
Add iamConfiguration support to gcp_storage_bucket
2025-07-29 15:25:49 -07:00
Chris Hawk
79504d54d6
Merge pull request #694 from thekad/feature/nested_bigquery_schema
Feature/nested bigquery schema
2025-07-29 15:17:43 -07:00
Chris Hawk
0bf24440d1
Merge pull request #684 from durgesh-ninave-crest/add-support-for-parameter-manager-module-lookup
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
feat(parametermanager): added support for parameter manager module and lookup
2025-07-16 12:29:03 -07:00
Mario Lenz
e6c78fb0e2 Test with ansible-core 2.19 2025-07-14 15:39:38 +02:00
Jorge Gallegos
63d7025012
Let fields be sent raw in table schema definition
As per https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#TableFieldSchema
the `fields` attribute can recursively define more fields if the `type`
attribute is RECORD. There is no way to define recursive argument spec
in ansible modules, but if sent as `raw`:

> The raw type, performs no type validation or type casting, and maintains the type of the passed value.

(from https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#argument-spec)

Which works for what we're trying to accomplish here.

Also added integration test for this change
2025-06-27 12:15:39 -06:00
Jorge Gallegos
577debb433
According to docs, these fields are all mandatory
If you specify table_reference, you should specify all 3 fields as per
docs https://cloud.google.com/bigquery/docs/reference/rest/v2/TableReference
2025-06-27 12:10:15 -06:00
Jorge Gallegos
f9f0b33542
Add iamConfiguration support to gcp_storage_bucket
You can now set the iam configuration for a given bucket, you can set:
1. publicAccessPrevention and
2. uniformBucketLevelAccess

no support for bucketPolicyOnly because according to the storage docs:

Note: iamConfiguration also includes the bucketPolicyOnly field, which
uses a legacy name but has the same functionality as the
uniformBucketLevelAccess field. We recommend only using
uniformBucketLevelAccess, as specifying both fields may result in
unreliable behavior.

Also added integration tests for this feature

Signed-off-by: Jorge Gallegos <jgallego@redhat.com>
2025-06-26 12:04:25 -06:00
Chris Hawk
8863545bef
Merge pull request #692 from ansible-collections/release-1.6.0
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Release 1.6.0
2025-06-23 13:53:36 -07:00
Chris Hawk
5cd81072c4 Refactor inventory_gce tests to make the linter happy 2025-06-20 15:28:16 -07:00
Chris Hawk
9bdfba5e5c Fix lint errors 2025-06-20 14:44:45 -07:00
Chris Hawk
50ed75fe9c Build changelog 2025-06-20 14:02:13 -07:00
Chris Hawk
b485570c2d Update version to 1.6.0 2025-06-20 14:00:52 -07:00