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

1268 Commits

Author SHA1 Message Date
renovate[bot]
ce47411f99
chore(ci): update actions/create-github-app-token action (v1.9.3 → v1.10.0) (#1262)
* chore(ci): update jetbrains/qodana-action action (v2024.1.2 → v2024.1.3)

| datasource  | package                 | from      | to        |
| ----------- | ----------------------- | --------- | --------- |
| github-tags | JetBrains/qodana-action | v2024.1.2 | v2024.1.3 |

* chore(ci): update actions/create-github-app-token action (v1.9.3 → v1.10.0)

| datasource  | package                         | from   | to      |
| ----------- | ------------------------------- | ------ | ------- |
| github-tags | actions/create-github-app-token | v1.9.3 | v1.10.0 |

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-05 16:48:02 +00:00
renovate[bot]
f08d139ba8
chore(ci): update jetbrains/qodana-action action (v2024.1.2 → v2024.1.3) (#1261)
| datasource  | package                 | from      | to        |
| ----------- | ----------------------- | --------- | --------- |
| github-tags | JetBrains/qodana-action | v2024.1.2 | v2024.1.3 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-05 16:47:45 +00:00
renovate[bot]
452b24b36b
chore(deps): update module github.com/golangci/golangci-lint (v1.57.2 → v1.58.0) in /tools (#1258)
* chore(ci): update actions/create-github-app-token action (v1.9.3 → v1.10.0)

| datasource  | package                         | from   | to      |
| ----------- | ------------------------------- | ------ | ------- |
| github-tags | actions/create-github-app-token | v1.9.3 | v1.10.0 |

* chore(deps): update module github.com/golangci/golangci-lint (v1.57.2 → v1.58.0) in /tools

| datasource | package                           | from    | to      |
| ---------- | --------------------------------- | ------- | ------- |
| go         | github.com/golangci/golangci-lint | v1.57.2 | v1.58.0 |

* disable picky linters

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-05-04 16:21:16 -04:00
Pavel Boldyrev
b3caf6af82
fix: use raw file format for efi_disk by default (#1249)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-05-01 01:01:23 +00:00
bpg-autobot[bot]
8d6a7d70d4
chore(main): release 0.55.0 (#1233)
Co-authored-by: bpg-autobot[bot] <155200059+bpg-autobot[bot]@users.noreply.github.com>
2024-04-29 22:35:37 -04:00
Pavel Boldyrev
b642b605ca
misc: increase acceptance tests timeout
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-29 22:22:56 -04:00
renovate[bot]
b9429cbd68
chore(deps): update module github.com/hashicorp/terraform-plugin-docs (v0.19.1 → v0.19.2) in /tools (#1247)
| datasource | package                                    | from    | to      |
| ---------- | ------------------------------------------ | ------- | ------- |
| go         | github.com/hashicorp/terraform-plugin-docs | v0.19.1 | v0.19.2 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-29 20:41:16 -04:00
DevMiner
bd195d6606
feat(vm): add initial support for IDE (#1237)
* feat(vm): add initial support for IDE

Very broken, doesn't properly work at the moment, WIP

Signed-off-by: DevMiner <devminer@devminer.xyz>

* add acceptance test for ide disks, fixed few issues

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

* update VM example

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: DevMiner <devminer@devminer.xyz>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-29 20:11:07 -04:00
Sven Greb
2eb36f4134
feat(cluster): Extend the available attributes for the proxmox_virtual_environment_cluster_options resource (#1241)
This commit implements the `next-id` and `notify` PVE API cluster
options.

The `next-id` attribute allows to control the range for the next free
VM ID. It is implemented as object and can be used in the
`proxmox_virtual_environment_cluster_options` resource and can be used
like this:

```terraform
resource "proxmox_virtual_environment_cluster_options" "options" {
  next_id = {
    lower = 200
    upper = 299
  }
}
```

Note that the minimum and maximum values are unfortunately not
documented in the PVE API explorer but can be found in the web UI where
the form fields have validations!

The `notify` PVE API attribute is also an object that has all the PVE
API fields:

```terraform
resource "proxmox_virtual_environment_cluster_options" "options" {
  notify = {
    ha_fencing_mode            = "never"
    ha_fencing_target          = "default-matcher"
    package_updates            = "always"
    package_updates_target     = "default-matcher"
    package_replication        = "always"
    package_replication_target = "default-matcher"
  }
}
```terraform

Note that the "fencing" attribute names have been adjusted to better
reflect their meaning since they are scoped to the Proxmox VE HA fencing
feature [1]. All attributes with the `_target` suffix are names for the
Proxmox VE notifications matchers [2].

[1]: https://pve.proxmox.com/wiki/Fencing
[2]: https://pve.proxmox.com/pve-docs/chapter-notifications.html#notification_matchers

---------

Signed-off-by: Sven Greb <development@svengreb.de>
2024-04-29 20:08:44 -04:00
allcontributors[bot]
43bcc84c53
docs: add niektoniekde as a contributor for financial (#1244)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-04-27 13:20:04 +00:00
allcontributors[bot]
f2b7005f1f
docs: add svengreb as a contributor for code (#1243)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-04-27 09:14:48 -04:00
Pavel Boldyrev
decf56a707
misc: run qodana only on main branch
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-27 06:43:46 -04:00
renovate[bot]
e13bb03dda
chore(deps): update tools (#1238)
| datasource | package                                                       | from    | to      |
| ---------- | ------------------------------------------------------------- | ------- | ------- |
| go         | github.com/hashicorp/terraform-plugin-docs                    | v0.19.0 | v0.19.1 |
| go         | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp | v0.50.0 | v0.51.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-27 06:42:16 -04:00
renovate[bot]
0839c92ba6
chore(ci): update lycheeverse/lychee-action action (v1.9.3 → v1.10.0)
| datasource  | package                   | from   | to      |
| ----------- | ------------------------- | ------ | ------- |
| github-tags | lycheeverse/lychee-action | v1.9.3 | v1.10.0 |
2024-04-27 05:23:11 +00:00
renovate[bot]
4da06ecb94
chore(ci): update jetbrains/qodana-action action (v2024.1.1 → v2024.1.2)
| datasource  | package                 | from      | to        |
| ----------- | ----------------------- | --------- | --------- |
| github-tags | JetBrains/qodana-action | v2024.1.1 | v2024.1.2 |
2024-04-27 05:21:09 +00:00
renovate[bot]
229883b110
chore(ci): update actions/checkout action (v4.1.3 → v4.1.4)
| datasource  | package          | from   | to     |
| ----------- | ---------------- | ------ | ------ |
| github-tags | actions/checkout | v4.1.3 | v4.1.4 |
2024-04-27 05:20:50 +00:00
renovate[bot]
84778a3965
chore(ci): update hashicorp/setup-terraform action (v3.0.0 → v3.1.0)
| datasource  | package                   | from   | to     |
| ----------- | ------------------------- | ------ | ------ |
| github-tags | hashicorp/setup-terraform | v3.0.0 | v3.1.0 |
2024-04-25 10:00:29 +00:00
renovate[bot]
bb44a8d844
chore(ci): update actions/checkout action (v4.1.1 → v4.1.3)
| datasource  | package          | from   | to     |
| ----------- | ---------------- | ------ | ------ |
| github-tags | actions/checkout | v4.1.1 | v4.1.3 |
2024-04-25 09:58:52 +00:00
Pavel Boldyrev
a55b0c1013
misc: bump qodana to v2024.1.1
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-24 21:14:48 -04:00
Pavel Boldyrev
efd0d7b466
chore: remove unused code (#1236)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-24 20:52:41 -04:00
Pavel Boldyrev
dd7bcc700d
misc: setup qodana.cloud
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-23 22:46:05 -04:00
Pavel Boldyrev
7209fe0321
chore(vm2): experimental support for clone and inherited attributes (#1235)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-24 02:00:11 +00:00
renovate[bot]
ee939a38a3
chore(deps): update go (1.22.0 → 1.22.2) (#1234)
| datasource     | package | from   | to     |
| -------------- | ------- | ------ | ------ |
| golang-version | go      | 1.22.0 | 1.22.2 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-21 13:37:54 +00:00
Pavel Boldyrev
961404dd0b
chore(vm2): experiment with sets, add tags support (#1232)
* chore(vm2): experiment with sets, add `tags` support

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-21 00:15:42 +00:00
bpg-autobot[bot]
c2bb48ea21
chore(main): release 0.54.0 (#1217)
Co-authored-by: bpg-autobot[bot] <155200059+bpg-autobot[bot]@users.noreply.github.com>
2024-04-19 18:32:20 -04:00
Pavel Boldyrev
d8202dd7a1
chore(vm2): initial experimental VM resource implementation using Plugin Framework (#1230)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-19 21:57:12 +00:00
renovate[bot]
5a606ec18e
chore(deps): update github.com/hashicorp/terraform-plugin-* (#1228)
| datasource | package                                         | from    | to      |
| ---------- | ----------------------------------------------- | ------- | ------- |
| go         | github.com/hashicorp/terraform-plugin-framework | v1.7.0  | v1.8.0  |
| go         | github.com/hashicorp/terraform-plugin-go        | v0.22.1 | v0.22.2 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 12:54:43 -04:00
renovate[bot]
938784531f
chore(deps): update module github.com/avast/retry-go/v4 (v4.5.1 → v4.6.0) (#1229)
* chore(deps): update module github.com/avast/retry-go/v4 (v4.5.1 → v4.6.0)

| datasource | package                      | from   | to     |
| ---------- | ---------------------------- | ------ | ------ |
| go         | github.com/avast/retry-go/v4 | v4.5.1 | v4.6.0 |

* switch to `retry.UntilSucceeded()`

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-19 16:48:38 +00:00
renovate[bot]
83d835ff3e
chore(deps): update golang.org/x/exp digest (93d18d7 → fe59bbe) (#1226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-19 16:43:29 +00:00
renovate[bot]
c7e36ee1a1
chore(deps): update go (1.22.0 → 1.22.2) in /tools (#1227)
* chore(deps): update tools

| datasource     | package                                    | from    | to      |
| -------------- | ------------------------------------------ | ------- | ------- |
| go             | github.com/hashicorp/terraform-plugin-docs | v0.18.0 | v0.19.0 |
| golang-version | go                                         | 1.22.0  | 1.22.2  |

* bump toolchain

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-19 16:42:00 +00:00
Pavel Boldyrev
0c9c2066fd
fix(vm,lxc,file): improve timeouts handling (#1222)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-19 12:38:16 -04:00
dependabot[bot]
7e4710d3f0
chore(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 in /tools (#1225)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 12:01:00 -04:00
Pavel Boldyrev
653e6f25f8
chore(vm): fix acceptance test for hardware mapping (#1223)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-18 20:27:59 +00:00
Sven Greb
76c1c2282b
feat(cluster): Implement initial support for "hardware mappings" (#1213)
* feat(cluster): Implement initial support for "hardware mappings"

Right now it is alredy possible to use a mapped resource [1], but there
is no dedicated `proxmox_virtual_environment_cluster_hardware_mapping`
resource but this step must still be done manually (or automated through
other ways that interact with the Proxmox API).

This commit implements support for "hardware mapping" resources and data
sources for the, currently, available bus types PCI and USB, based on
the Proxmox VE API documentations [2].

There are some "specialities" in these resources and data sources:

1. The Proxmox VE API attribute, but this implementations names it
   "comment" since this naming is generally across the Proxmox VE web UI
   and API documentations. This still follows the Terraform
   "best practices" [3] as it improves the user experience by matching
   the field name to the naming used in the human-facing interfaces.

2. Like in point 1, the name of the attribute of "node checks
   diagnostics" for USB hardware mappings is "errors" in the Proxmox VE
   API while it is "checks" for hardware mappings of type PCI.
   The second naming pattern is also generally used across the
   Proxmox VE web UI and API documentations, including the "check_node"
   attribute that is also implemented in the
   "proxmox_virtual_environment_hardware_mappings" data source.
   Therefore, this implementation named both attributes "checks" which
   still follows the Terraform "best practices" [3] as it improves the
   user experience by matching the field name to the naming used in the
   human-facing interfaces.
3. This implmenetation comes with the "unique" feature of allowing
   comments (named "descriptions" by the Proxmox VE API) for an entry in
   a device map which is not possible through the web UI at all but only
   adding a comment for the whole mapping entry instead.

Note that this implementation also adds another point in the
"Known Issues" documentation since it is only possible to map a
PCI/USB device using the `root` PAM account, but this is still better
than having to manually configure it through the web UI or by
interacting with the Proxmox VE API on other ways.

[1]: https://github.com/bpg/terraform-provider-proxmox/pull/500
[2]: https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/mapping/pci
[3]: https://developer.hashicorp.com/terraform/plugin/best-practices/hashicorp-provider-design-principles#resource-and-attribute-schema-should-closely-match-the-underlying-api

Signed-off-by: Sven Greb <development@svengreb.de>

* fix linter

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: Sven Greb <development@svengreb.de>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-18 16:00:51 -04:00
Pavel Boldyrev
163a773088
chore(code): reorganize HA & node network code (#1218)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-16 00:08:14 +00:00
renovate[bot]
1bf3bf0f68
chore(deps): update tools (#1216)
| datasource     | package                                    | from    | to      |
| -------------- | ------------------------------------------ | ------- | ------- |
| go             | github.com/hashicorp/terraform-plugin-docs | v0.18.0 | v0.19.0 |
| golang-version | go                                         | 1.22.0  | 1.22.2  |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 16:46:35 -04:00
Pavel Boldyrev
ad036a67e8
fix(vm): state drift due to disk re-ordering (#1215)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-15 16:45:38 -04:00
bpg-autobot[bot]
8d1a5415ae
chore(main): release 0.53.1 (#1208)
Co-authored-by: bpg-autobot[bot] <155200059+bpg-autobot[bot]@users.noreply.github.com>
2024-04-11 23:19:17 -04:00
Pavel Boldyrev
628d0f15dd
fix(vm): regression: force VM recreation due to initialization.upgrade when it is not in the plan (#1209)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-12 03:13:29 +00:00
allcontributors[bot]
9b06405157
docs: add tyxieblub as a contributor for code (#1210)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-04-11 23:11:40 -04:00
joris
46d323d31b
fix(vm): error 'resizing of efidisks is not supported' when clonning a VM with re-defined efi_disk (#1206)
* fix(vm): compare efiType value instead of address

Signed-off-by: tyxieblub <5111464+tyxieblub@users.noreply.github.com>

* update example to reproduce the error case

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: tyxieblub <5111464+tyxieblub@users.noreply.github.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-11 23:09:56 -04:00
dependabot[bot]
19a13bee0a
chore(deps): bump github.com/sigstore/cosign/v2 from 2.2.3 to 2.2.4 in /tools (#1207)
chore(deps): bump github.com/sigstore/cosign/v2 in /tools

Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.2.3...v2.2.4)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-11 21:13:04 -04:00
bpg-autobot[bot]
8187d2eaea
chore(main): release 0.53.0 (#1193)
Co-authored-by: bpg-autobot[bot] <155200059+bpg-autobot[bot]@users.noreply.github.com>
2024-04-10 22:40:58 -04:00
Pavel Boldyrev
59972dc1b5
feat(vm): add support for initialization.upgrade attribute (#1203)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-10 23:43:39 +00:00
Pavel Boldyrev
8515be686c
misc: do not auto-dispatch acceptance tests
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-09 22:39:10 -04:00
renovate[bot]
ead36dcafb
chore(deps): update golang.org/x/exp digest (c0f41cb → 93d18d7) (#1201)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 02:12:52 +00:00
Pavel Boldyrev
c14b7ebe1d
chore(docs): minor documentation updates (#1200)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-10 02:07:22 +00:00
Pavel Boldyrev
ae88cf603d
fix(firewall): remove strict validation for rule.iface attribute (#1199)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-10 01:46:53 +00:00
Pavel Boldyrev
b4174a7c82
fix(vm): panic if initialization.user_account_keys contains null (#1197)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-09 02:48:07 +00:00
Pavel Boldyrev
c27311183a
fix(vm): panic if numa block is empty (#1196)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-09 02:35:25 +00:00