0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 02:31:10 +00:00
Commit Graph

1781 Commits

Author SHA1 Message Date
renovate[bot]
65f35f31c1
chore(deps): update golang.org/x/exp digest (701f63a → 225e2ab) (#1570)
| datasource | package          | from                               | to                                 |
| ---------- | ---------------- | ---------------------------------- | ---------------------------------- |
| go         | golang.org/x/exp | v0.0.0-20240909161429-701f63a606c0 | v0.0.0-20241004190924-225e2abe05e6 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04 18:47:25 -04:00
allcontributors[bot]
c4d3c121e1
docs: add camaeel as a contributor for bug (#1573)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-10-04 18:47:11 -04:00
allcontributors[bot]
ea1dfafaea
docs: add nrsmac as a contributor for doc (#1568)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-10-04 18:37:35 -04:00
renovate[bot]
4379fcafa9
chore(deps): update module golang.org/x/net (v0.29.0 → v0.30.0) (#1572)
| datasource | package          | from    | to      |
| ---------- | ---------------- | ------- | ------- |
| go         | golang.org/x/net | v0.29.0 | v0.30.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04 22:37:26 +00:00
Noah Schill
77634cbd59
fix:typo in container guide (#1566)
fix: updated typo from `proxmox_virtual_environment_download_file` to `proxmox_virtual_environment_download_file` in docs/resources/virtual_environment_container.md

Signed-off-by: Noah Schill <noahrschill@gmail.com>
2024-10-04 18:33:56 -04:00
bpg-autobot[bot]
e2651e0854
chore(main): release 0.66.0 (#1551)
Co-authored-by: bpg-autobot[bot] <155200059+bpg-autobot[bot]@users.noreply.github.com>
2024-10-03 20:23:41 -04:00
Pavel Boldyrev
72f7cb81a8
feat(provider): reliable sequential and random vm_id generation (#1557)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-10-03 20:18:37 -04:00
allcontributors[bot]
55bacffc38
docs: add seankoneill as a contributor for doc (#1564)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-10-03 21:41:11 +00:00
Sean O'Neill
72665830be
fix(docs): correct url for template download in container resource example (#1563)
Signed-off-by: Sean O'Neill <sean.kenneth.oneill@gmail.com>
2024-10-03 17:39:28 -04:00
allcontributors[bot]
739059f03f
docs: add vanillaSprinkles as a contributor for code, and ideas (#1561)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-10-03 04:48:21 +00:00
vanillaSprinkles
eb2f36be21
feat(provider): add support for pre(external) auth'd session tokens (#1441)
* feat(provider): add support for pre(external) auth'd session tokens

adds provider config inputs:
  - env vars: PROXMOX_VE_AUTH_PAYLOAD; PROXMOX_VE_AUTH_TICKET with PROXMOX_VE_CSRF_PREVENTION_TOKEN
  - provider-config: auth_payload; auth_ticket with csrf_prevention_token

Signed-off-by: vanillaSprinkles <vanillaSprinkles@users.noreply.github.com>

* add //nolint to "todo" comments/questions and lll for build to pass; add flags to terraform-plugin-docs

Signed-off-by: vanillaSprinkles <vanillaSprinkles@users.noreply.github.com>

* address first iteration of comments: remove auth-payload, improve index.md

Signed-off-by: vanillaSprinkles <vanillaSprinkles@users.noreply.github.com>

* refactor credentials using struct composition, other minor cleanups

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

* fix linter error

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

* fix make docs, add terraform to handle fmt

Signed-off-by: vanillaSprinkles <vanillaSprinkles@users.noreply.github.com>

---------

Signed-off-by: vanillaSprinkles <vanillaSprinkles@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-10-02 20:40:33 -04:00
allcontributors[bot]
bf2d2dc396
docs: add jordangarside as a contributor for code (#1559)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-10-01 12:40:06 -04:00
Jordan Garside
18a7f8ec35
fix(provider): handle IPv6 in ssh client (#1558)
fix(vm): handle IPv6 in ssh client

Signed-off-by: Jordan Garside <jordangarside@Jordans-MacBook-Pro.local>
2024-10-01 12:36:11 -04:00
Pavel Boldyrev
d226b59e2e
feat(vm): add support for watchdog (#1556)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-30 11:14:55 -04:00
renovate[bot]
471c5f23bb
chore(ci): update actions/checkout action (v4.1.7 → v4.2.0) (#1555)
| datasource  | package          | from   | to     |
| ----------- | ---------------- | ------ | ------ |
| github-tags | actions/checkout | v4.1.7 | v4.2.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-28 00:23:04 +00:00
renovate[bot]
049362a94e
chore(ci): update peter-evans/create-issue-from-file action (v5.0.0 → v5.0.1) (#1554)
| datasource  | package                            | from   | to     |
| ----------- | ---------------------------------- | ------ | ------ |
| github-tags | peter-evans/create-issue-from-file | v5.0.0 | v5.0.1 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 01:31:22 +00:00
Pavel Boldyrev
89d72cd37f
fix(lxc): add new storage-backed mount point to existing container (#1553)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-23 21:47:43 -04:00
allcontributors[bot]
6f6e4a923c
docs: add andreaswolf as a contributor for bug (#1552)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-09-23 21:02:52 -04:00
Pavel Boldyrev
0b29ae281e
fix(docs): document specifics of "ballooning device" in the `vm.memor… (#1550)
fix(docs): document specifics of "ballooning device" in the `vm.memory` block

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-24 00:12:20 +00:00
bpg-autobot[bot]
40373922fc
chore(main): release 0.65.0 (#1528)
Co-authored-by: bpg-autobot[bot] <155200059+bpg-autobot[bot]@users.noreply.github.com>
2024-09-21 20:02:42 -04:00
Pavel Boldyrev
14a62a712a
chore(lxc): update list of supported OS-es in operating_system.type (#1548)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-21 23:20:37 +00:00
Pavel Boldyrev
e23d2f375c
chore(docs): add example for host disk pass-through to VM (#1547)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-21 13:49:54 +00:00
renovate[bot]
b5a4e32d7a
chore(deps): update github.com/hashicorp/terraform-plugin-* (#1545)
| datasource | package                                         | from    | to      |
| ---------- | ----------------------------------------------- | ------- | ------- |
| go         | github.com/hashicorp/terraform-plugin-framework | v1.11.0 | v1.12.0 |
| go         | github.com/hashicorp/terraform-plugin-go        | v0.23.0 | v0.24.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-20 23:06:35 +00:00
Pavel Boldyrev
569db6df3b
fix(vm): handle more than 4 hostpci devices (#1543)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-20 19:04:45 -04:00
renovate[bot]
13ceab8205
chore(ci): update jetbrains/qodana-action action (v2024.1.9 → v2024.2.3) (#1544)
| datasource  | package                 | from      | to        |
| ----------- | ----------------------- | --------- | --------- |
| github-tags | JetBrains/qodana-action | v2024.1.9 | v2024.2.3 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-20 02:21:12 +00:00
Pavel Boldyrev
8f9b036857
chore(docs): improve network_linux_bridge documentation (#1538)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-16 22:32:05 +00:00
Pavel Boldyrev
44e2814adf
fix(file): respect download_file.override attr when checking for th… (#1537)
fix(file): respect `download_file.override` attr when checking for the file size change during update

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-16 22:02:25 +00:00
renovate[bot]
f1ce62eeeb
chore(docs): update terraform local (2.5.1 → 2.5.2) (#1535)
| datasource         | package         | from  | to    |
| ------------------ | --------------- | ----- | ----- |
| terraform-provider | hashicorp/local | 2.5.1 | 2.5.2 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-14 11:33:14 -04:00
renovate[bot]
a89cfbf045
chore(docs): update terraform tls (4.0.5 → 4.0.6) (#1536)
| datasource         | package       | from  | to    |
| ------------------ | ------------- | ----- | ----- |
| terraform-provider | hashicorp/tls | 4.0.5 | 4.0.6 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-14 11:32:59 -04:00
Pavel Boldyrev
f4ee6291cc
feat(vm): remove deprecated vga.enabled (#1533)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-11 22:20:29 +00:00
renovate[bot]
831207b0e3
chore(ci): update actions/create-github-app-token action (v1.10.4 → v1.11.0) (#1532)
| datasource  | package                         | from    | to      |
| ----------- | ------------------------------- | ------- | ------- |
| github-tags | actions/create-github-app-token | v1.10.4 | v1.11.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 22:12:03 +00:00
renovate[bot]
b96532f884
chore(deps): update golang.org/x/exp digest (e7e105d → 701f63a) (#1526)
| datasource | package          | from                               | to                                 |
| ---------- | ---------------- | ---------------------------------- | ---------------------------------- |
| go         | golang.org/x/exp | v0.0.0-20240904232852-e7e105dedf7e | v0.0.0-20240909161429-701f63a606c0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 00:58:21 +00:00
renovate[bot]
356c978ece
chore(deps): update module github.com/golangci/golangci-lint (v1.60.3 → v1.61.0) in /tools (#1527)
* chore(deps): update module github.com/golangci/golangci-lint (v1.60.3 → v1.61.0) in /tools

| datasource | package                           | from    | to      |
| ---------- | --------------------------------- | ------- | ------- |
| go         | github.com/golangci/golangci-lint | v1.60.3 | v1.61.0 |

* disable gosec: G115 linter

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-09-09 20:55:46 -04:00
bpg-autobot[bot]
36835fae57
chore(main): release 0.64.0 (#1503)
Co-authored-by: bpg-autobot[bot] <155200059+bpg-autobot[bot]@users.noreply.github.com>
2024-09-08 19:29:29 -04:00
Pavel Boldyrev
c20d79dfbe
fix(vm): cpu.architecture showed as new attribute at re-apply after creation (#1524)
Fix for another use case of mismanaged default value. This one was a bit trickier to spot as it triggered only when provider is authenticated using root@pam, as architecture change is allowed only for root.

Removing default value altogether, as the PVE API default for this attribute is an empty string.

VM2 resource will have no such issue, related: #1310, #1311

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-08 19:25:40 -04:00
Pavel Boldyrev
35b6571bf4
chore(vm): add acc test for no cdrom by default (#1523)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-08 22:14:16 +00:00
Pavel Boldyrev
84d55cf569
fix(docs): improve "SSH User" section describing sudo privileges (#1522)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-08 21:29:53 +00:00
renovate[bot]
a0bce8d699
chore(deps): update module golang.org/x/net (v0.28.0 → v0.29.0) (#1520)
| datasource | package          | from    | to      |
| ---------- | ---------------- | ------- | ------- |
| go         | golang.org/x/net | v0.28.0 | v0.29.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-08 11:13:47 -04:00
renovate[bot]
3951bdab4a
chore(deps): update module golang.org/x/crypto (v0.26.0 → v0.27.0) (#1519)
| datasource | package             | from    | to      |
| ---------- | ------------------- | ------- | ------- |
| go         | golang.org/x/crypto | v0.26.0 | v0.27.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-08 11:13:34 -04:00
renovate[bot]
273b3c93b3
chore(deps): update golang.org/x/exp digest (9b4947d → e7e105d) (#1517)
| datasource | package          | from                               | to                                 |
| ---------- | ---------------- | ---------------------------------- | ---------------------------------- |
| go         | golang.org/x/exp | v0.0.0-20240823005443-9b4947da3948 | v0.0.0-20240904232852-e7e105dedf7e |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-08 11:08:48 -04:00
Sven Greb
9b34c485ab
feat(lxc): Implement support for container's "protection flag" (#1512)
* feat(lxc): Implement support for container's "protection flag"

The Proxmox VE types already has the `protection` API parameter [1],
but it is not exposed to the provider users.
This pull request implements the missing logic to make it available in
order to allow to protect containers against deletion/update operations,
including the container's disks.

[1]: https://github.com/bpg/terraform-provider-proxmox/blob/v0.63.0/proxmox/nodes/containers/containers_types.go#L59

Relates GH-1126

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

* Update example/resource_virtual_environment_container.tf

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-09-08 11:08:13 -04:00
Björn Brauer
a6eb81af08
feat(acme): implement resources and data sources for ACME plugins (#1479)
* feat(acme): implement CRUD API for proxmox cluster ACME plugins

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* feat(acme): implement acme_plugins data source

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* feat(acme): implement acme_plugin data source

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* feat(acme): implement plugin resource creation

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* feat(acme): implement plugin resource read

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* feat(acme): implement plugin resource update

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* feat(acme): implement plugin resource deletion

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* feat(acme): implement plugin resource import

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* docs(acme): generate documentation

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* fix: apply suggestions from code review

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* refactor: extract common fields into BasePluginData

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* fix: restrict plugin resource to type=dns only

because type=standalone is not configurable and always enabled by
default.

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* fix: remove unused 'nodes' property

https://github.com/bpg/terraform-provider-proxmox/pull/1479/files#r1710916265

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* fix: remove "delete" property

https://github.com/bpg/terraform-provider-proxmox/pull/1479/files#r1710908809

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* feat: implement attribute deletion

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* fix: ignore empty lines in dns plugin data

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* fix: partial revert of code review suggestions

Joining the values with a string literal would produce \\n instead of \n
and splitting at \\n doesn't match a newline.

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* refactor: extract acme plugin models into separate file

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

* fix: format disable parameter as int

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>

---------

Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-09-08 10:54:16 -04:00
renovate[bot]
112f058e66
chore(ci): update actions/create-github-app-token action (v1.10.3 → v1.10.4) (#1518)
| datasource  | package                         | from    | to      |
| ----------- | ------------------------------- | ------- | ------- |
| github-tags | actions/create-github-app-token | v1.10.3 | v1.10.4 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 02:39:58 +00:00
renovate[bot]
9172ec6a9f
chore(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (v0.53.0 → v0.54.0) in /tools (#1509)
* chore(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp (v0.53.0 → v0.54.0) in /tools

| datasource | package                                                       | from    | to      |
| ---------- | ------------------------------------------------------------- | ------- | ------- |
| go         | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp | v0.53.0 | v0.54.0 |

* cleanup tools/go.mod

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-08-24 21:00:20 -04:00
renovate[bot]
0623bfd156
chore(deps): update golang.org/x/exp digest (0cdaa3a → 9b4947d) (#1506)
| datasource | package          | from                               | to                                 |
| ---------- | ---------------- | ---------------------------------- | ---------------------------------- |
| go         | golang.org/x/exp | v0.0.0-20240808152545-0cdaa3abc0fa | v0.0.0-20240823005443-9b4947da3948 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 02:46:49 -04:00
renovate[bot]
5707feab06
chore(deps): update module github.com/golangci/golangci-lint (v1.60.2 → v1.60.3) in /tools (#1507)
| datasource | package                           | from    | to      |
| ---------- | --------------------------------- | ------- | ------- |
| go         | github.com/golangci/golangci-lint | v1.60.2 | v1.60.3 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 02:46:35 -04:00
renovate[bot]
35cbe98d6b
chore(deps): update module github.com/golangci/golangci-lint (v1.60.1 → v1.60.2) in /tools (#1499)
* chore(deps): update module github.com/golangci/golangci-lint (v1.60.1 → v1.60.2) in /tools

| datasource | package                           | from    | to      |
| ---------- | --------------------------------- | ------- | ------- |
| go         | github.com/golangci/golangci-lint | v1.60.1 | v1.60.2 |

* fix linter errors

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-08-22 00:30:20 +00:00
bpg-autobot[bot]
f907ea4bf8
chore(main): release 0.63.0 (#1486)
Co-authored-by: bpg-autobot[bot] <155200059+bpg-autobot[bot]@users.noreply.github.com>
2024-08-20 23:09:14 -04:00
renovate[bot]
3f6bc5eba2
chore(ci): update hashicorp/setup-terraform action (v3.1.1 → v3.1.2) (#1498)
| datasource  | package                   | from   | to     |
| ----------- | ------------------------- | ------ | ------ |
| github-tags | hashicorp/setup-terraform | v3.1.1 | v3.1.2 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 03:00:57 +00:00
Pavel Boldyrev
abb0be4684
chore(example): update links to container images, use faster mirror (#1497)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-08-19 18:20:05 +00:00