0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-03 12:02:57 +00:00
Commit Graph

897 Commits

Author SHA1 Message Date
dependabot[bot]
170ec8ad92
chore(deps): bump github.com/hashicorp/terraform-plugin-log from 0.8.0 to 0.9.0 (#362) 2023-06-05 18:23:23 +00:00
dependabot[bot]
46e0f8f6e7
chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#361) 2023-06-05 14:20:50 -04:00
Pavel Boldyrev
8c1f246b5a
fix(firewall): Improve firewall resources argument validation (#359)
Make sure VM / Container rules, SGs, IPSets are always include `node_name` along with `vm_id`, `container_id`.
2023-06-02 06:38:27 -04:00
Pavel Boldyrev
9587c6383c
chore(doc): project documentation update (#356) 2023-06-01 11:48:41 +00:00
GitHub Bot
e8a77734e0
chore(main): release 0.21.0 (#348) 2023-05-31 21:22:56 -04:00
Pavel Boldyrev
80c94a5126
feat(v): Add ability to override node IP used for SSH connection (#355)
* feat(v): Add ability to override node IP used for SSH connection

* add documentation
2023-05-31 21:15:48 -04:00
Oto Petřík
e15c4a6784
fix(vm): Make mac_address computed, fix #339 (#354)
Fields `network_interface_names`, `ipv4_addresses` and `ipv6_addresses`
are sometimes be marked `computed` again, using `CustomizeDiff`.
Changes in `VMStarted` or `VMNetworkDevice` attributes invalidate
those values. Marking fields `computed` again avoids stale values.

`network_device` configuration block without `mac_address` results
in MAC address set to its default value (an empty string).
Terraform state expects `mac_address` to be an empty string, server
provides the actual (random) MAC address of the network device.
Terraform detects there are changes to be made, but because of
`DiffSuppressFunc` on `mac_address` they are hidden from the user,
but not from d.HasChange(mkResourceVirtualEnvironmentVMNetworkDevice)

By making `mac_address` also `computed`, the server-generated MAC
address is stored locally, avoiding spurious changes that trigger
re-computation of `network_interface_names`, `ipv4_addresses` and
`ipv6_addresses`.
2023-05-31 21:12:27 -04:00
Pavel Boldyrev
ab54aa1092
feat(core): Add API Token authentication (#350)
* feat(core): Add API Token authentication

* fix linter errrors

* update docs
2023-05-29 21:56:21 -04:00
dependabot[bot]
6e593607bb
chore(deps): bump github.com/sigstore/rekor from 1.1.1 to 1.2.0 in /tools (#349)
chore(deps): bump github.com/sigstore/rekor in /tools

Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/sigstore/rekor/releases)
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/rekor/compare/v1.1.1...v1.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-26 17:44:58 -04:00
Pavel Boldyrev
1f006aa82b
feat: API client cleanup and refactoring (#323)
* cleanup 1

* continue refactoring

* more refactoring

* move VMs under nodes

* move container and other apis under nodes

* cleanups

* enabled revive.exported linter & add comments to exported stuff

* enable godot linter

* enable wsl linter

* enable thelper linter

* enable govet linter

* cleanup after rebase

* cleanup after rebase

* extract SSH ops into a separate interface

* fix linter error

* move ssh code to its own package

* cleaning up VirtualEnvironmentClient receivers

* on the finish line

* not sure what else I forgot... 🤔

* fix ssh connection and upload

* renaming client interfaces

* final cleanups
2023-05-26 01:32:51 +00:00
dependabot[bot]
23585570ab
chore(deps): bump github.com/goreleaser/nfpm/v2 from 2.28.0 to 2.29.0 in /tools (#347) 2023-05-24 20:03:38 -04:00
GitHub Bot
b2b18470f9
chore(main): release 0.20.1 (#346) 2023-05-23 02:14:17 +00:00
Oto Petřík
20131b0ffc
fix(vm): Regression: wait for 'net.IsGlobalUnicast' IP address (#100) (#345)
fix: Wait for 'net.IsGlobalUnicast' IP address, again (#100)

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'.

Once again change waiting for IP address to wait for better address than
IPv4 link-local addresses and IPv6 link-local addresses.

Should not break #182, because it requires only one GlobalUnicast address per VM.
2023-05-22 22:12:06 -04:00
GitHub Bot
18fceb8734
chore(main): release 0.20.0 (#338) 2023-05-22 14:12:53 -04:00
dependabot[bot]
fc1e03f094
chore(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#343)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  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-05-22 14:00:18 -04:00
zoop
9fa92423b5
feat: SSH-Agent Support (#306)
* chore: add agent configuration bool

* feat: add ssh-agent authentication mechanism for linux

* chore: make sure ssh-agent auth is only executed on linux

* chore: add ssh user override

* chore: add ssh configuration block, check ssh config during VirtualEnvironmentClient creation

* fix: handle case of empty ssh config block

* chore: add ssh password auth fallback logic

* fix: remove not needed runtime

* fix linter errors & re-format

* allow ssh agent on all POSIX systems

* add `agent_socket` parameter

* update docs and examples

---------

Co-authored-by: zoop <zoop@zoop.li>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-05-22 13:34:24 -04:00
Pavel Boldyrev
37494a01b6
Update Makefile 2023-05-19 12:42:44 -04:00
Kevin
1c920de71d
feat: bump Go to 1.20 to resolve MacOS DNS resolution issues (#342)
* feat: bump the go version

Bumping the go version ensures that MacOS DNS is resolved correctly as
per https://go-review.googlesource.com/c/go/+/446178.

Resolves: #341

* bump go version in /tools and in readme

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-05-19 12:37:22 -04:00
dependabot[bot]
0d8e6d3158
chore(deps): bump github.com/skeema/knownhosts from 1.1.0 to 1.1.1 (#336) 2023-05-15 17:43:48 -04:00
dependabot[bot]
b1cb49cf7a
chore(deps): bump golang.org/x/crypto from 0.8.0 to 0.9.0 (#337) 2023-05-15 17:34:39 -04:00
GitHub Bot
85ddac9053
chore(main): release 0.19.1 (#332) 2023-05-13 22:16:55 -04:00
Pavel Boldyrev
79e5a8ebb0
fix(vm): Regression: cannot create disks larger than 99G (#335) 2023-05-13 22:13:57 -04:00
dependabot[bot]
37a1234bb0
chore(deps): bump github.com/docker/distribution from 2.8.1+incompatible to 2.8.2+incompatible in /tools (#331) 2023-05-11 17:02:21 -04:00
GitHub Bot
ba57a5da36
chore(main): release 0.19.0 (#325) 2023-05-10 22:12:02 -04:00
Pavel Boldyrev
8359c03aa8
fix(vm,lxc): Add validation for non-empty tags (#330) 2023-05-11 02:06:15 +00:00
Jordan Keith
4be9914757
feat(vm,lxc): Improved support for different disk size units (#326) 2023-05-10 07:46:16 -04:00
dependabot[bot]
d94a4ce7cf
chore(deps): bump github.com/goreleaser/goreleaser from 1.18.1 to 1.18.2 in /tools (#327)
chore(deps): bump github.com/goreleaser/goreleaser in /tools

Bumps [github.com/goreleaser/goreleaser](https://github.com/goreleaser/goreleaser) from 1.18.1 to 1.18.2.
- [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.18.1...v1.18.2)

---
updated-dependencies:
- dependency-name: github.com/goreleaser/goreleaser
  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-05-08 21:00:14 -04:00
dependabot[bot]
aea079e0b1
chore(deps): bump github.com/goreleaser/goreleaser from 1.17.2 to 1.18.1 in /tools (#324)
chore(deps): bump github.com/goreleaser/goreleaser in /tools

Bumps [github.com/goreleaser/goreleaser](https://github.com/goreleaser/goreleaser) from 1.17.2 to 1.18.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.17.2...v1.18.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-05 20:51:35 -04:00
GitHub Bot
c3f1d25d7c
chore(main): release 0.18.2 (#315) 2023-05-04 20:27:19 -04:00
Pavel Boldyrev
f0b88e336c
fix(vm,lxc): Tags reordering on plan re-apply (#322) 2023-05-05 00:19:20 +00:00
Remko Molier
97ca22abbb
fix(vm): Fix IPv6 handling (#319)
* fix: Fix IPv6 handling in resource "virtual_environment_vm"

* also use "*IPv6Address" keys

---------

Co-authored-by: Remko Molier <remko.molier@kuehne-nagel.com>
Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-05-03 20:36:10 -04:00
dependabot[bot]
b8184e47c1
chore(deps): bump github.com/sigstore/rekor from 1.0.1 to 1.1.1 in /tools (#320) 2023-05-03 18:30:19 -04:00
Pavel Boldyrev
aa99290664
chore(make): Add lint, release-build targets (#317) 2023-05-01 03:37:35 +00:00
dependabot[bot]
2a03818d40
chore(deps): bump github.com/goreleaser/goreleaser from 1.17.1 to 1.17.2 in /tools (#313)
chore(deps): bump github.com/goreleaser/goreleaser in /tools

Bumps [github.com/goreleaser/goreleaser](https://github.com/goreleaser/goreleaser) from 1.17.1 to 1.17.2.
- [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.17.1...v1.17.2)

---
updated-dependencies:
- dependency-name: github.com/goreleaser/goreleaser
  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-04-24 21:39:40 -04:00
GitHub Bot
b33a8ce620
chore(main): release 0.18.1 (#309) 2023-04-24 11:09:21 -04:00
Fabian Heib
496bda4edc
fix(firewall): use correct default value for firewall (#312) 2023-04-23 15:26:25 -04:00
Pavel Boldyrev
7c9505d11f
fix(file): SSH file upload on Windows (#308)
* fix(file): SSH file upload on Windows

* update bug report template
2023-04-20 02:14:48 +00:00
GitHub Bot
20aacc2547
chore(main): release 0.18.0 (#297) 2023-04-18 01:41:04 +00:00
Pavel Boldyrev
8addb1d1d5
feat(vm): Wait for the VM creation task to complete (#305)
feat(vm): Add sync wait in VM create operation
2023-04-17 21:30:08 -04:00
dependabot[bot]
d24f60aaa2
chore(deps): bump github.com/goreleaser/goreleaser from 1.16.2 to 1.17.1 in /tools (#303)
chore(deps): bump github.com/goreleaser/goreleaser in /tools

Bumps [github.com/goreleaser/goreleaser](https://github.com/goreleaser/goreleaser) from 1.16.2 to 1.17.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.16.2...v1.17.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 18:50:28 -04:00
dependabot[bot]
672249246f
chore(deps): bump nokogiri from 1.14.2 to 1.14.3 in /docs (#299)
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.14.2...v1.14.3)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@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-04-14 23:38:25 +00:00
dependabot[bot]
fc4a6e8ace
chore(deps): bump commonmarker from 0.23.8 to 0.23.9 in /docs (#298)
Bumps [commonmarker](https://github.com/gjtorikian/commonmarker) from 0.23.8 to 0.23.9.
- [Release notes](https://github.com/gjtorikian/commonmarker/releases)
- [Changelog](https://github.com/gjtorikian/commonmarker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gjtorikian/commonmarker/compare/v0.23.8...v0.23.9)

---
updated-dependencies:
- dependency-name: commonmarker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 19:36:31 -04:00
dependabot[bot]
a896b5051e
chore(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#296) 2023-04-10 20:43:13 -04:00
GitHub Bot
5ffb7d5acc
chore(main): release 0.17.1 (#292) 2023-04-09 20:02:40 -04:00
Pavel Boldyrev
f4783f8cda
fix(firewall): Add support for firewall flag for LXC/VM net adapters (#295) 2023-04-09 23:59:40 +00:00
Pavel Boldyrev
be3995e969
fix(core): Error when open SSH session on Windows (#293)
* fix(core): Error when open SSH session on Windows

* update PR template
2023-04-07 22:38:07 -04:00
Pavel Boldyrev
401b39782f
fix(file): "Permission denied" error when creating a file by a non-root user (#291)
* fix(file): "Permission denied" error when creating a file by a non-root user

* fix linter errors
2023-04-07 21:58:37 -04:00
GitHub Bot
b7e73ed360
chore(main): release 0.17.0 (#289) 2023-04-07 15:39:10 -04:00
Henri Williams
f9e263ad5e
feat(vm): add support for boot_order argument for VM (#219)
* feat(vm): add support for 'boot_order and boot_disk flags for VM

* refactoring (1)

* refactor to use only boot_order argument

---------

Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-04-07 15:35:38 -04:00
Pavel Boldyrev
2fa922930f
chore: cleanup and fix linter errors (#290) 2023-04-05 00:04:12 +00:00