Telmate / terraform-provider-proxmox

Terraform provider plugin for proxmox
MIT License
2.2k stars 532 forks source link

Blocks of type "cloudinit" are not expected here. #1145

Open squiros87 opened 1 week ago

squiros87 commented 1 week ago

im trying to define the cloud init disk and i evend copied the same file from this rrepo but i receive thi error:

│ Blocks of type "cloudinit" are not expected here.

disks { scsi { scsi0 {

We have to specify the disk from our template, else Terraform will think it's not supposed to be there

    disk {
      storage = "local-lvm"
      # The size of the disk should be at least as big as the disk in the template. If it's smaller, the disk will be recreated
      size    = "20" 
    }
  }

}

ide {
  # Some images require a cloud-init disk on the IDE controller, others on the SCSI or SATA controller
  ide1 {
    cloudinit {
      storage = "local-lvm"
    }
  }
}  

}

Tinyblargon commented 1 week ago

@squiros87 are you using 3.0.1rc4?