After you run terraform plan, if you look inside terraform.tfstate, there's an instances array with info built from the "ansible_host" resources in the plan.What do you mean with this sentence? => Ansible script uses cloud.terraform.terraform_provider to get inventory info.
Thats great. Thanks
Yeah of course. I have already prepared whole setup for two scenarios.@eset here is my config (referring to a post from pve 8.1 release post)
Edit: Oh I see, there was a new version 17 days ago, had no issues with the previous one. Will test it soon and reply here again.
@eset can you provide me an example .tf file, they changed nearly all of the syntax that was working in the prev version :-/
qm
. There is one for template but I wasn't using it.cicustom
in cloudinit https://github.com/sonic-networks/terraform/tree/master/proxmoxbtw I got this to. After I struggle with not working tf code on PVE8 that removes cloudinit with cicustom I break the process and run again and then I get cloudinit back again plus it does this thing above and it does it over and over constantly every time I launch plan. What was the solution ?Thanks! Still updating as I am still learning. Terraform always wants to change qemu_os, although Im not using it in the config:
# proxmox_vm_qemu.srv_demo_4 will be updated in-place
~ resource "proxmox_vm_qemu" "srv_demo_4" {
id = "PMX4/qemu/103"
name = "srv-demo-4"
- qemu_os = "l26" -> null
You know how to properly use qemu_os?
Edit: Oh damn its L 26 with a small l not 126. Works fine now!
@jsterr And did you done something according to the issue?@eset here is my config (referring to a post from pve 8.1 release post)
Edit: Oh I see, there was a new version 17 days ago, had no issues with the previous one. Will test it soon and reply here again.
@eset can you provide me an example .tf file, they changed nearly all of the syntax that was working in the prev version :-/