Parcourir la source

style: cleanup trailing whitespace

Christoph Schug il y a 1 an
Parent
commit
1121a30d8c

+ 1 - 1
docker-compose/gitea/.env.example

@@ -3,6 +3,6 @@
 # Add internal database credentials here...
 # POSTGRES_HOST     = "your-database-host"
 # POSTGRES_PORT     = "your-database-port"
-POSTGRES_DB       = "your-database-name"  
+POSTGRES_DB       = "your-database-name"
 POSTGRES_USER     = "your-database-user"
 POSTGRES_PASSWORD = "your-database-password"

+ 6 - 6
packer/proxmox/ubuntu-server-focal-docker/ubuntu-server-focal-docker.pkr.hcl

@@ -18,14 +18,14 @@ variable "proxmox_api_token_secret" {
 
 # Resource Definiation for the VM Template
 source "proxmox" "ubuntu-server-focal-docker" {
- 
+
     # Proxmox Connection Settings
     proxmox_url = "${var.proxmox_api_url}"
     username = "${var.proxmox_api_token_id}"
     token = "${var.proxmox_api_token_secret}"
     # (Optional) Skip TLS Verification
     # insecure_skip_tls_verify = true
-    
+
     # VM General Settings
     node = "your-proxmox-node"
     vm_id = "100"
@@ -58,16 +58,16 @@ source "proxmox" "ubuntu-server-focal-docker" {
 
     # VM CPU Settings
     cores = "1"
-    
+
     # VM Memory Settings
-    memory = "2048" 
+    memory = "2048"
 
     # VM Network Settings
     network_adapters {
         model = "virtio"
         bridge = "vmbr0"
         firewall = "false"
-    } 
+    }
 
     # VM Cloud-Init Settings
     cloud_init = true
@@ -85,7 +85,7 @@ source "proxmox" "ubuntu-server-focal-docker" {
     boot_wait = "5s"
 
     # PACKER Autoinstall Settings
-    http_directory = "http" 
+    http_directory = "http"
     # (Optional) Bind IP Address and Port
     # http_bind_address = "0.0.0.0"
     # http_port_min = 8802

+ 6 - 6
packer/proxmox/ubuntu-server-focal/ubuntu-server-focal.pkr.hcl

@@ -18,14 +18,14 @@ variable "proxmox_api_token_secret" {
 
 # Resource Definiation for the VM Template
 source "proxmox" "ubuntu-server-focal" {
- 
+
     # Proxmox Connection Settings
     proxmox_url = "${var.proxmox_api_url}"
     username = "${var.proxmox_api_token_id}"
     token = "${var.proxmox_api_token_secret}"
     # (Optional) Skip TLS Verification
     # insecure_skip_tls_verify = true
-    
+
     # VM General Settings
     node = "your-proxmox-node"
     vm_id = "100"
@@ -58,16 +58,16 @@ source "proxmox" "ubuntu-server-focal" {
 
     # VM CPU Settings
     cores = "1"
-    
+
     # VM Memory Settings
-    memory = "2048" 
+    memory = "2048"
 
     # VM Network Settings
     network_adapters {
         model = "virtio"
         bridge = "vmbr0"
         firewall = "false"
-    } 
+    }
 
     # VM Cloud-Init Settings
     cloud_init = true
@@ -85,7 +85,7 @@ source "proxmox" "ubuntu-server-focal" {
     boot_wait = "5s"
 
     # PACKER Autoinstall Settings
-    http_directory = "http" 
+    http_directory = "http"
     # (Optional) Bind IP Address and Port
     # http_bind_address = "0.0.0.0"
     # http_port_min = 8802

+ 6 - 6
packer/proxmox/ubuntu-server-jammy-docker/ubuntu-server-jammy-docker.pkr.hcl

@@ -18,14 +18,14 @@ variable "proxmox_api_token_secret" {
 
 # Resource Definiation for the VM Template
 source "proxmox" "ubuntu-server-jammy" {
- 
+
     # Proxmox Connection Settings
     proxmox_url = "${var.proxmox_api_url}"
     username = "${var.proxmox_api_token_id}"
     token = "${var.proxmox_api_token_secret}"
     # (Optional) Skip TLS Verification
     # insecure_skip_tls_verify = true
-    
+
     # VM General Settings
     node = "your-proxmox-node"
     vm_id = "100"
@@ -58,16 +58,16 @@ source "proxmox" "ubuntu-server-jammy" {
 
     # VM CPU Settings
     cores = "1"
-    
+
     # VM Memory Settings
-    memory = "2048" 
+    memory = "2048"
 
     # VM Network Settings
     network_adapters {
         model = "virtio"
         bridge = "vmbr0"
         firewall = "false"
-    } 
+    }
 
     # VM Cloud-Init Settings
     cloud_init = true
@@ -86,7 +86,7 @@ source "proxmox" "ubuntu-server-jammy" {
     boot_wait = "5s"
 
     # PACKER Autoinstall Settings
-    http_directory = "http" 
+    http_directory = "http"
     # (Optional) Bind IP Address and Port
     # http_bind_address = "0.0.0.0"
     # http_port_min = 8802

+ 6 - 6
packer/proxmox/ubuntu-server-jammy/ubuntu-server-jammy.pkr.hcl

@@ -18,14 +18,14 @@ variable "proxmox_api_token_secret" {
 
 # Resource Definiation for the VM Template
 source "proxmox-iso" "ubuntu-server-jammy" {
- 
+
     # Proxmox Connection Settings
     proxmox_url = "${var.proxmox_api_url}"
     username = "${var.proxmox_api_token_id}"
     token = "${var.proxmox_api_token_secret}"
     # (Optional) Skip TLS Verification
     # insecure_skip_tls_verify = true
-    
+
     # VM General Settings
     node = "your-proxmox-node"
     vm_id = "100"
@@ -58,16 +58,16 @@ source "proxmox-iso" "ubuntu-server-jammy" {
 
     # VM CPU Settings
     cores = "1"
-    
+
     # VM Memory Settings
-    memory = "2048" 
+    memory = "2048"
 
     # VM Network Settings
     network_adapters {
         model = "virtio"
         bridge = "vmbr0"
         firewall = "false"
-    } 
+    }
 
     # VM Cloud-Init Settings
     cloud_init = true
@@ -86,7 +86,7 @@ source "proxmox-iso" "ubuntu-server-jammy" {
     boot_wait = "5s"
 
     # PACKER Autoinstall Settings
-    http_directory = "http" 
+    http_directory = "http"
     # (Optional) Bind IP Address and Port
     # http_bind_address = "0.0.0.0"
     # http_port_min = 8802

+ 6 - 6
packer/proxmox/ubuntu-server-noble/ubuntu-server-noble.pkr.hcl

@@ -18,14 +18,14 @@ variable "proxmox_api_token_secret" {
 
 # Resource Definiation for the VM Template
 source "proxmox-iso" "ubuntu-server-noble" {
- 
+
     # Proxmox Connection Settings
     proxmox_url = "${var.proxmox_api_url}"
     username = "${var.proxmox_api_token_id}"
     token = "${var.proxmox_api_token_secret}"
     # (Optional) Skip TLS Verification
     # insecure_skip_tls_verify = true
-    
+
     # VM General Settings
     node = "your-proxmox-node"
     vm_id = "100"
@@ -58,16 +58,16 @@ source "proxmox-iso" "ubuntu-server-noble" {
 
     # VM CPU Settings
     cores = "1"
-    
+
     # VM Memory Settings
-    memory = "2048" 
+    memory = "2048"
 
     # VM Network Settings
     network_adapters {
         model = "virtio"
         bridge = "vmbr0"
         firewall = "false"
-    } 
+    }
 
     # VM Cloud-Init Settings
     cloud_init = true
@@ -88,7 +88,7 @@ source "proxmox-iso" "ubuntu-server-noble" {
     communicator            = "ssh"
 
     # PACKER Autoinstall Settings
-    http_directory          = "http" 
+    http_directory          = "http"
     # (Optional) Bind IP Address and Port
     # http_bind_address       = "0.0.0.0"
     # http_port_min           = 8802

+ 1 - 1
terraform/civo/query.tf

@@ -2,7 +2,7 @@
 # ---
 # Query commonly used cloud resources from CIVO API
 
-# CIVO Instance Sizes 
+# CIVO Instance Sizes
 data "civo_size" "instance_xsmall" {
     filter {
         key = "name"

+ 3 - 3
terraform/helm/certmanager.tf

@@ -6,7 +6,7 @@ resource "kubernetes_namespace" "certmanager" {
 }
 
 resource "helm_release" "certmanager" {
-    
+
     depends_on = [kubernetes_namespace.certmanager]
 
     name = "certmanager"
@@ -24,8 +24,8 @@ resource "helm_release" "certmanager" {
 
 # (Optional) Create a Time-Sleep for Certificates and Issuer Manifests to deploy later
 # resource "time_sleep" "wait_for_certmanager" {
-# 
+#
 #     depends_on = [helm_release.certmanager]
-# 
+#
 #     create_duration = "10s"
 # }

+ 4 - 4
terraform/helm/traefik.tf

@@ -1,5 +1,5 @@
 resource "kubernetes_namespace" "traefik" {
-    
+
     metadata {
         name = "traefik"
     }
@@ -7,7 +7,7 @@ resource "kubernetes_namespace" "traefik" {
 }
 
 resource "helm_release" "traefik" {
-    
+
     depends_on = [kubernetes_namespace.traefik]
 
     name = "traefik"
@@ -25,7 +25,7 @@ resource "helm_release" "traefik" {
         name  = "ingressClass.isDefaultClass"
         value = "true"
     }
-    
+
     # Default Redirect
     set {
         name  = "ports.web.redirectTo"
@@ -42,5 +42,5 @@ resource "helm_release" "traefik" {
     set {
         name  = "tlsOptions.default.minVersion"
         value = "VersionTLS12"
-    }   
+    }
 }

+ 1 - 1
terraform/kubernetes/provider.tf

@@ -9,7 +9,7 @@ terraform {
     required_providers {
         kubernetes = {
             source = "hashicorp/kubernetes"
-            version = "2.35.1"     
+            version = "2.35.1"
         }
     }
 }

+ 2 - 2
terraform/kubernetes/secret.tf

@@ -1,7 +1,7 @@
 resource "kubernetes_secret" "cloudflare_api_key_secret" {
-  
+
     depends_on = [kubernetes_namespace.your-namespace-object]
-    
+
     metadata {
         name = "cloudflare-api-key-secret"
         namespace = "your-namespace"

+ 7 - 7
terraform/proxmox/full-clone.tf

@@ -3,7 +3,7 @@
 # Create a new VM from a clone
 
 resource "proxmox_vm_qemu" "your-vm" {
-    
+
     # VM General Settings
     target_node = "your-proxmox-node"
     vmid = "100"
@@ -11,19 +11,19 @@ resource "proxmox_vm_qemu" "your-vm" {
     desc = "Description"
 
     # VM Advanced General Settings
-    onboot = true 
+    onboot = true
 
     # VM OS Settings
     clone = "your-clone"
 
     # VM System Settings
     agent = 1
-    
+
     # VM CPU Settings
     cores = 1
     sockets = 1
-    cpu = "host"    
-    
+    cpu = "host"
+
     # VM Memory Settings
     memory = 1024
 
@@ -38,10 +38,10 @@ resource "proxmox_vm_qemu" "your-vm" {
 
     # (Optional) IP Address and Gateway
     # ipconfig0 = "ip=0.0.0.0/0,gw=0.0.0.0"
-    
+
     # (Optional) Default User
     # ciuser = "your-username"
-    
+
     # (Optional) Add your SSH KEY
     # sshkeys = <<EOF
     # #YOUR-PUBLIC-SSH-KEY

+ 1 - 2
terraform/templates/kubernetes-automation-example/certmanager.tf

@@ -7,7 +7,6 @@ resource "kubernetes_namespace" "certmanager" {
     metadata {
         name = "certmanager"
     }
-  
 }
 
 resource "helm_release" "certmanager" {
@@ -26,7 +25,7 @@ resource "helm_release" "certmanager" {
     set {
         name  = "installCRDs"
         value = "true"
-    }    
+    }
 }
 
 resource "time_sleep" "wait_for_certmanager" {

+ 1 - 1
terraform/templates/kubernetes-automation-example/nginx1.tf

@@ -100,7 +100,7 @@ spec:
     name: cloudflare-prod
     kind: ClusterIssuer
   dnsNames:
-  - 'your-domain'   
+  - 'your-domain'
     YAML
 }
 

+ 2 - 2
terraform/templates/kubernetes-automation-example/provider.tf

@@ -13,7 +13,7 @@ terraform {
         }
         kubernetes = {
             source = "hashicorp/kubernetes"
-            version = "2.35.1"     
+            version = "2.35.1"
         }
         kubectl = {
             source = "gavinbunney/kubectl"
@@ -40,7 +40,7 @@ variable "cloudflare_api_key" {
 
 provider "civo" {
     token = var.civo_token
-    
+
     # TODO: (optional) change region to your desired datacenter location
     # ---
     # region = "FRA1"

+ 2 - 2
terraform/templates/kubernetes-automation-example/traefik.tf

@@ -1,7 +1,7 @@
 # Traefik Deployment
 
 resource "kubernetes_namespace" "traefik" {
-    
+
     depends_on = [
         time_sleep.wait_for_kubernetes
     ]
@@ -31,7 +31,7 @@ resource "helm_release" "traefik" {
         name  = "ingressClass.isDefaultClass"
         value = "true"
     }
-    
+
     # Default Redirect
     set {
         name  = "ports.web.redirectTo"