0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 19:12:59 +00:00
Commit Graph

326 Commits

Author SHA1 Message Date
Pavel Boldyrev
442b60c8f9
Fix storing of "disk.iothread" in TF state
Add missing doc entry

Relates to #87
2022-07-29 21:54:58 -04:00
Oto Petřík
752f2ea565
Avoid reboot when resizing disks. (#104)
There is no need to shutdown VM before resizing disks.
In addition to boot time, system in VM can be configured to resize
partitions and filesystems in response to udev events.

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2022-07-29 20:22:40 -04:00
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
Krzysztof Magosa
a6a7df7a54 allow using hyphen in storage names 2020-06-22 20:46:40 +02:00
Dan Petersen
458fb84193 Treat NFS as directory based datastore 2020-05-17 02:40:52 +02:00
Dan Petersen
1333c07a42 Initial work on time resource 2020-04-18 14:21:50 +02:00
Dan R. Petersen
eb4e6893f3
Merge pull request #17 from danitso/bugfix-disk-image-import
Fix disk import issue when importing from directory-based datastores
2020-04-13 17:48:51 +02:00
Dan Petersen
173266c37b Add TOTP support 2020-04-08 00:42:00 +02:00
Dan Petersen
67fcfbdd03 Always use qcow2 as file extension 2020-04-07 04:36:22 +02:00
Dan Petersen
5002145c8e Add file extension 2020-04-07 04:32:30 +02:00
Dan Petersen
d4f28c9c6f Fix disk import issue when importing from directory-based datastores 2020-04-04 00:14:43 +02:00
Dan Petersen
9775ede37e Fix VM ID collision 2020-04-03 22:12:44 +02:00
Dominik Wombacher
3f74560176 Parameter added to define if a Full or Linked Clone should be created 2020-03-28 12:41:33 +01:00
Dan Petersen
5099ff372c Ignore default value for cpu.architecture when the root account is not being used 2020-03-27 16:57:54 +01:00
Dan Petersen
990d4d32b6 Initial IP address format fix 2020-03-22 01:42:29 +01:00
Dan Petersen
23101627dc Format code 2020-03-17 22:20:26 +01:00
Dan Petersen
8c84784d69 Add agent.timeout argument 2020-03-14 21:20:05 +01:00
Dan Petersen
cfe0831b1c Additional logic while waiting for QEMU agent to publish the network interfaces 2020-03-14 17:40:59 +01:00
Dan Petersen
4aa1de656a Fix crash caused by assuming IP addresses are always reported by the QEMU agent 2020-03-14 12:58:42 +01:00
Dan Petersen
aec59ef607 Add datastore_id argument to initialization block for VM resources 2020-03-08 17:40:58 +01:00
Dan Petersen
ea05ebc40e Fix for empty mac address list 2020-02-16 21:00:47 +01:00
Dan Petersen
877506a0b4 Initial fix for datastore path detection issue 2020-02-16 20:56:02 +01:00
Dan Petersen
1efe8019e4 Initial support for container cloning 2020-01-26 05:13:26 +01:00
Dan Petersen
1f96d6851a Fix delete issue in VM resource 2020-01-22 11:36:14 +01:00
Dan Petersen
87ed6ba2b8 Fix wrong schema value reference in VM resource 2020-01-22 11:22:44 +01:00
Dan Petersen
bec026361d Wait for VM creation while waiting for VM configuration lock to be released 2020-01-21 20:48:00 +01:00
Dan Petersen
c4c31cdf96 Refactor test cases 2020-01-19 20:52:12 +01:00
Dan Petersen
cd64b66ad7 Minor fixes to VM cloning 2020-01-19 19:26:49 +01:00
Dan Petersen
94679a3f5e Initial support for VM cloning 2020-01-19 03:40:10 +01:00
Dan Petersen
a9616648dc Add disk argument to container resource 2020-01-14 22:46:14 +01:00
Dan Petersen
1c96dc1803 Add audio_device argument to VM resource 2020-01-14 21:31:21 +01:00
Dan Petersen
23466ab289 Add serial_device argument to VM resource 2020-01-11 16:39:08 +01:00
Dan Petersen
6bb5e9fe14 Continue work on container resource 2020-01-02 12:07:16 +01:00
Dan Petersen
f6c4ad2af7 Continue work on container resource 2020-01-02 11:45:46 +01:00
Dan Petersen
6dac302a01 Initial work on container resource 2020-01-02 07:57:48 +01:00
Dan Petersen
0e4647f0ee Add hosts resource 2020-01-02 00:58:35 +01:00
Dan Petersen
9ac2a3eba9 Add entries attribute to hosts data source 2020-01-02 00:19:17 +01:00
Dan Petersen
2d824e37bc Add hosts data source 2020-01-01 23:59:13 +01:00
Dan Petersen
1eb0fe0a34 Additional certificate attributes 2020-01-01 22:58:22 +01:00
Dan Petersen
dffff063ab Add certificate resource 2020-01-01 07:29:21 +01:00
Dan Petersen
8396d92ddf Fix test case issue 2020-01-01 04:58:02 +01:00
Dan Petersen
f1f1a84b72 Add dns data source and resource 2020-01-01 04:42:34 +01:00
Dan Petersen
836a8bd1ab Fix CPU emulation state comparison issue 2019-12-31 08:03:30 +01:00
Dan Petersen
347b553202 Add bios argument to VM resource 2019-12-31 07:40:18 +01:00
Dan Petersen
073030965a Add acpi argument to VM resource 2019-12-31 07:22:34 +01:00
Dan Petersen
8a06e287b3 Add tablet_device argument to VM resource 2019-12-31 07:06:03 +01:00
Dan Petersen
9ea1cdba2c Fixed vCPU update issue 2019-12-31 06:25:40 +01:00
Dan Petersen
ea0c17bfca Additional CPU argument 2019-12-31 06:11:13 +01:00
Dan Petersen
a9349cfbd0 Additional CPU arguments 2019-12-31 05:25:19 +01:00
Dan Petersen
daa7102a26 Minor refactoring 2019-12-31 02:05:39 +01:00
Dan Petersen
60a998cb09 Change state comparison and default values 2019-12-31 01:40:51 +01:00
Dan Petersen
38bec29683 Bump version to 0.2.0 2019-12-31 01:07:56 +01:00
Dan Petersen
7344300126 Add vga argument to VM resource 2019-12-31 01:00:53 +01:00
Dan Petersen
8d458e1a31 Continued work on VM resource 2019-12-30 06:53:54 +01:00
Dan Petersen
b039380f2a Continued work on VM resource 2019-12-30 06:28:52 +01:00
Dan Petersen
11524b88ee Continued work on VM resource 2019-12-30 06:03:52 +01:00
Dan Petersen
ad6fe2c6ea Continued work on VM update logic 2019-12-30 05:29:19 +01:00
Dan Petersen
6dd3cb454c Continued work on VM update logic 2019-12-30 05:20:23 +01:00
Dan Petersen
b9a1d4c131 Continued work on VM state refresh 2019-12-30 01:40:55 +01:00
Dan Petersen
b52c6fb082 Changed mac_addresses attribute logic 2019-12-29 23:35:54 +01:00
Dan Petersen
d29a0a7ef6 Add mac_addresses attribute to VM resource 2019-12-29 23:24:22 +01:00
Dan Petersen
1dfe979e9e Initial support for remote-exec provisioners 2019-12-29 21:21:48 +01:00
Dan Petersen
1176ef9ee4 Initial support for custom cloud-init user data 2019-12-29 06:58:35 +01:00
Dan Petersen
4780318bd4 Continued work on VM resource 2019-12-28 04:16:35 +01:00
Dan Petersen
f335b1072c Continued work on VM resource 2019-12-28 04:12:39 +01:00
Dan Petersen
b2713e4e63 Continued work on VM resource 2019-12-28 02:44:36 +01:00
Dan Petersen
478631ce80 Continued work on VM resource 2019-12-28 00:23:40 +01:00
Dan Petersen
9261dcbf07 Initial support for multiple VLANs 2019-12-27 23:25:35 +01:00
Dan Petersen
40084fa433 Initial speed limit support for disk devices 2019-12-27 23:13:37 +01:00
Dan Petersen
f69339966a Continued work on VM resource 2019-12-27 19:36:12 +01:00
Dan Petersen
08e389dac8 Continued work on VM resource 2019-12-27 19:13:40 +01:00
Dan Petersen
c69cabc57a Continued work on VM resource 2019-12-27 02:48:27 +01:00
Dan Petersen
96d139fcb4 Initial work on VM resource implementation 2019-12-26 23:01:43 +01:00
Dan Petersen
b5c91c08f8 Continued work on VM support 2019-12-26 03:05:03 +01:00
Dan Petersen
fdad166b6a Continued work on VM support 2019-12-25 23:38:29 +01:00
Dan Petersen
d08416630b Initial support for environment variables 2019-12-15 17:34:46 +01:00
Dan Petersen
ac49fb66b9 Refactoring 2019-12-15 16:45:40 +01:00