From b023b1f2878337206de8690a418761f5e1c20a2d Mon Sep 17 00:00:00 2001 From: Petar Cubela Date: Thu, 18 Sep 2025 22:43:15 +0200 Subject: [PATCH] added too much too remeber --- credentials.auto.tfvars | 3 +- lxc-demo-1.tf | 33 +++++++++ templates/vm-demo-1.tf | 4 +- templates/vm-students.tf | 67 +++++++++++++++++++ terraform.tfstate | 2 +- terraform.tfstate.backup | 2 +- vm_ad_client.tf | 69 +++++++++++++++++++ vm_freeipa.tf | 6 +- vm_freeipa_client.tf | 140 +++++++++++++++++++-------------------- vm_students.tf | 67 +++++++++++++++++++ 10 files changed, 311 insertions(+), 82 deletions(-) create mode 100644 lxc-demo-1.tf create mode 100644 templates/vm-students.tf create mode 100644 vm_ad_client.tf create mode 100644 vm_students.tf diff --git a/credentials.auto.tfvars b/credentials.auto.tfvars index 2069fc3..7891477 100644 --- a/credentials.auto.tfvars +++ b/credentials.auto.tfvars @@ -2,8 +2,7 @@ proxmox_api_url = "https://pve.lab.softbox.net:8006/api2/json" proxmox_api_token_id = "root@pam!tofu" proxmox_api_token_secret = "abb30a27-6d10-4d1e-8f3c-a02c355b3ee9" -#lxc_passwd = "reliyyaeknpt3" -#vm_passwd = "reliyyaeknpt3" +#lxc_passwd = "!aladin123" ssh_public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzh23ZkSVNbmDKk9esAT9qNkOoYFLhpX2nSLKPJaDVZ petar.cubela@sbx-mac-lab.local" #ssh_private_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzh23ZkSVNbmDKk9esAT9qNkOoYFLhpX2nSLKPJaDVZ petar.cubela@sbx-mac-lab.local" diff --git a/lxc-demo-1.tf b/lxc-demo-1.tf new file mode 100644 index 0000000..b9d046c --- /dev/null +++ b/lxc-demo-1.tf @@ -0,0 +1,33 @@ +# variable "lxc_passwd" { +# type = string +# sensitive = true +# } +# +# resource "proxmox_lxc" "lxc_demo_1" { +# target_node = "pve" +# ostemplate = "local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst" +# password = var.lxc_passwd +# unprivileged = true +# vmid = "500" +# +# ssh_public_keys = var.ssh_public_key +# +# +# features { +# nesting = true +# } +# hostname = "lxc-demo-1" +# +# network { +# name = "eth1" +# bridge = "vmbr0" +# ip = "dhcp" +# ip6 = "auto" +# } +# +# rootfs { +# storage = "local-lvm" +# size = "8G" +# } +# +# } diff --git a/templates/vm-demo-1.tf b/templates/vm-demo-1.tf index 9b38db9..dabb9af 100644 --- a/templates/vm-demo-1.tf +++ b/templates/vm-demo-1.tf @@ -61,7 +61,5 @@ # cicustom = "vendor=local:snippets/qemu-guest-agent.yml" # /var/lib/vz/snippets/qemu-guest-agent.yml # ciupgrade = true # -# sshkeys = <