Commit 2e55cd2 1 parent 5dffd96 commit 2e55cd2 Copy full SHA for 2e55cd2
File tree 10 files changed +29
-8
lines changed
10 files changed +29
-8
lines changed Original file line number Diff line number Diff line change 1
1
# terraform-hcloud-rdns
2
2
3
- Terraform module to manage the Hetzner Cloud resource (hcloud_rdns).
3
+ Terraform module to manage the following Hetzner Cloud resource:
4
+
5
+ * hcloud_rdns
4
6
5
7
## Graph
6
8
@@ -18,7 +20,8 @@ data "hcloud_server" "default" {
18
20
}
19
21
20
22
module "hcloud_rdns" {
21
- source = "dhoppeIT/rdns/hcloud"
23
+ source = "dhoppeIT/rdns/hcloud"
24
+ version = "~> 0.1"
22
25
23
26
server_id = data.hcloud_server.default.id
24
27
ip_address = data.hcloud_server.default.ipv4_address
@@ -29,10 +32,11 @@ module "hcloud_rdns" {
29
32
** Create multiple reverse DNS entries:**
30
33
31
34
``` hcl
32
- data "hcloud_servers" "default" {}
35
+
33
36
34
37
module "hcloud_rdns" {
35
- source = "dhoppeIT/rdns/hcloud"
38
+ source = "dhoppeIT/rdns/hcloud"
39
+ version = "~> 0.1"
36
40
37
41
count = length(data.hcloud_servers.default.servers)
38
42
@@ -81,6 +85,7 @@ No modules.
81
85
| Name | Description |
82
86
| ------| -------------|
83
87
| <a name =" output_dns_ptr " ></a > [ dns\_ ptr] ( #output\_ dns\_ ptr ) | DNS pointer for the IP address |
88
+ | <a name =" output_id " ></a > [ id] ( #output\_ id ) | Unique ID of the Reverse DNS entry |
84
89
| <a name =" output_ip_address " ></a > [ ip\_ address] ( #output\_ ip\_ address ) | IP address |
85
90
86
91
<!-- - END_TF_DOCS --->
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ $ terraform apply
56
56
| Name | Description |
57
57
| ------| -------------|
58
58
| <a name =" output_rdns_dns_ptr " ></a > [ rdns\_ dns\_ ptr] ( #output\_ rdns\_ dns\_ ptr ) | DNS pointer for the IP address |
59
+ | <a name =" output_rdns_id " ></a > [ rdns\_ id] ( #output\_ rdns\_ id ) | Unique ID of the Reverse DNS entry |
59
60
| <a name =" output_rdns_ip_address " ></a > [ rdns\_ ip\_ address] ( #output\_ rdns\_ ip\_ address ) | IP address |
60
61
61
62
<!-- - END_TF_DOCS --->
Original file line number Diff line number Diff line change
1
+ output "rdns_id" {
2
+ description = " Unique ID of the Reverse DNS entry"
3
+ value = module. hcloud_rdns . id
4
+ }
5
+
1
6
output "rdns_dns_ptr" {
2
7
description = " DNS pointer for the IP address"
3
8
value = module. hcloud_rdns . * . dns_ptr
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ $ terraform apply
56
56
| Name | Description |
57
57
| ------| -------------|
58
58
| <a name =" output_rdns_dns_ptr " ></a > [ rdns\_ dns\_ ptr] ( #output\_ rdns\_ dns\_ ptr ) | DNS pointer for the IP address |
59
+ | <a name =" output_rdns_id " ></a > [ rdns\_ id] ( #output\_ rdns\_ id ) | Unique ID of the Reverse DNS entry |
59
60
| <a name =" output_rdns_ip_address " ></a > [ rdns\_ ip\_ address] ( #output\_ rdns\_ ip\_ address ) | IP address |
60
61
61
62
<!-- - END_TF_DOCS --->
Original file line number Diff line number Diff line change
1
+ output "rdns_id" {
2
+ description = " Unique ID of the Reverse DNS entry"
3
+ value = module. hcloud_rdns . id
4
+ }
5
+
1
6
output "rdns_dns_ptr" {
2
7
description = " DNS pointer for the IP address"
3
8
value = module. hcloud_rdns . dns_ptr
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ output "id" {
2
+ description = " Unique ID of the Reverse DNS entry"
3
+ value = hcloud_rdns. default . id
4
+ }
5
+
1
6
output "dns_ptr" {
2
7
description = " DNS pointer for the IP address"
3
8
value = hcloud_rdns. default . dns_ptr
You can’t perform that action at this time.
0 commit comments