Skip to content

Commit 4f694ce

Browse files
committed
chore(tofu): run tofu fmt on configuration
1 parent f47309b commit 4f694ce

File tree

15 files changed

+105
-105
lines changed

15 files changed

+105
-105
lines changed

tofu/home-assistant/image.tofu

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
resource "null_resource" "haos_image" {
22
triggers = {
33
on_version_change = var.haos_version
4-
filename = var.local_file
4+
filename = var.local_file
55
}
66

77
provisioner "local-exec" {
88
command = "curl -s -L ${var.haos_download_url}/${var.haos_version}/haos_ova-${var.haos_version}.qcow2.xz | xz -d > ${var.local_file}"
99
}
1010

11-
provisioner "local-exec" {
12-
when = destroy
13-
command = "rm ${self.triggers.filename}"
14-
}
11+
provisioner "local-exec" {
12+
when = destroy
13+
command = "rm ${self.triggers.filename}"
14+
}
1515
}
1616

1717
resource "proxmox_virtual_environment_file" "haos_generic_image" {
18-
depends_on = [null_resource.haos_image]
18+
depends_on = [null_resource.haos_image]
1919
node_name = var.proxmox_cluster.name
2020
datastore_id = var.proxmox_cluster.image_datastore
2121

tofu/home-assistant/variables.auto.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ proxmox_cluster = {
66
image_datastore = "local"
77
}
88

9-
haos_version = "12.4"
9+
haos_version = "12.4"

tofu/home-assistant/variables.tofu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ variable "proxmox_cluster" {
99
}
1010

1111
variable "proxmox_api_token" {
12-
type = string
12+
type = string
1313
sensitive = true
1414
}
1515

tofu/home-assistant/vm.tofu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "proxmox_virtual_environment_vm" "home_assistant" {
33

44
name = "Home-Assistant"
55
description = "Managed by OpenTofu"
6-
tags = ["home-assistant"]
6+
tags = ["home-assistant"]
77
on_boot = true
88
bios = "ovmf"
99
scsi_hardware = "virtio-scsi-single"

tofu/kubernetes/bootstrap/sealed-secrets/config.tofu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resource "kubernetes_namespace" "sealed-secrets" {
66

77
resource "kubernetes_secret" "sealed-secrets-key" {
88
depends_on = [kubernetes_namespace.sealed-secrets]
9-
type = "kubernetes.io/tls"
9+
type = "kubernetes.io/tls"
1010

1111
metadata {
1212
name = "sealed-secrets-bootstrap-key"
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
variable "volume" {
22
description = "Volume configuration"
33
type = object({
4-
name = string
5-
capacity = string
6-
volume_handle = string
7-
access_modes = optional(list(string), ["ReadWriteOnce"])
4+
name = string
5+
capacity = string
6+
volume_handle = string
7+
access_modes = optional(list(string), ["ReadWriteOnce"])
88
storage_class_name = optional(string, "proxmox-csi")
9-
fs_type = optional(string, "ext4")
10-
driver = optional(string, "csi.proxmox.sinextra.dev")
11-
volume_mode = optional(string, "Filesystem")
12-
mount_options = optional(list(string), ["noatime"])
13-
cache = optional(string, "writethrough")
14-
ssd = optional(bool, true)
15-
storage = optional(string, "local-zfs")
9+
fs_type = optional(string, "ext4")
10+
driver = optional(string, "csi.proxmox.sinextra.dev")
11+
volume_mode = optional(string, "Filesystem")
12+
mount_options = optional(list(string), ["noatime"])
13+
cache = optional(string, "writethrough")
14+
ssd = optional(bool, true)
15+
storage = optional(string, "local-zfs")
1616
})
1717
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
variable "volume" {
22
type = object({
3-
name = string
4-
node = string
5-
size = string
3+
name = string
4+
node = string
5+
size = string
66
storage = optional(string, "local-zfs")
7-
vmid = optional(number, 9999)
8-
format = optional(string, "raw")
7+
vmid = optional(number, 9999)
8+
format = optional(string, "raw")
99
})
1010
}

tofu/kubernetes/bootstrap/volumes/variables.tofu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ variable "proxmox_api" {
99
variable "volumes" {
1010
type = map(
1111
object({
12-
node = string
13-
size = string
12+
node = string
13+
size = string
1414
storage = optional(string, "local-zfs")
15-
vmid = optional(number, 9999)
16-
format = optional(string, "raw")
15+
vmid = optional(number, 9999)
16+
format = optional(string, "raw")
1717
})
1818
)
1919
}

tofu/kubernetes/main.tofu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module "talos" {
1212

1313
module "sealed_secrets" {
1414
depends_on = [module.talos]
15-
source = "./bootstrap/sealed-secrets"
15+
source = "./bootstrap/sealed-secrets"
1616

1717
providers = {
1818
kubernetes = kubernetes
@@ -23,7 +23,7 @@ module "sealed_secrets" {
2323

2424
module "proxmox_csi_plugin" {
2525
depends_on = [module.talos]
26-
source = "./bootstrap/proxmox-csi-plugin"
26+
source = "./bootstrap/proxmox-csi-plugin"
2727

2828
providers = {
2929
proxmox = proxmox
@@ -35,7 +35,7 @@ module "proxmox_csi_plugin" {
3535

3636
module "volumes" {
3737
depends_on = [module.proxmox_csi_plugin]
38-
source = "./bootstrap/volumes"
38+
source = "./bootstrap/volumes"
3939

4040
providers = {
4141
restapi = restapi

tofu/kubernetes/providers.tofu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ provider "restapi" {
4242
}
4343

4444
provider "kubernetes" {
45-
host = module.talos.kube_config.kubernetes_client_configuration.host
46-
client_certificate = base64decode(module.talos.kube_config.kubernetes_client_configuration.client_certificate)
47-
client_key = base64decode(module.talos.kube_config.kubernetes_client_configuration.client_key)
45+
host = module.talos.kube_config.kubernetes_client_configuration.host
46+
client_certificate = base64decode(module.talos.kube_config.kubernetes_client_configuration.client_certificate)
47+
client_key = base64decode(module.talos.kube_config.kubernetes_client_configuration.client_key)
4848
cluster_ca_certificate = base64decode(module.talos.kube_config.kubernetes_client_configuration.ca_certificate)
4949
}

0 commit comments

Comments
 (0)