chore: reformat codebase

This commit is contained in:
Gabriel Arazas 2023-06-22 11:12:43 +08:00
parent 0bba6e7898
commit 03ca6722e9
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 15 additions and 15 deletions

View File

@ -7,15 +7,15 @@ provider "hcloud" {
}
resource "hcloud_server" "plover" {
name = "plover"
image = "debian-12"
name = "plover"
image = "debian-12"
server_type = "cx21"
location = "hel1"
datacenter = "hel1-dc2"
location = "hel1"
datacenter = "hel1-dc2"
ssh_keys = [ hcloud_ssh_key.foodogsquared.id ]
ssh_keys = [hcloud_ssh_key.foodogsquared.id]
delete_protection = true
delete_protection = true
rebuild_protection = true
user_data = file("${path.module}/files/hcloud/hcloud-user-data.yml")
@ -26,8 +26,8 @@ resource "hcloud_server" "plover" {
}
network {
network_id = hcloud_network.plover.id
ip = "172.27.0.1"
network_id = hcloud_network.plover.id
ip = "172.27.0.1"
alias_ips = [
"172.27.0.2",
"172.27.0.3"
@ -40,18 +40,18 @@ resource "hcloud_server" "plover" {
}
resource "hcloud_ssh_key" "foodogsquared" {
name = "foodogsquared@foodogsquared.one"
name = "foodogsquared@foodogsquared.one"
public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILPR52KfVODfKsgdvYSoQinV3kyOTZ4mtKa0fah5Wkfr foodogsquared@foodogsquared.one"
}
resource "hcloud_network" "plover" {
name = "plover"
name = "plover"
ip_range = "172.16.0.0/12"
}
resource "hcloud_network_subnet" "plover-subnet" {
network_id = hcloud_network.plover.id
type = "cloud"
network_id = hcloud_network.plover.id
type = "cloud"
network_zone = "eu-central"
ip_range = "172.27.0.0/16"
ip_range = "172.27.0.0/16"
}

View File

@ -1,7 +1,7 @@
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
source = "hetznercloud/hcloud"
version = "1.40.0"
}
}

View File

@ -18,7 +18,7 @@ in
# Our own modules.
++ extraModules;
};
};
# A wrapper around the home-manager configuration function.
mkUser = { system, extraModules ? [ ], extraArgs ? { } }: