todos
This commit is contained in:
parent
76ab30aa14
commit
e450cc9106
1 changed files with 2 additions and 0 deletions
|
@ -7,12 +7,14 @@ resource "hcloud_server" "single-server1" {
|
|||
type = "single"
|
||||
}
|
||||
ssh_keys = [hcloud_ssh_key.default.id]
|
||||
# TODO: user_data seems to have no effect on VM yet
|
||||
user_data = jsonencode({
|
||||
"users": {
|
||||
"name": "ansible",
|
||||
"groups": ["users", "admin"],
|
||||
"sudo": "ALL=(ALL) NOPASSWD:ALL",
|
||||
"shell": "/bin/bash",
|
||||
# TODO: have some sort of lookup for the pubkey (include from file?)
|
||||
"ssh_authorized_keys": ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE32LygGZyJonoWVjRgQ0Hq8iy39aLs+oH5Flmn9RhAj terraform melpomene"]
|
||||
},
|
||||
"package_update": true,
|
||||
|
|
Loading…
Reference in a new issue