Pascal Wiedenbeck
0df14f9d6a
feat: add the ability to clone to non-shared storage on different nodes ( #178 )
...
* feat: add workaround for cloning to non-shared storage
* fix: fix wrong API params used
* test: add new var to tests
* fix: lint issues
* docs: add new argument to docs
* docs: fix function documentation
* fix: better work with heterogeneous datastores
* docs: clarify clone behavior
* fix: go lint issues
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2022-12-12 16:28:53 -05:00
Szczepan Wiśniowski
722e01053b
fix: Check if any interface has global unicast address instead of all interfaces ( #182 )
...
* fix: Check if any interface has global unicast address instead of all interfaces
This allows us to have multiple interfaces and only one (instead of all) has to have assigned ip
* add multiple network devices to the example VM
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2022-12-11 16:29:25 -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
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
029dc1fb0a
Wait for 'net.IsGlobalUnicast' IP address ( #115 )
...
VM can get IPv6 link-local address faster than a DHCP server response,
that results in 'ipv4_addresses' output being an empty list.
It is then impossible to provision the VM using 'connection.host' field
derived from 'self.ipv4_addresses'.
Change the waiting for IP address to ignore IPv4 link-local addresses
and IPv6 link-local addresses.
2022-08-14 21:23:41 -04:00
Pavel Boldyrev
e9d2d607c1
Add support for "iothread" disk option for VM ( #97 )
2022-07-24 16:53:57 -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
Matt Burchett
065e859227
virtual_environment_datastores.go: Update remote command to get datasource path ( #49 )
...
This commit fixes the shell command that is being executed to get the datasource
path which appears to be no longer functional.
The previous command assumed that "path" is going to be the next line after the
datasource name, leaving NFS mounts and other types of mount points non-functional.
2022-03-21 20:26:39 -04:00
Pavel Boldyrev
81355e0e9e
Fix JSON unmarshal error when deploying LCX container
...
This closes #15
2021-09-09 14:29:56 -04:00
Pavel Boldyrev
f744b2391b
Merge pull request #3 from bpg/fix-vm-clone
...
Fix SIGSEGV if cloned VM is in a different storage.
2021-09-08 18:36:11 -04:00
Pavel Boldyrev
124cbc37c7
Update VirtualEnvironmentVMGetStatusResponseData.PID
and VirtualEnvironmentVMGetStatusResponseData.VMID
to int
type
2021-09-08 18:34:13 -04:00
Pavel Boldyrev
0742ac5091
Fix SIGSEGV if cloned VM is in a different storage.
...
closes #1
2021-09-08 18:27:36 -04:00
Pavel Boldyrev
90cda091a9
fix make test
error
...
`make test` was failing with
```
# github.com/danitso/terraform-provider-proxmox/proxmox
proxmox/virtual_environment_vm_types.go:1148:3: Sprintf format %s has arg r.Model of wrong type *string
make: *** [Makefile:82: test] Error 2
```
2021-09-07 18:46:02 -04:00
Chris W Jones
2cbaa057eb
Fixes bug with id type
2021-07-16 15:48:08 -04:00
Dan Petersen
8d711a7853
fix: watchdog deserialization issue
2021-02-18 22:36:08 +01:00
Dan Petersen
781d83535b
fix: state diff issue
2021-02-13 07:18:29 +01:00
Lucas Hahn
8ae3b2c0e3
Parameterize all timeouts
2021-01-08 14:29:08 +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
Lucas Hahn
3956a31494
Add multidisk support
2021-01-02 14:21:55 +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
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
Dan Petersen
7642a319ce
Support for moving and resizing disks
...
- Utilize asynchronous Functions for proxmox
2021-01-02 14:18:45 +01: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
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 Petersen
c077ea4060
fix: changed ip detection logic based on review and added initial terraform 0.13 compatibility for the example module
2020-09-15 22:08:03 +02: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
Alex Kulikovskikh
e4fb84de6f
Fix Container Response Data
2020-04-25 19:43:50 -04: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
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
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
913580b9e8
Fix timeout issue
2020-03-15 23:31:50 +01:00
Dan Petersen
097e3bfe5d
Additional debug output
2020-03-15 01:14:02 +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
1efe8019e4
Initial support for container cloning
2020-01-26 05:13:26 +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
94679a3f5e
Initial support for VM cloning
2020-01-19 03:40:10 +01:00
Dan Petersen
1c96dc1803
Add audio_device argument to VM resource
2020-01-14 21:31:21 +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
2d824e37bc
Add hosts data source
2020-01-01 23:59:13 +01:00
Dan Petersen
9de2bfbe98
Fix HTTP DELETE issue
2020-01-01 08:04:13 +01:00
Dan Petersen
dffff063ab
Add certificate resource
2020-01-01 07:29:21 +01:00
Dan Petersen
f1f1a84b72
Add dns data source and resource
2020-01-01 04:42:34 +01:00
Dan Petersen
9ea1cdba2c
Fixed vCPU update issue
2019-12-31 06:25:40 +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
7344300126
Add vga argument to VM resource
2019-12-31 01:00:53 +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
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
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
40084fa433
Initial speed limit support for disk devices
2019-12-27 23:13:37 +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
1d763c5efe
Continued work on VM API code
2019-12-16 01:15:23 +01:00
Dan Petersen
51f671ad23
Initial work on VM API handling
2019-12-16 00:05:53 +01:00
Dan Petersen
3ba91855cc
Minor refactoring
2019-12-14 15:25:10 +01:00
Dan Petersen
f258c7cf64
Initial support for HTTP/HTTPS sources in file resource
2019-12-13 00:59:17 +01:00
Dan Petersen
997337e277
Improve file resource
2019-12-13 00:04:11 +01:00
Dan Petersen
d981cc7f3e
Changed file upload code to use storage devices instead of memory
2019-12-12 23:15:13 +01:00
Dan Petersen
e2541de215
Initial work on file resource
2019-12-12 00:32:09 +01:00
Dan Petersen
1921fc0531
Initial work on datastores data source
2019-12-11 21:12:33 +01:00
Dan Petersen
20beccc76e
Added nodes data source
2019-12-11 01:32:12 +01:00
Dan Petersen
c5d8a34730
Initial work on ACL support
2019-12-11 00:24:36 +01:00
Dan Petersen
14c2d219d7
Initial work on pool resource
2019-12-10 00:12:47 +01:00
Dan Petersen
59598cf544
Initial work on user resource
2019-12-09 22:38:28 +01:00
Dan Petersen
b122523d22
Latest work
2019-12-08 23:57:45 +01:00
Dan Petersen
97ae8ba5ed
Latest work
2019-12-08 22:03:54 +01:00
Dan Petersen
9f312bf1cc
Latest work
2019-12-08 18:37:39 +01:00
Dan Petersen
96cc4ef2e6
Latest work
2019-12-08 18:06:24 +01:00
Dan Petersen
df101366f2
Latest work
2019-12-08 17:59:05 +01:00
Dan Petersen
bc3889b8eb
Latest work
2019-12-07 23:12:33 +01:00
Dan Petersen
78496c9e26
Latest work
2019-12-07 22:21:53 +01:00
Dan Petersen
44aeabbc28
Latest work
2019-12-07 21:15:59 +01:00
Dan Petersen
5a79f039c1
Initial work
2019-12-07 19:58:29 +01:00