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

1112 Commits

Author SHA1 Message Date
DanielHabenicht
f1450cb6dd
fix(docs): add more details about local testing of the provider (#698)
* fix(docs): add local testing part

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>

* fix code format

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>

* update manual testing instructions

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

* fix terraform.rc ref for windows

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

---------

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-12-04 22:33:19 -05:00
allcontributors[bot]
0cc3358330
docs: add geoshapka as a contributor for bug, and test (#764)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-12-04 21:55:28 -05:00
Rui Lopes
66bba2a027
feat(vm): Add support for setting the VM TPM State device (#743)
* feat(vm): add support for setting the vm tpm state

Signed-off-by: Rui Lopes <rgl@ruilopes.com>

* feat(vm): add encoding / unmarshalling for CustomTPMState

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

* feat(vm): fix typos

Signed-off-by: Rui Lopes <rgl@ruilopes.com>

* feat(vm): fix vmGetTPMState

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

* feat(docs): add the vm tpm_state documentation

Signed-off-by: Rui Lopes <rgl@ruilopes.com>

* feat(docs): add the vm tpm_state example

Signed-off-by: Rui Lopes <rgl@ruilopes.com>

---------

Signed-off-by: Rui Lopes <rgl@ruilopes.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-12-04 21:53:33 -05:00
Pavel Boldyrev
d1f2093d39
fix(lxc): description is always showed as changed (#762)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-12-04 21:37:36 -05:00
GitHub Bot
6747dafac7
chore(main): release 0.39.0 (#746)
Signed-off-by: GitHub Bot <48106979+bpg-bot@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-30 12:48:56 -05:00
Pavel Boldyrev
b54a39315e
doc: add Elias Alvord as a sponsor (#757)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-30 04:34:48 +00:00
Pavel Boldyrev
728eceb5e9
fix(vm): unable to clone as non-root due to hook_script (#756)
* fix(vm): unable to clone as non-root due to `hook_script`

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>

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-29 23:24:16 -05:00
Pavel Boldyrev
cd24cf238c
fix(cluster): can't read back cluster options on PVE 8.1 (#755)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-29 18:12:21 -05:00
allcontributors[bot]
b2782375e2
docs: add dandaolrian as a contributor for code, and test (#754)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-29 17:52:26 -05:00
dandaolrian
d16b8e1696
fix(vm): resize image once imported (#753)
fix(vm): Resize image once imported #737

Signed-off-by: dandalorinan <daniel_rees@web.de>
2023-11-29 17:51:19 -05:00
dependabot[bot]
a4ac84a78c
chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.16.0 (#752) 2023-11-28 21:14:53 -05:00
allcontributors[bot]
ab45a56928
docs: add midoriiro as a contributor for bug (#751)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-28 17:35:17 -05:00
Pavel Boldyrev
a6fa40e177
fix(vm,lxc): file ID validator to allow . in a storage name (#750)
fix(vm,lxc): file ID validator to allow `.` in a storage  name

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-28 17:32:25 -05:00
allcontributors[bot]
298a6ed501
docs: add rgl as a contributor for code (#749)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-28 15:53:14 -05:00
Rui Lopes
13e911cf59
feat(provider): modify the proxmox api client to support connecting through an https proxy (#748)
feat: modify the proxmox api client to support connecting through an https proxy

to use, set the https_proxy environment variable before running terraform

for example:

export https_proxy=http://localhost:8080

Signed-off-by: Rui Lopes <rgl@ruilopes.com>
2023-11-28 15:51:38 -05:00
Pavel Boldyrev
d5193b3e9b
fix(docs): improve documentation for container feature flags (#747)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-28 14:30:01 -05:00
Pavel Boldyrev
e2717a9a9e
feat(docs): add initial mini-howtos for VM (#730)
* chore(docs): minor fixes and linting

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

* chore(docs): add VM mini-howtos with examples

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

* address peer-review feedback

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

* vscode settings

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

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-28 12:38:47 -05:00
dependabot[bot]
9016641c34
chore(deps): bump github.com/brianvoe/gofakeit/v6 from 6.24.0 to 6.25.0 (#741)
Bumps [github.com/brianvoe/gofakeit/v6](https://github.com/brianvoe/gofakeit) from 6.24.0 to 6.25.0.
- [Release notes](https://github.com/brianvoe/gofakeit/releases)
- [Commits](https://github.com/brianvoe/gofakeit/compare/v6.24.0...v6.25.0)

---
updated-dependencies:
- dependency-name: github.com/brianvoe/gofakeit/v6
  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-11-28 12:17:58 -05:00
allcontributors[bot]
2c59842c0d
docs: add simplysoft as a contributor for code (#745)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-28 12:08:01 -05:00
simplysoft
0eb04b2a25
feat(vm): Support hook script (#733)
for vms, relates to #570

Signed-off-by: Simplysoft GmbH <1588210+simplysoft@users.noreply.github.com>
2023-11-28 12:06:11 -05:00
GitHub Bot
a96a3a9641
chore(main): release 0.38.1 (#729)
Signed-off-by: GitHub Bot <48106979+bpg-bot@users.noreply.github.com>
2023-11-17 18:42:31 -05:00
Pavel Boldyrev
b429f95ca5
fix(vm): type error when unmarshalling GetResponseData.data.memory (#728)
* fix(vm): type error when unmarshalling `GetResponseData.data.memory`

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

* linter

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

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-17 18:39:13 -05:00
allcontributors[bot]
4faf993b82
docs: add dark-vex as a contributor for code (#726)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-16 21:27:34 -05:00
GitHub Bot
9e9d892b48
chore(main): release 0.38.0 (#714)
Signed-off-by: GitHub Bot <48106979+bpg-bot@users.noreply.github.com>
2023-11-16 21:25:43 -05:00
DanielHabenicht
3280370155
feat(file): rename content type backup -> dump for backups (#724)
specify right content type for backups

This now matches with the folder used by proxmox for backups
Also update documentation to reflect the change

Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>
2023-11-16 20:54:48 -05:00
Daniele De Lorenzi
0eeb7a7fd9
feat(vm): Add Win 11 as os type (#720) 2023-11-16 13:55:34 +00:00
dependabot[bot]
6c83e07bdf
chore(deps): bump github.com/hashicorp/terraform-plugin-go from 0.19.0 to 0.19.1 (#723)
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.19.0 to 0.19.1.
- [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.19.0...v0.19.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-go
  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-11-16 01:44:33 +00:00
dependabot[bot]
b0fea6d681
chore(deps): bump github.com/avast/retry-go/v4 from 4.5.0 to 4.5.1 (#722)
Bumps [github.com/avast/retry-go/v4](https://github.com/avast/retry-go) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/avast/retry-go/releases)
- [Commits](https://github.com/avast/retry-go/compare/4.5.0...4.5.1)

---
updated-dependencies:
- dependency-name: github.com/avast/retry-go/v4
  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-11-15 20:43:16 -05:00
dependabot[bot]
4898d4d80c
chore(deps): bump google-github-actions/release-please-action from 3.7.12 to 3.7.13 (#716) 2023-11-13 16:24:57 -05:00
Pavel Boldyrev
2bbf228eec
fix(vm): memory size datatype conversion causing null on read (#715)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-13 02:47:47 +00:00
DanielHabenicht
5fe6892724
fix(provider): maxint for storage and vms (#694)
* fix(provider): use int64 for vm and disk storage

Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>

* revert changes for memory

Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>

* revert changes for memory

Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>

* fix test

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

* fix int -> int64 conversion for disk size

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

---------

Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-12 12:17:35 -05:00
GitHub Bot
74ddd82550
chore(main): release 0.37.1 (#682)
Signed-off-by: GitHub Bot <48106979+bpg-bot@users.noreply.github.com>
2023-11-11 21:22:36 -05:00
TheNotary
0bf3a2aea3
chore(docs): update hostpci id to mentions requirement around root user (#710)
Signed-off-by: TheNotary <799247+TheNotary@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-12 02:03:38 +00:00
allcontributors[bot]
fb249bfdb9
docs: add DanielHabenicht as a contributor for code (#713)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-11 20:55:00 -05:00
DanielHabenicht
e10b4b5617
fix(file): display warning if directory is not found (#703)
fix: display warning if directory is not found

Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-11 20:52:08 -05:00
DanielHabenicht
5bf9d1b9da
chore(build): add devcontainer (#699)
* chore: add devcontainer spec

* add post create command

* use golang base

* add sign off workaround

* automatically sign off

* fix missing comma

* fix unset of env vars

* fix github envvars

* automatically sign off

---------

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-11 20:48:54 -05:00
allcontributors[bot]
18a7c39c9a
docs: add DanielHabenicht as a contributor for doc (#712)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-11 20:12:43 -05:00
DanielHabenicht
e45c1c8126
fix(docs): add SSH info box to ressources needing it (#690)
* Update virtual_environment_file.md
* Update proxmox_virtual_environment_file readme

Signed-off-by: DanielHabenicht <daniel-habenicht@outlook.de>

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-11 20:11:16 -05:00
dependabot[bot]
817e43c912
chore(deps): bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.29.0 to 2.30.0 (#708)
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.29.0 to 2.30.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.29.0...v2.30.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-11-10 01:59:52 +00:00
dependabot[bot]
3e6fe4db55
chore(deps): bump github.com/sigstore/cosign/v2 from 2.0.3-0.20230523133326-0544abd8fc8a to 2.2.1 in /tools (#705)
* chore(deps): bump github.com/sigstore/cosign/v2 in /tools

Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.0.3-0.20230523133326-0544abd8fc8a to 2.2.1.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/commits/v2.2.1)

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

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

* override sec. vuln. replace go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp => go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-10 01:58:15 +00:00
dependabot[bot]
48c89ffe13
chore(deps): bump github.com/goreleaser/goreleaser from 1.21.2 to 1.22.1 in /tools (#709)
* chore(deps): bump github.com/goreleaser/goreleaser in /tools

Bumps [github.com/goreleaser/goreleaser](https://github.com/goreleaser/goreleaser) from 1.21.2 to 1.22.1.
- [Release notes](https://github.com/goreleaser/goreleaser/releases)
- [Changelog](https://github.com/goreleaser/goreleaser/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/goreleaser/goreleaser/compare/v1.21.2...v1.22.1)

---
updated-dependencies:
- dependency-name: github.com/goreleaser/goreleaser
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* override sec. vuln. github.com/nats-io/nkeys v0.4.6

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-09 20:49:51 -05:00
Oto Petřík
a586d0381e
fix(provider): do not blindly use first IP for SSH (#704)
For SSH access, try in order:
- IPv4 address of the interface with IPv4 Gateway (if there is one)
- IPv6 address of the interface with IPv6 Gateway (if there is one)
- fallback to the first interface with IPv4 address

Signed-off-by: Oto Petřík <oto.petrik@gmail.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-10 01:19:09 +00:00
allcontributors[bot]
d2b8ce1a7d
docs: add TheNotary as a contributor for doc (#706)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-09 18:51:47 -05:00
TheNotary
d61cdc2b5c
chore(docs): update VM ip address to mention the CIDR suffic requirement (#697)
docs: update VM ip address to mention the CIDR suffic requirement

Signed-off-by: TheNotary <799247+TheNotary@users.noreply.github.com>
2023-11-09 18:44:11 -05:00
Pavel Boldyrev
64c67d9473
fix(storage): unmarshal error when list storage containing large files (#688)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-06 00:52:37 +00:00
allcontributors[bot]
e89d53b41f
docs: add DanielHabenicht as a contributor for bug (#689)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-05 19:51:15 -05:00
Pavel Boldyrev
3f582d8163
fix(provider): sanitize PVE endpoint value (#686)
Ignore `/api2/json` path in case it is present in the endpoint.

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-06 00:30:43 +00:00
Pavel Boldyrev
3fd6b6b2ce
fix(vm): update validation and docs for machine attribute (#681)
* fix(vm): update validation and docs for `machine` attribute.

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

* chore: remove certificate resource from acceptance tests

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

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-05 22:49:01 +00:00
allcontributors[bot]
a8e8ad73ed
docs: add windowsrefund as a contributor for test (#684)
* 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-11-05 22:47:35 +00:00
allcontributors[bot]
e22d25e9ce
docs: add Fabiosilvero as a contributor for test (#683)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-11-05 17:44:56 -05:00