You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<imgtitle="Share on Twitter"src="https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png" />
33
35
</a>
34
36
@@ -41,7 +43,7 @@
41
43
42
44
## Prerequisites
43
45
44
-
This module has a few dependencies:
46
+
This module has a few dependencies:
45
47
46
48
47
49
@@ -50,18 +52,28 @@ This module has a few dependencies:
50
52
51
53
52
54
53
-
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-digitalocean-ssh-key/releases).
55
+
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-digitalocean-ssl-certificate/releases).
54
56
55
57
56
-
### Simple Example
57
-
Here is an example of how you can use this module in your inventory structure:
58
+
Here are examples of how you can use this module in your inventory structure:
59
+
### custom-certificate
60
+
```hcl
61
+
module "custom_certificate" {
62
+
source = "./../../"
63
+
certificate_name = "test"
64
+
private_key = "./../../../_ssl/private-key.pem"
65
+
leaf_certificate = "./../../../_ssl/star.crt"
66
+
custom_certificate = true
67
+
}
68
+
```
69
+
### lets-encrypt-certificate
58
70
```hcl
59
-
module "ssh-key" {
60
-
source = "./../"
61
-
key= "~/.ssh/id_rsa.pub"
62
-
key_name= "devops"
63
-
enable_ssh_key = true
64
-
}
71
+
module "lets_encrypt_certificate" {
72
+
source = "./../../"
73
+
certificate_name = "test"
74
+
domain_names = ["clouddrove.com"]
75
+
lets_encrypt_certificate = true
76
+
}
65
77
```
66
78
67
79
@@ -73,27 +85,33 @@ Here is an example of how you can use this module in your inventory structure:
73
85
74
86
| Name | Description | Type | Default | Required |
75
87
|------|-------------|:----:|:-----:|:-----:|
76
-
| enable_ssh_key | A boolean flag to enable/disable ssh key. | bool |`true`| no |
77
-
| key_name | Name (e.g. `it-admin` or `devops`). | string | `` | no |
78
-
| key_path | Name (e.g. `~/.ssh/id_rsa.pub` or `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEFEzV0LX3X8BsXdMsQ`). | string | `` | no |
88
+
| certificate_chain | Path of certificate chain. | string | `` | no |
89
+
| certificate_name | The name of the certificate for identification. | string | `` | no |
90
+
| custom_certificate | A boolean flag to enable/disable custom_certificate. | bool |`false`| no |
91
+
| domain_names | List of fully qualified domain names (FQDNs) for which the certificate will be issued. The domains must be managed using DigitalOcean's DNS. Only valid when type is lets_encrypt. | list |`<list>`| no |
92
+
| enable_certificate | A boolean flag to enable/disable certificate. | bool |`true`| no |
93
+
| leaf_certificate | Path of certificate body. | string |`~`| no |
94
+
| lets_encrypt_certificate | A boolean flag to enable/disable lets_encrypt_certificate. | bool |`false`| no |
95
+
| private_key | Path of private key. | string | `` | no |
79
96
80
97
## Outputs
81
98
82
99
| Name | Description |
83
100
|------|-------------|
84
-
| id | The unique ID of the key. |
85
-
| name | Name of SSH key. |
86
-
| public_key | The text of the public key. |
101
+
| id | The unique ID of the certificate. |
102
+
| name | The name of the certificate. |
103
+
| not_after | The expiration date of the certificate. |
104
+
| sha1_fingerprint | The SHA-1 fingerprint of the certificate. |
87
105
88
106
89
107
90
108
91
109
92
110
93
-
## Feedback
94
-
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-digitalocean-ssh-key/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
111
+
## Feedback
112
+
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-digitalocean-ssl-certificate/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
95
113
96
-
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-digitalocean-ssh-key)!
114
+
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-digitalocean-ssl-certificate)!
97
115
98
116
## About us
99
117
@@ -108,4 +126,4 @@ At [CloudDrove][website], we offer expert guidance, implementation support and s
0 commit comments