feat: disable root user & bootstrap ansible user at VM provisioning with cloud-init

This commit is contained in:
2026-08-18 16:48:09 +02:00
parent d80510e61d
commit a49e565124
3 changed files with 13 additions and 2 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ resource "hcloud_server" "dokploy" {
image = var.hcloud_image
server_type = var.hcloud_server_type
location = var.hcloud_location
ssh_keys = [hcloud_ssh_key.ansible.id]
user_data = templatefile("${path.module}/user_data.tpl", {
ssh_public_key = var.ssh_public_key
})
firewall_ids = [hcloud_firewall.host.id]
public_net {