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 = <