aboutsummaryrefslogtreecommitdiff
path: root/vps.tf
diff options
context:
space:
mode:
Diffstat (limited to 'vps.tf')
-rw-r--r--vps.tf22
1 files changed, 14 insertions, 8 deletions
diff --git a/vps.tf b/vps.tf
index 24c928f..b358f89 100644
--- a/vps.tf
+++ b/vps.tf
@@ -1,6 +1,10 @@
-variable "do_token" {}
variable "floating_ip" {}
+variable "do_token" {}
+variable "tld" {}
+variable "wallabag_tld" {}
+variable "nextcloud_tld" {}
+
provider "digitalocean" {
token = "${var.do_token}"
version = "~> 1.1"
@@ -67,13 +71,15 @@ resource "godaddy_domain_record" "vps_tld" {
domain = "${var.tld}"
addresses = ["${var.floating_ip}"]
- dynamic "record" {
- for_each = local.cname_subdomains
+ record {
+ type = "CNAME"
+ name = "${var.tld}"
+ data = "${var.wallabag_tld}"
+ }
- content {
- type = "CNAME"
- name = tag
- data = "${var.tld}"
- }
+ record {
+ type = "CNAME"
+ name = "${var.tld}"
+ data = "${var.nextcloud_tld}"
}
} \ No newline at end of file