Skip to content

Commit 09af63b

Browse files
authored
Merge pull request #2 from devetek/raka/ssl-module
fix: support 2 type SSL cert (gcp / external)
2 parents 30b7b72 + 756e3b2 commit 09af63b

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,6 @@ Author Information
9797
[alicloud]: https://github.com/alibaba/alibaba.alicloud
9898
[amazon.aws]: https://github.com/ansible-collections/amazon.aws
9999
[google.cloud]: https://github.com/ansible-collections/google.cloud
100-
[microsoft.azure]: https://github.com/ansible-collections/azure
100+
[microsoft.azure]: https://github.com/ansible-collections/azure
101+
[hetzner.hcloud]: https://github.com/ansible-collections/hetzner.hcloud
102+
[community.digitalocean]: https://github.com/ansible-collections/community.digitalocean
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Manage a External SSL Certificate
3+
google.cloud.gcp_compute_ssl_certificate:
4+
name: "{{ cloud_provider_resource_detail.certificate_name }}"
5+
description: "{{ cloud_provider_resource_detail.certificate_description }}"
6+
certificate: "{{ cloud_provider_resource_detail.certificate_pem | default('') }}"
7+
private_key: "{{ cloud_provider_resource_detail.certificate_private | default('') }}"
8+
project: "{{ cloud_provider_auth.project_id }}"
9+
auth_kind: "{{ cloud_provider_auth.auth_kind }}"
10+
service_account_file: "{{ cloud_provider_auth.service_acount_token }}"
11+
state: "{{ cloud_provider_resource_detail.state | default('present') }}"

tasks/gcp/certificate/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
- name: Include Certificate Type
3+
ansible.builtin.include_tasks: "{{ cloud_provider_resource_detail.certificate_type }}-certificate.yml"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Manage a Google-managed SSL Certificate
3+
google.cloud.gcp_compute_ssl_certificate:
4+
name: "{{ cloud_provider_resource_detail.certificate_name }}"
5+
description: "{{ cloud_provider_resource_detail.certificate_description }}"
6+
type: "MANAGED"
7+
managed: "{{ cloud_provider_resource_detail.certificate_managed }}"
8+
project: "{{ cloud_provider_auth.project_id }}"
9+
auth_kind: "{{ cloud_provider_auth.auth_kind }}"
10+
service_account_file: "{{ cloud_provider_auth.service_acount_token }}"
11+
state: "{{ cloud_provider_resource_detail.state | default('present') }}"

tasks/gcp/load-balancer/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ Manage Google Cloud Platform Load Balancer
55

66
# References
77

8-
- [URL Map Configuration](https://github.com/ansible-collections/google.cloud/issues/571)
8+
- [URL Map Configuration](https://github.com/ansible-collections/google.cloud/issues/571)
9+
- [Regional Map URL](https://github.com/ansible-collections/google.cloud/issues/573)

0 commit comments

Comments
 (0)