Skip to content

Commit

Permalink
update example templates to use api token auth
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
  • Loading branch information
bpg committed Mar 2, 2024
1 parent e3c06dd commit 02d4a9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/main.tf
Original file line number Diff line number Diff line change
@@ -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
}
}
10 changes: 5 additions & 5 deletions example/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 02d4a9e

Please sign in to comment.