forked from clouddrove/terraform-digitalocean-certificate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update count condition and add changelog.md file
- Loading branch information
1 parent
d613b51
commit fab9b6e
Showing
13 changed files
with
44 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
##------------------------------------------------------- | ||
## OUTPUT | ||
##------------------------------------------------------- | ||
output "id" { | ||
value = module.custom_certificate[*].id | ||
description = "The unique ID of the certificate." | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
#Module : Certificate | ||
##---------------------------------------------------------------------------------------------------- | ||
#Description : Provides a DigitalOcean Certificate resource that allows you to manage certificates. | ||
##---------------------------------------------------------------------------------------------------- | ||
resource "digitalocean_certificate" "custom" { | ||
count = var.enabled && var.enable_certificate && var.custom_certificate == true ? 1 : 0 | ||
count = var.enabled && var.custom_certificate == true ? 1 : 0 | ||
|
||
name = var.certificate_name | ||
type = "custom" | ||
type = var.type | ||
private_key = var.private_key != "" ? file(var.private_key) : null | ||
leaf_certificate = var.leaf_certificate != "" ? file(var.leaf_certificate) : null | ||
certificate_chain = var.certificate_chain != "" ? file(var.certificate_chain) : null | ||
} | ||
|
||
#Module : Certificate | ||
##--------------------------------------------------------------------------------------------------- | ||
#Description :Provides a DigitalOcean Certificate resource that allows you to manage certificates. | ||
##--------------------------------------------------------------------------------------------------- | ||
resource "digitalocean_certificate" "lets_encrypt" { | ||
count = var.enabled && var.enable_certificate && var.custom_certificate == false ? 1 : 0 | ||
count = var.enabled && var.custom_certificate == false ? 1 : 0 | ||
|
||
name = var.certificate_name | ||
type = "lets_encrypt" | ||
type = var.certificate_type | ||
domains = var.domain_names | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters