stage #19

Merged
micqdf merged 12 commits from stage into master 2026-02-28 00:13:24 +00:00
5 changed files with 15 additions and 29 deletions
Showing only changes of commit 9c1476b6bf - Show all commits

View File

@@ -18,8 +18,8 @@ jobs:
env:
TF_VAR_SSH_KEY_PUBLIC: ${{ secrets.SSH_KEY_PUBLIC }}
TF_VAR_TS_AUTHKEY: ${{ secrets.TS_AUTHKEY }}
TF_VAR_pm_api_token_id: ${{ secrets.PM_API_TOKEN_ID }}
TF_VAR_pm_api_token_secret: ${{ secrets.PM_API_TOKEN_SECRET }}
PM_API_TOKEN_ID: ${{ secrets.PM_API_TOKEN_ID }}
PM_API_TOKEN_SECRET: ${{ secrets.PM_API_TOKEN_SECRET }}
steps:
- name: Checkout repository

View File

@@ -19,8 +19,8 @@ jobs:
env:
TF_VAR_SSH_KEY_PUBLIC: ${{ secrets.SSH_KEY_PUBLIC }}
TF_VAR_TS_AUTHKEY: ${{ secrets.TS_AUTHKEY }}
TF_VAR_pm_api_token_id: ${{ secrets.PM_API_TOKEN_ID }}
TF_VAR_pm_api_token_secret: ${{ secrets.PM_API_TOKEN_SECRET }}
PM_API_TOKEN_ID: ${{ secrets.PM_API_TOKEN_ID }}
PM_API_TOKEN_SECRET: ${{ secrets.PM_API_TOKEN_SECRET }}
steps:
- name: Checkout repository

View File

@@ -8,10 +8,8 @@ terraform {
}
provider "proxmox" {
pm_api_url = var.pm_api_url
pm_api_token_id = var.pm_api_token_id
pm_api_token_secret = var.pm_api_token_secret
pm_tls_insecure = true
pm_api_url = var.pm_api_url
pm_tls_insecure = true
}
resource "proxmox_vm_qemu" "alpacas" {

View File

@@ -1,10 +1,9 @@
target_node = "flex"
clone_template = "ubuntu-cloudinit"
cores = 1
memory = 1024
disk_size = "15G"
sockets = 1
bridge = "vmbr0"
storage = "Flash"
pm_api_url = "https://100.105.0.115:8006/api2/json"
pm_api_token_id = "terraform-prov@pve!mytoken"
target_node = "flex"
clone_template = "ubuntu-cloudinit"
cores = 1
memory = 1024
disk_size = "15G"
sockets = 1
bridge = "vmbr0"
storage = "Flash"
pm_api_url = "https://100.105.0.115:8006/api2/json"

View File

@@ -1,14 +1,3 @@
variable "pm_api_token_id" {
type = string
description = "Proxmox API token ID (format: user@realm!tokenid)"
}
variable "pm_api_token_secret" {
type = string
sensitive = true
description = "Proxmox API token secret"
}
variable "target_node" {
type = string
}