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

897 Commits

Author SHA1 Message Date
allcontributors[bot]
91d0f18871
docs: add mritalian as a contributor for test, and doc (#581)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-09-21 20:31:09 -04:00
allcontributors[bot]
2f4d0b682d
docs: add 0xinterface as a contributor for ideas (#579)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-09-21 20:09:39 -04:00
Pavel Boldyrev
b9106ff93d
misc: Sign-off release-please commits (#576)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-09-19 23:28:40 -04:00
Pavel Boldyrev
d0c9b4594d
chore(doc): add a note about DCO to CONTRIBUTING.md (#574)
chore(doc): Add a note about DCO to CONTRIBUTING.md

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-09-19 23:10:05 -04:00
Pavel Boldyrev
5720fe4673
fix(network): remove computed flag from mtu attribute (#572)
* chore(code): refactor & update network tests

* fix(network): remove `computed` flag from `mtu` attribute

* chore: revert accidentally committed files

* chore: update docs
2023-09-19 21:41:25 -04:00
Pavel Boldyrev
7d064a8b27
chore(code): re-organize and cleanup "fwk provider"'s code (#568)
* chore(code): code cleanup / renaming

* chore(code): flatten and rename fw provider package

* chore(code): refactor & update network tests
2023-09-17 22:50:24 +00:00
allcontributors[bot]
0a37dfd28d
docs: add ishioni as a contributor for bug (#565)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-09-13 03:09:52 +00:00
GitHub Bot
dc5e0ad8df
chore(main): release 0.32.0 (#550) 2023-09-13 03:07:25 +00:00
Pavel Boldyrev
2dee65bd0b
chore(code): remove redundant types2 import aliases (#564) 2023-09-13 03:03:43 +00:00
Pavel Boldyrev
11a8ec0c95
fix(lxc,vm): error unmarshalling string cpulimit (#563)
fix(lxc,vm): error: cannot unmarshal string `cpulimit`
2023-09-13 02:53:28 +00:00
Pavel Boldyrev
3d7fbaa7c7
chore(deps): bump github.com/hashicorp/terraform-plugin-* dependencies (#561)
* chore(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.28.0 to 2.29.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.28.0...v2.29.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump github.com/hashicorp/terraform-plugin-framework

Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) from 1.3.5 to 1.4.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-framework/compare/v1.3.5...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump github.com/hashicorp/terraform-plugin-go

Bumps [github.com/hashicorp/terraform-plugin-go](https://github.com/hashicorp/terraform-plugin-go) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-go/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-go/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump github.com/hashicorp/terraform-plugin-mux

Bumps [github.com/hashicorp/terraform-plugin-mux](https://github.com/hashicorp/terraform-plugin-mux) from 0.11.2 to 0.12.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-mux/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-mux/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-mux/compare/v0.11.2...v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-mux
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 00:25:54 +00:00
dependabot[bot]
1040aabb23
chore(deps): bump golang.org/x/crypto from 0.12.0 to 0.13.0 (#554) 2023-09-12 12:04:27 +00:00
dependabot[bot]
1f8330afc7
chore(deps): bump crazy-max/ghaction-import-gpg from 5 to 6 (#558) 2023-09-12 11:55:15 +00:00
dependabot[bot]
ac556b5515
chore(deps): bump goreleaser/goreleaser-action from 4.4.0 to 5.0.0 (#560) 2023-09-12 11:52:37 +00:00
Rafał Safin
de8b4ec41a
feat(cluster): add cluster options resource (#548) 2023-09-12 07:49:03 -04:00
Pavel Boldyrev
edec5bfd1c
chore(ci): cleanup and update project configs (#549) 2023-09-07 01:41:08 +00:00
GitHub Bot
79eafe41e3
chore(main): release 0.31.0 (#535) 2023-09-04 16:34:30 -04:00
Pavel Boldyrev
7ace07dfa4
feat(file): FORMAT CHANGE: update import id, so it matches the resource's format: <node_name>/<datastore_id>:<content_type>/<file> (#543)
* feat(file): FORMAT CHANGE: update **import id**, so it matches the resource's format: `<node_name>/<datastore_id>:<content_type>/<file>`

* better example
2023-09-04 20:29:58 +00:00
Emmanuel Benoît
0233053dd8
fix(vm): explicitly allow "" as a value for CloudInit interfaces (#546)
The CloudInit interface can be left empty in order to allow
autodetection of the drive being used. However, it would seem that this
value was causing problems (see #539).

This commit adds an additional validator for CloudInit interfaces which
allows the `""` value.
2023-09-04 16:11:14 -04:00
Rafał Safin
13326bbd33
fix(provider): panic crash in provider, interface conversion error (#545)
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-09-04 19:02:23 +00:00
dependabot[bot]
44d6d6b080
chore(deps): bump actions/checkout from 3 to 4 (#541)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 14:03:27 -04:00
allcontributors[bot]
46b384dff6
docs: add simoncaron as a contributor for code (#540)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-09-04 14:57:40 +00:00
Simon Caron
8ce9006eed
feat(lxc): add support for keyctl and fuse features (#537) 2023-09-04 10:44:49 -04:00
Pavel Boldyrev
5ecf135398
chore(code): fix proxmox package dependencies (#536)
move `types` back from `internal` to `proxmox` and adjust a few other types, to make sure `proxmox` package is not dependent on anything else, and therefore can be extracted to a separate repo (#423)
2023-09-03 00:40:47 +00:00
Rafał Safin
124cac247c
feat(provider): add optional SSH port param to node in provider ssh block (#520)
* feat: Add optional SSH port param to node in provider ssh block

* fix: minor cleanups

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-09-02 19:43:08 -04:00
GitHub Bot
4cccebaa62
chore(main): release 0.30.3 (#534) 2023-09-01 01:51:07 +00:00
Pavel Boldyrev
ef2f2c1159
fix(node): file upload in multi-node PVE cluster (#533)
* fix(node): fix file upload in multi-node PVE cluster

* fix: timezone 🤦
2023-09-01 01:45:20 +00:00
allcontributors[bot]
65bdf24d58
docs: add GJKrupa as a contributor for test (#532) 2023-08-31 18:19:23 -04:00
GitHub Bot
f95970d26d
chore(main): release 0.30.2 (#525) 2023-08-31 01:39:23 +00:00
dependabot[bot]
e35443a23b
chore(deps): bump github.com/hashicorp/terraform-plugin-framework-validators from 0.11.0 to 0.12.0 (#530)
chore(deps): bump github.com/hashicorp/terraform-plugin-framework-validators

Bumps [github.com/hashicorp/terraform-plugin-framework-validators](https://github.com/hashicorp/terraform-plugin-framework-validators) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework-validators/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework-validators/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-framework-validators/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework-validators
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-30 21:36:17 -04:00
Pavel Boldyrev
f00e48a51e
fix(node): creating linux_bridge with 'vlan_aware=false' or 'autostart=false' (#529) 2023-08-31 01:30:26 +00:00
Pavel Boldyrev
11d82614e6
fix(file): forced replacement of file resources that missing timeout_upload attribute (#528) 2023-08-31 00:26:01 +00:00
allcontributors[bot]
91c192b62f
docs: add dawidole as a contributor for bug (#527)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-08-29 23:11:12 +00:00
Pavel Boldyrev
6f02df4440
fix(core): improve error handling while waiting for PVE tasks to complete (#526) 2023-08-29 19:06:34 -04:00
dependabot[bot]
5556b17a1e
chore(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.27.0 to 2.28.0 (#524)
chore(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.27.0 to 2.28.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.27.0...v2.28.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-29 00:25:29 +00:00
dependabot[bot]
cd7927bec3
chore(deps): bump activesupport from 7.0.6 to 7.0.7.1 in /docs (#522)
Bumps [activesupport](https://github.com/rails/rails) from 7.0.6 to 7.0.7.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.0.7.2/activesupport/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v7.0.6...v7.0.7.1)

---
updated-dependencies:
- dependency-name: activesupport
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-29 00:22:05 +00:00
Oto Petřík
5599c7afe4
fix(provider): User-settable VLAN ID and name (#518)
* fix(provider): User-settable VLAN ID and name

By default resource `proxmox_virtual_environment_network_linux_vlan`
uses `name` to determine both the actual raw device for VLAN and
VLAN ID.

Since ifupdown2 (manually installed on PVE6, installed by default
since PVE7), it is possible to have VLAN name not tied to VLAN ID.

Make `interface` and `vlan` configurable by user.

* fix: update schema to ensure the correct docs generation.

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-08-28 20:19:10 -04:00
GitHub Bot
60f59c6e13
chore(main): release 0.30.1 (#516) 2023-08-22 10:13:46 -04:00
Risto Oikarinen
b1ac87df1d
fix(vm): fix PCI device resource mapping changed (#517) 2023-08-22 08:16:28 -04:00
dependabot[bot]
731dad8794
chore(deps): bump github.com/golangci/golangci-lint from 1.54.1 to 1.54.2 in /tools (#514)
chore(deps): bump github.com/golangci/golangci-lint in /tools

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.54.1 to 1.54.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.54.1...v1.54.2)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-22 02:22:12 +00:00
dependabot[bot]
79c7f100f6
chore(deps): bump github.com/google/uuid from 1.3.0 to 1.3.1 (#515)
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/google/uuid/releases)
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/uuid/compare/v1.3.0...v1.3.1)

---
updated-dependencies:
- dependency-name: github.com/google/uuid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 22:19:02 -04:00
GitHub Bot
dfae1637be
chore(main): release 0.30.0 (#490) 2023-08-21 00:10:19 +00:00
Emmanuel Benoît
148a9e0c9c
fix(vm): fixed startup / shutdown behaviour on HA clusters (#508)
* fix(vm): wait for VMs to actually stop when sending a shutdown command

Due to how a Proxmox cluster reacts to a VM shutdown command when
running in HA mode, the VM might still be running when the shutdown API
calls returns. This commit adds a loop that actively waits for the VM's
status to change to "stopped" (while also accounting for the shutdown
timeout) after the call's return.

* chore(refactoring): extracted VM state change wait loop into a separate function

* fix(vm): wait for VMs to actually start after requesting it from the cluster

This commit forces the plugin to wait for a VM to actually run after
requesting it to be started. This avoids problems with Proxmox's High
Availability mode, where a start request may not be immediately honoured
by the cluster.

* fix: linter errors

* fix: use `vmAPI.WaitForVMState`

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-08-20 20:07:37 -04:00
Emmanuel Benoît
73c1294979
fix(vm): fix CloudInit datastore change support (#509)
The datastore update support introduced in #486 only worked if the
CloudInit interface was also changed at the same time. This commit
fixes the problem.

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-08-20 19:53:10 -04:00
dependabot[bot]
98ae6a8d8f
chore(deps): bump github.com/hashicorp/terraform-plugin-framework from 1.3.4 to 1.3.5 (#512)
chore(deps): bump github.com/hashicorp/terraform-plugin-framework

Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-framework/compare/v1.3.4...v1.3.5)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-20 23:31:36 +00:00
allcontributors[bot]
dfa9637012
docs: add zharalim as a contributor for code (#513)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-08-20 23:28:11 +00:00
allcontributors[bot]
474e958da6
docs: add tseeker as a contributor for bug, and test (#511)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-08-20 23:07:10 +00:00
allcontributors[bot]
cc552d1c3e
docs: add michaelze as a contributor for bug (#510)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-08-20 23:04:50 +00:00
Michael Iseli
a038fd3142
feat(vm): fix adding/removing hostpci devices forcing vm recreation (#504)
* feat(vm): fix adding/removing hostpci devices forcing vm recreation

* fix: hostpci device removal

* fix: hostpci jason unmarshalling but introduced in #500

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-08-20 19:01:19 -04:00
Risto Oikarinen
26970541c4
feat(vm): support PCI device resource mapping (#500)
* feat(vm): support PCI device resource mapping

* fix: linter error

* fix: minor cleanup

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-08-20 18:00:11 -04:00