diff options
| author | EuAndreh <eu@euandre.org> | 2019-06-08 17:00:32 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2019-06-08 17:00:32 -0300 |
| commit | f605dd332d51590f0ade93345f3cd048661c0666 (patch) | |
| tree | 24e5f3c17b80f9e0ce199540ca6e9890d5b282e3 /vps | |
| parent | Update terraform to 0.12 (diff) | |
| download | server-f605dd332d51590f0ade93345f3cd048661c0666.tar.gz server-f605dd332d51590f0ade93345f3cd048661c0666.tar.xz | |
Use terraform-godaddy and Terraform 0.11
The =terraform-godaddy= package supports only Terraform 0.11 as of now.
It is not packaged by default by nixpkgs, and the =postInstall= hook is required
because Terraform looks for providers usinthe the =terraform-provider-$name=
template, which the package doesn't follow.
I had to remove the loop on vps.tf since it requires Terraform 0.12. I'll either
wait for =terraform-godaddy= to upgrade to 0.12 or try to do it myself if it
bothers me enough.
Diffstat (limited to '')
| -rw-r--r-- | vps.tf | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -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 |
