Local proxmox provider and local variables

This commit is contained in:
2023-01-02 23:48:58 +01:00
parent 429c0fdff5
commit 3f0549a792
2 changed files with 19 additions and 0 deletions

8
locals.tf Normal file
View File

@@ -0,0 +1,8 @@
locals {
domain = "schleppe"
node = "apollo"
nameserver = "10.0.0.72"
searchdomain = "schleppe"
public_ssh_keys = []
}

11
provider.tf Normal file
View File

@@ -0,0 +1,11 @@
provider "proxmox" {
pm_api_url = "https://${local.node}.${local.domain}:8006/api2/json"
pm_tls_insecure = true
pm_debug = true
pm_log_enable = true
pm_log_file = "terraform-plugin-proxmox.log"
pm_log_levels = {
_default = "debug"
_capturelog = ""
}
}