diff options
Diffstat (limited to 'digitalocean/server/main.tf')
-rw-r--r-- | digitalocean/server/main.tf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/digitalocean/server/main.tf b/digitalocean/server/main.tf index 78298f4..37ed3f1 100644 --- a/digitalocean/server/main.tf +++ b/digitalocean/server/main.tf @@ -1,5 +1,5 @@ locals { - sshd_config = templatefile("${path.module}/etc/sshd_config", { + sshd_config = templatefile("${path.module}/../../etc/sshd_config", { port = var.ssh_port users = [var.user] }) @@ -13,7 +13,7 @@ resource "digitalocean_droplet" "this" { monitoring = true ipv6 = false vpc_uuid = var.vpc_id - user_data = templatefile("${path.module}/etc/cloud-init.cfg", { + user_data = templatefile("${path.module}/../../etc/cloud-init.cfg", { user = var.user ssh_keys = var.ssh_keys sshd_config = local.sshd_config |