0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 02:52:58 +00:00

fix(provider): allow FQDN for ssh.node.address in provider's config (#824)

* fix(provider): removed ip check/limitation to mkProviderSSHNode

It is now possible to use an FQDN instead of an IP Address when the SSH
node is configured

Changes to be committed:
modified:   proxmoxtf/provider/schema.go

Signed-off-by: bitchecker <ciro.deluca@autistici.org>

* fix(docs): Updating documentation after the code updates

Signed-off-by: bitchecker <ciro.deluca@autistici.org>

---------

Signed-off-by: bitchecker <ciro.deluca@autistici.org>
This commit is contained in:
bitchecker 2023-12-21 01:40:11 +01:00 committed by GitHub
parent 8d1a72923c
commit 34df9773c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -209,6 +209,6 @@ Proxmox `provider` block:
- `node` - (Optional) The node configuration for the SSH connection. Can be
specified multiple times to provide configuration fo multiple nodes.
- `name` - (Required) The name of the node.
- `address` - (Required) The IP address of the node.
- `address` - (Required) The FQDN/IP address of the node.
- `port` - (Optional) SSH port of the node. Defaults to 22.
- `tmp_dir` - (Optional) Use custom temporary directory. (can also be sourced from `PROXMOX_VE_TMPDIR`)

View File

@ -155,7 +155,7 @@ func createSchema() map[string]*schema.Schema {
Type: schema.TypeString,
Required: true,
Description: "The address of the Proxmox VE node.",
ValidateFunc: validation.IsIPAddress,
ValidateFunc: validation.StringIsNotEmpty,
},
mkProviderSSHNodePort: {
Type: schema.TypeInt,