mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
fix: add ssh key resource (#80)
This commit is contained in:
parent
19928358c5
commit
d76be4828c
3 changed files with 35 additions and 29 deletions
|
|
@ -1,39 +1,40 @@
|
|||
resource "hcloud_server" "nuremberg-a" {
|
||||
name = "nuremberg-a"
|
||||
image = "debian-13"
|
||||
server_type = "cx23"
|
||||
name = "nuremberg-a"
|
||||
image = "debian-13"
|
||||
server_type = "cx23"
|
||||
|
||||
location = "nbg1"
|
||||
delete_protection = true
|
||||
rebuild_protection = true
|
||||
keep_disk = true
|
||||
location = "nbg1"
|
||||
delete_protection = true
|
||||
rebuild_protection = true
|
||||
keep_disk = true
|
||||
|
||||
labels = {
|
||||
"role" = "mail"
|
||||
}
|
||||
labels = {
|
||||
"role" = "mail"
|
||||
}
|
||||
|
||||
public_net {
|
||||
ipv4_enabled = true
|
||||
ipv6_enabled = true
|
||||
}
|
||||
public_net {
|
||||
ipv4_enabled = true
|
||||
ipv6_enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
resource "hcloud_server" "helsinki-a" {
|
||||
name = "helsinki-a"
|
||||
image = "debian-13"
|
||||
server_type = "cax11"
|
||||
name = "helsinki-a"
|
||||
image = "debian-13"
|
||||
server_type = "cax11"
|
||||
|
||||
location = "hel1"
|
||||
delete_protection = true
|
||||
rebuild_protection = true
|
||||
keep_disk = true
|
||||
location = "hel1"
|
||||
delete_protection = true
|
||||
rebuild_protection = true
|
||||
keep_disk = true
|
||||
|
||||
labels = {
|
||||
"role" = "ingress"
|
||||
}
|
||||
labels = {
|
||||
"role" = "ingress"
|
||||
}
|
||||
|
||||
public_net {
|
||||
ipv4_enabled = true
|
||||
ipv6_enabled = true
|
||||
}
|
||||
public_net {
|
||||
ipv4_enabled = true
|
||||
ipv6_enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
4
terraform/hetzner_ssh_keys.tf
Normal file
4
terraform/hetzner_ssh_keys.tf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
resource "hcloud_ssh_key" "personal" {
|
||||
name = "personal"
|
||||
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDlU2h+JgVMVsHkkcxed9WbrUCKWfuUrY6yErmGIIREP6X2cua2qE4H+329FSJXQs0Yd0OiNwsXzfW88kl0+aMopQXaccY3q8109KR43RNrRrril9od+PidVvT/fvV8eNYVE9M4gyT1c9t8ZLD85vJf9rILFWbLG4DqqFL3z33W2u//Bl8uVLoY3tSgBmukVt45If9g9mxVfSstLmZj7j75rghS0EbE2kzwgUH397mJGMlJJdFhzRtP+/D09hE+zgFxl45V6dszEu9ggawRRGvEcR1dXDB0g6n3/7h6M+pb8/77ZAxk4AwD6CzZi8k7SlVkzCKZQRPpge+C0xLdm9EAY7byj30XdGgpo80eiCJmVImYm4VmPnjh39IumQWkDgpXkYQ9aj9jUDvcSrEmwTBRJOqmaO7BW0sVbP0BDW3UjCyeUQ8zprmWsUscoB0u9r4bMOLnhNldXljjKcDRdX2JciIILiCEfnn781Q3uxLgOoHEnYto0tSxbLQI/o9WB4M="
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ terraform {
|
|||
required_providers {
|
||||
cloudflare = {
|
||||
source = "cloudflare/cloudflare"
|
||||
version = "~> 5.19"
|
||||
}
|
||||
|
||||
hcloud = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue