From 5dbc9d76ec08ab1510b4fff67520dc96af2eced5 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 3 Sep 2025 08:58:16 +0200 Subject: [PATCH] console fix --- .gitignore | 2 + create-ubuntu-cloudinit-template.sh | 3 - infrastructure-admin/terraform.tfstate | 20 +++--- infrastructure-admin/terraform.tfstate.backup | 66 ------------------- 4 files changed, 12 insertions(+), 79 deletions(-) delete mode 100644 infrastructure-admin/terraform.tfstate.backup diff --git a/.gitignore b/.gitignore index 746c4c0..b7fbbc0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ terraform/.terraform.lock.hcl terraform/.terraform/ terraform/terraform.tfstate +infrastructure-admin/terraform.tfstate +infrastructure-admin/terraform.tfstate.backup diff --git a/create-ubuntu-cloudinit-template.sh b/create-ubuntu-cloudinit-template.sh index 5908111..9f7ab7f 100644 --- a/create-ubuntu-cloudinit-template.sh +++ b/create-ubuntu-cloudinit-template.sh @@ -31,9 +31,6 @@ qm set $VMID --ide2 ${STORAGE}:cloudinit echo "==> Setting boot options..." qm set $VMID --boot c --bootdisk scsi0 -echo "==> Enabling serial console..." -qm set $VMID --serial0 socket --vga serial0 - echo "==> Converting VM $VMID to template..." qm template $VMID diff --git a/infrastructure-admin/terraform.tfstate b/infrastructure-admin/terraform.tfstate index f1e71b6..cf828c5 100644 --- a/infrastructure-admin/terraform.tfstate +++ b/infrastructure-admin/terraform.tfstate @@ -1,8 +1,8 @@ { "version": 4, "terraform_version": "1.13.0", - "serial": 17, - "lineage": "d5a26e70-76e1-4ee6-fbd3-7e17e672cf00", + "serial": 7, + "lineage": "b0d31962-3163-dc87-e1a4-b069868f1866", "outputs": { "controller_ip": { "value": "192.168.122.50", @@ -137,7 +137,7 @@ "firewall": false, "id": 0, "link_down": false, - "macaddr": "bc:24:11:78:63:79", + "macaddr": "bc:24:11:af:0a:20", "model": "virtio", "mtu": 0, "queues": 0, @@ -169,7 +169,7 @@ "product": "", "serial": "", "sku": "", - "uuid": "bc4f9779-2cc1-4516-a2a6-66b81bc0e397", + "uuid": "3c948be5-2495-4910-ba95-519413eb6392", "version": "" } ], @@ -342,7 +342,7 @@ "firewall": false, "id": 0, "link_down": false, - "macaddr": "bc:24:11:28:24:ca", + "macaddr": "bc:24:11:1d:05:31", "model": "virtio", "mtu": 0, "queues": 0, @@ -374,7 +374,7 @@ "product": "", "serial": "", "sku": "", - "uuid": "9fe50c64-c9e1-486f-9a9e-f8638f120690", + "uuid": "06c3315b-e044-40b1-bffe-92e892dff09b", "version": "" } ], @@ -547,7 +547,7 @@ "firewall": false, "id": 0, "link_down": false, - "macaddr": "bc:24:11:18:b1:00", + "macaddr": "bc:24:11:72:d9:98", "model": "virtio", "mtu": 0, "queues": 0, @@ -579,7 +579,7 @@ "product": "", "serial": "", "sku": "", - "uuid": "df0a1722-f948-42ba-bdc6-fc4adb9ef9fc", + "uuid": "7df7f412-d573-4bcf-ac5f-bf77915c21b3", "version": "" } ], @@ -642,7 +642,7 @@ { "schema_version": 3, "attributes": { - "bcrypt_hash": "$2a$10$0ezq9CVsJrbqqDgydnfT6e8KHK0xJqSUgV/4mEi0dxwDjEKXPaA4a", + "bcrypt_hash": "$2a$10$REdkV8RlQSockZTD1NUXT.CE.DaMq4sNmwGarkFMRwhDXoUv9d.Xy", "id": "none", "keepers": null, "length": 32, @@ -654,7 +654,7 @@ "number": true, "numeric": true, "override_special": null, - "result": "F8WQbWDIELGCnz1WlWSDKPNaCOsRgVHD", + "result": "VExNsWJN66ixpLhLODQLiBuml4SRd0tg", "special": false, "upper": true }, diff --git a/infrastructure-admin/terraform.tfstate.backup b/infrastructure-admin/terraform.tfstate.backup deleted file mode 100644 index 72a565e..0000000 --- a/infrastructure-admin/terraform.tfstate.backup +++ /dev/null @@ -1,66 +0,0 @@ -{ - "version": 4, - "terraform_version": "1.13.0", - "serial": 11, - "lineage": "d5a26e70-76e1-4ee6-fbd3-7e17e672cf00", - "outputs": { - "controller_ip": { - "value": "192.168.122.50", - "type": "string" - }, - "worker1_ip": { - "value": "192.168.122.51", - "type": "string" - }, - "worker2_ip": { - "value": "192.168.122.52", - "type": "string" - } - }, - "resources": [ - { - "mode": "managed", - "type": "random_password", - "name": "k3s_token", - "provider": "provider[\"registry.terraform.io/hashicorp/random\"]", - "instances": [ - { - "schema_version": 3, - "attributes": { - "bcrypt_hash": "$2a$10$0ezq9CVsJrbqqDgydnfT6e8KHK0xJqSUgV/4mEi0dxwDjEKXPaA4a", - "id": "none", - "keepers": null, - "length": 32, - "lower": true, - "min_lower": 0, - "min_numeric": 0, - "min_special": 0, - "min_upper": 0, - "number": true, - "numeric": true, - "override_special": null, - "result": "F8WQbWDIELGCnz1WlWSDKPNaCOsRgVHD", - "special": false, - "upper": true - }, - "sensitive_attributes": [ - [ - { - "type": "get_attr", - "value": "bcrypt_hash" - } - ], - [ - { - "type": "get_attr", - "value": "result" - } - ] - ], - "identity_schema_version": 0 - } - ] - } - ], - "check_results": null -}