feat: disable root user & bootstrap ansible user at VM provisioning with cloud-init
This commit is contained in:
+3
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user