feat: disable root user & bootstrap ansible user at VM provisioning with cloud-init
This commit is contained in:
1 parent
d80510e61d
commit
a49e565124
3 files changed
+13
-2
No files matched your search
+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