Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 2.58 KB

README.md

File metadata and controls

79 lines (54 loc) · 2.58 KB

terraform-hcloud-rdns

Terraform module to manage the following Hetzner Cloud resource:

  • hcloud_rdns

Graph

Graph

Usage

Copy and paste into your Terraform configuration, insert the variables and run terraform init:

data "hcloud_server" "default" {
  name = "debian"
}

module "hcloud_rdns" {
  source  = "dhoppeIT/rdns/hcloud"
  version = "~> 0.1"

  server_id  = data.hcloud_server.default.id
  ip_address = data.hcloud_server.default.ipv4_address
  dns_ptr    = "${data.hcloud_server.default.name}.dhoppe.it"
}

Requirements

Name Version
terraform >= 1.0
hcloud ~> 1.0

Providers

Name Version
hcloud 1.36.0

Modules

No modules.

Resources

Name Type
hcloud_rdns.default resource

Inputs

Name Description Type Default Required
dns_ptr The DNS address the ip_address should resolve to string n/a yes
floating_ip_id The Floating IP the ip_address belongs to number null no
ip_address The IP address that should point to dns_ptr string n/a yes
load_balancer_id The Load Balancer the ip_address belongs to number null no
server_id The server the ip_address belongs to number null no

Outputs

Name Description
dns_ptr DNS pointer for the IP address
id Unique ID of the Reverse DNS entry
ip_address IP address

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.