From 02d4a9e173d4531312763099a5d3627cc0920c3e Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Sat, 2 Mar 2024 18:59:10 -0500 Subject: [PATCH] update example templates to use api token auth Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- example/main.tf | 4 ++-- example/variables.tf | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82d39ece4..e29318fc7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,7 +77,7 @@ jobs: run: make docs && git diff --exit-code testacc: - if: "!contains(github.head_ref, 'renovate/')" + if: "!contains(github.head_ref, 'renovate/') && !contains(github.head_ref, 'release-please')" name: Dispatch Acceptance Tests needs: build runs-on: ubuntu-latest diff --git a/example/main.tf b/example/main.tf index 08ace84b4..4265ee333 100644 --- a/example/main.tf +++ b/example/main.tf @@ -1,9 +1,9 @@ provider "proxmox" { endpoint = var.virtual_environment_endpoint - username = var.virtual_environment_username - password = var.virtual_environment_password + api_token = var.virtual_environment_api_token insecure = true ssh { agent = true + username = var.virtual_environment_ssh_username } } diff --git a/example/variables.tf b/example/variables.tf index 0fb934e55..caa4c92ed 100644 --- a/example/variables.tf +++ b/example/variables.tf @@ -3,12 +3,12 @@ variable "virtual_environment_endpoint" { description = "The endpoint for the Proxmox Virtual Environment API (example: https://host:port)" } -variable "virtual_environment_password" { +variable "virtual_environment_api_token" { type = string - description = "The password for the Proxmox Virtual Environment API" + description = "The API token for the Proxmox Virtual Environment API" } -variable "virtual_environment_username" { +variable "virtual_environment_ssh_username" { type = string - description = "The username and realm for the Proxmox Virtual Environment API (example: root@pam)" -} + description = "The username for the Proxmox Virtual Environment API" +} \ No newline at end of file