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

133 Commits

Author SHA1 Message Date
Pavel Boldyrev
ade1d49117
feat: add support for VM tags (#169) 2022-11-25 23:23:50 -05:00
Pavel Boldyrev
9e34dfb362
feat: Add support for custom cloud-init vendor data file (#162)
* feat: Add support for custom cloud-init vendor data file

Add new argument `initialization`.`vendor_data_file_id` to specify a file ID form snippets.

* add vendor cloud-init to examples

* add missing `vendor` to unmarshal

* remove debug lines
2022-11-17 20:33:41 -05:00
Pavel Boldyrev
0fad160ed6
fix: linter issues (#158)
* fix: remove io/ioutil

* fix: lost diagnostic context

* fix: various linter errors

* fix: json manifests
2022-10-24 19:40:57 -04:00
Pavel Boldyrev
7145061bb3
chore: use automatic versioning in Makefile
Closes: #132
2022-10-16 21:40:19 -04:00
Pavel Boldyrev
b09389f0a9
fix: Non-default VM disk format is not preserved in TF state (#134)
Fix disk format parsing from the volume string.
Add basic unit tests for disk volume string parsing.
2022-10-14 18:27:30 -04:00
Pavel Boldyrev
42e0e725a5
Add support for "discard" disk option for VM (#128) 2022-09-28 19:13:41 -04:00
Oto Petřík
3392d8e5c0
Provide correct outputs from stopped VM (#106)
Outputs 'ipv4_addresses', 'ipv6_addresses', 'network_interface_names' of
stopped VM are empty and break plans - e.g. search for "eth0" in empty list.
On update, mark them 'Computed' if there is planned change in 'started'
or 'network_device' of the VM.

This makes it possible to depend on e.g. 'network_interface_names' of VM
which is not running at the time of 'terraform plan', but which will be
started during 'terraform apply'.
2022-07-29 22:15:13 -04:00
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