0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-04 21:14:05 +00:00
Commit Graph

124 Commits

Author SHA1 Message Date
Prajwal Borkar
e14c417f0f
Fixed Typo (#107)
Fixed Typo
2022-07-29 18:25:12 -04:00
Pavel Boldyrev
e9d2d607c1
Add support for "iothread" disk option for VM (#97) 2022-07-24 16:53:57 -04:00
Pavel Boldyrev
37fe0e03ff
Fix disk import when VM template has multiple disks (#96)
The disk import operation is not exposed via Proxmox APIs, so implemented as a sequence of commands run as an inline script via ssh.
`qm importdisk` is used to import a disk into VM from an external file, however, it auto-generates the disk ID.
The following command `qm set` is used to assign the imported disk to a VM, and it requires the disk ID as a parameter.

Update the import logic to read the disk ID from the output of `qm importdisk` command rather than trying to assume it from a number of disks defined in the VM.
2022-07-22 19:03:39 -04:00
Pavel Boldyrev
192cbd5e3d
Upgrade the provider codebase to use Terraform SDK v2 (#91)
* Update TF SDK using `tf-sdk-migrator v2upgrade`
Address some linter issues
Clean up `resource_virtual_environment_file.go` (still, error handling is not ideal)

* few minor cleanups

* Clean up, add context and diagnostics to `resource_virtual_environment_vm.go`

* Clean up, add context and diagnostics to `resource_virtual_environment_container.go`

* Clean up, add context and diagnostics to `resource_virtual_environment_container.go`

* Update remaining resources and data sources

* fix `make example`... now it actually uses the built provider 🤦

* propagate Context everywhere
use tflog.* for logging

* add support for debug flag

* fix old issues with:
- setting `resource_virtual_environment_file.changed` attribute
- setting `resource_virtual_environment_cluster_ipset.cidr` attributes
- setting `data_source_virtual_environment_user.groups` and `.keys` attributes

* bump dependencies

* minor cleanups

* Bump Go to v1.18
Dropped support for TF v0.x

* more cleanups

* update README.md

* update PR template

* update release.yml
2022-07-14 12:20:30 -04:00
Pavel Boldyrev
0fa4a54903
Bump provider version to 0.5.1 (#52)
* Bump provider version to 0.5.1

Also fixes #44

* Bump TF version for tests
2022-03-21 20:46:25 -04:00
Pavel Boldyrev
6ff9e3a48a
set TF version 0.4.6 2021-09-09 20:42:30 -04:00
Pavel Boldyrev
380f07c3e2
Update project to use bpg/terraform-provider-proxmox 2021-09-09 12:20:19 -04:00
Pavel Boldyrev
45fcc4d316
bump version to 0.4.5 2021-09-08 18:34:47 -04:00
Dan Petersen
d4f59f184d feat: bump versioN 2021-02-18 22:26:43 +01:00
Dan Petersen
846b298dec feat: bump version 2021-02-17 04:36:41 +01:00
Dan Petersen
0102fb1fe3 fix: ip initialization issue for cloned containers 2021-02-14 03:43:12 +01:00
Dan Petersen
5871fff200 fix: disk resizing issue 2021-02-13 08:21:37 +01:00
Dan Petersen
781d83535b fix: state diff issue 2021-02-13 07:18:29 +01:00
Dan Petersen
fec2a7c9e1 fix: bump version 2021-02-13 03:22:29 +01:00
Dan Petersen
612ad45a30 Update docs 2021-02-10 05:05:26 +01:00
mleone87
0b68e058cf Fix a typo and make disk import coherent with disk interface
Fix a small typo in resourceVirtualEnvironmentVMCreateCustom function and make the provider capable to import disk with the correct interface
2021-01-20 17:24:31 +01:00
Lucas Hahn
8ae3b2c0e3 Parameterize all timeouts 2021-01-08 14:29:08 +01:00
Lucas Hahn
b978955641 Use correct ide devices for cloud init 2021-01-04 14:36:03 +01:00
Dan Petersen
0fd8d3dae7 fix: missing reference to standalone terraform plugin and duplicate output names in example 2021-01-02 22:48:42 +01:00
Dan Petersen
550ab62a7a Merge remote-tracking branch 'patsissons/fix-cdrom-index-out-of-range-error' into release-0.4.0 2021-01-02 22:42:08 +01:00
Dan Petersen
4911843287 Merge remote-tracking branch 'patsissons/add-citype-support' into release-0.4.0 2021-01-02 22:41:03 +01:00
Dan Petersen
3f08b56f79 Merge remote-tracking branch 'blz-ea/feature/cluster-alias' into release-0.4.0 2021-01-02 22:36:44 +01:00
Dan Petersen
9d2676e730 Merge remote-tracking branch 'blz-ea/feature/cluster-ipset' into release-0.4.0 2021-01-02 22:35:07 +01:00
Dan Petersen
b02238a001 Merge remote-tracking branch 'ryan4yin/migrate-terraform-sdk' into release-0.4.0 2021-01-02 22:31:39 +01:00
Dan Petersen
f64f51b72c Merge remote-tracking branch 'patsissons/fix-started-state-diff' into release-0.4.0 2021-01-02 22:26:51 +01:00
Dan Petersen
f09e008683 Merge remote-tracking branch 'patsissons/fix-initialization-state-diff' into release-0.4.0 2021-01-02 22:25:39 +01:00
Dan Petersen
6a031e1672 Merge remote-tracking branch 'blz-ea/fix-vm-pool-id-name' into release-0.4.0 2021-01-02 22:23:54 +01:00
Lucas Hahn
3956a31494 Add multidisk support 2021-01-02 14:21:55 +01:00
Lucas Hahn
7883dfdb7e introduce onBoot parameter 2021-01-02 14:18:45 +01:00
Lucas Hahn
8acafc0bb7 Fix Errors
- Fix required disk interface parameter
 - Fix datastore move to same datastore error
 - Fix compare sizes for resize disk
2021-01-02 14:21:20 +01:00
Lucas Hahn
6a08bb7329 Make disk interface a required attribute 2021-01-02 14:18:45 +01:00
Lucas Hahn
328acd80df set retries to default 1 and add guard 2021-01-02 14:18:45 +01:00
Lucas Hahn
1798bade56 added support to reboot vm after creation or clone 2021-01-02 14:20:52 +01:00
Lucas Hahn
51a71b44e3 added check for update disks 2021-01-02 14:18:45 +01:00
Dan Petersen
7642a319ce Support for moving and resizing disks
- Utilize asynchronous Functions for proxmox
2021-01-02 14:18:45 +01:00
Alex Kulikovskikh
51e8f9b621 Fix vm resource 2020-12-17 09:50:42 -05:00
Alex Kulikovskikh
30560ac133 fix: rename ipset block to cidr 2020-12-14 21:07:07 -05:00
Pat Sissons
fd85eb85cb adding citype support 2020-12-12 23:32:28 -08:00
Pat Sissons
b5ff37af74 fix initialization diff 2020-12-12 23:31:28 -08:00
Pat Sissons
7eac54086a fixing started diff 2020-12-12 23:24:49 -08:00
ryan
4597175e5c provider: Migrate to standalone terraform plugin SDK 1.9.1 2020-12-13 12:25:02 +08:00
Alex Kulikovskikh
3d14018ff7 add ipset cluster resource 2020-12-10 09:52:38 -05:00
Alex Kulikovskikh
0a71fe6b1f add alias cluster resource 2020-12-10 09:45:27 -05:00
Pat Sissons
920bf24200 fix index out of range error 2020-12-06 18:31:29 -08:00
Dan R. Petersen
eb06704896
Merge pull request #12 from Wombelix/vm-create-linked-clone
Parameter added to define if a Full or Linked Clone should be created
2020-10-25 23:15:11 +01:00
Dan R. Petersen
2b260aaf04
Merge pull request #28 from danitso/bugfix-dir-based-disk-import
Treat NFS as directory based datastore
2020-10-25 23:10:27 +01:00
Dan R. Petersen
c068512d0d
Merge pull request #46 from blz-ea/feature-cloud-init-and-cdrom
Resolves conflict of cloud-init with cd-dvd drive
2020-10-25 23:08:03 +01:00
Dan R. Petersen
74d895f305
Merge pull request #35 from danitso/fix/agent-ip-addresses
Fix lack of IP addresses from QEMU agent
2020-10-25 23:01:37 +01:00
Alex Kulikovskikh
e9528546c8 Resolves cloud init disk conflict with cdrom 2020-08-26 14:53:41 -04:00
Dan Petersen
6fee532f92 fix: ignore ip addresses from lo interface and increase container state timeout 2020-06-26 22:09:51 +02:00