diff --git a/infrastructure-admin/main.tf b/infrastructure-admin/main.tf index 6a7c1ac..d8ed433 100644 --- a/infrastructure-admin/main.tf +++ b/infrastructure-admin/main.tf @@ -40,7 +40,7 @@ resource "random_password" "k3s_token" { resource "proxmox_vm_qemu" "controller" { name = "k3s-controller" target_node = var.target_nodes["controller"] - clone = var.template_id + clone_id = var.template_id full_clone = true cpu { cores = 2 @@ -80,7 +80,7 @@ EOT resource "proxmox_vm_qemu" "worker1" { name = "k3s-worker1" target_node = var.target_nodes["worker1"] - clone = var.template_id + clone_id = var.template_id full_clone = true cpu { cores = 2 @@ -120,7 +120,7 @@ EOT resource "proxmox_vm_qemu" "worker2" { name = "k3s-worker2" target_node = var.target_nodes["worker2"] - clone = var.template_id + clone_id = var.template_id full_clone = true cpu { cores = 2 diff --git a/infrastructure-admin/terraform.tfstate b/infrastructure-admin/terraform.tfstate new file mode 100644 index 0000000..72a565e --- /dev/null +++ b/infrastructure-admin/terraform.tfstate @@ -0,0 +1,66 @@ +{ + "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 +} diff --git a/infrastructure-admin/terraform.tfstate.backup b/infrastructure-admin/terraform.tfstate.backup new file mode 100644 index 0000000..c63feb6 --- /dev/null +++ b/infrastructure-admin/terraform.tfstate.backup @@ -0,0 +1,66 @@ +{ + "version": 4, + "terraform_version": "1.13.0", + "serial": 7, + "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 +}