aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/digitalocean
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-09 09:36:56 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-09 09:36:56 +0200
commitb89df1a61a2bae8b1f4de4c6d238c9034c2cf326 (patch)
treefb4fd1097c3cdecf66470941a2131c186f563bf7 /digitalocean
parentadd README.md (diff)
downloadinfra-terraform-b89df1a61a2bae8b1f4de4c6d238c9034c2cf326.tar.gz
infra-terraform-b89df1a61a2bae8b1f4de4c6d238c9034c2cf326.zip
move common config files to etc/
Diffstat (limited to '')
-rw-r--r--digitalocean/server/main.tf4
-rw-r--r--etc/cloud-init.cfg (renamed from digitalocean/server/etc/cloud-init.cfg)0
-rw-r--r--etc/sshd_config (renamed from digitalocean/server/etc/sshd_config)0
3 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
diff --git a/digitalocean/server/etc/cloud-init.cfg b/etc/cloud-init.cfg
index 8ed371c..8ed371c 100644
--- a/digitalocean/server/etc/cloud-init.cfg
+++ b/etc/cloud-init.cfg
diff --git a/digitalocean/server/etc/sshd_config b/etc/sshd_config
index ae08408..ae08408 100644
--- a/digitalocean/server/etc/sshd_config
+++ b/etc/sshd_config