aboutsummaryrefslogtreecommitdiff
path: root/vps.tf
diff options
context:
space:
mode:
Diffstat (limited to 'vps.tf')
-rw-r--r--vps.tf12
1 files changed, 12 insertions, 0 deletions
diff --git a/vps.tf b/vps.tf
index 8579e76..c359e24 100644
--- a/vps.tf
+++ b/vps.tf
@@ -15,6 +15,11 @@ variable "nextcloud_tld_prefix" {
description = "DNS prefix used for the Nextcloud installation. Does not contain a dot at the end."
}
+variable "gpodder_tld_prefix" {
+ type = string
+ description = "DNS prefix used for the gpodder.net installation. Does not contain a dot at the end."
+}
+
variable "hostname" {
type = string
description = "Human name of the host. This is a pet name, not cattle name :)"
@@ -112,3 +117,10 @@ resource "digitalocean_record" "nextcloud" {
name = var.nextcloud_tld_prefix
value = "${digitalocean_domain.vps_tld.name}."
}
+
+resource "digitalocean_record" "gpodder" {
+ domain = digitalocean_domain.vps_tld.name
+ type = "CNAME"
+ name = var.gpodder_tld_prefix
+ value = "${digitalocean_domain.vps_tld.name}."
+}