diff options
Diffstat (limited to 'terraform')
| -rw-r--r-- | terraform/providers.tf | 15 | ||||
| -rw-r--r-- | terraform/variables.tf | 27 |
2 files changed, 15 insertions, 27 deletions
diff --git a/terraform/providers.tf b/terraform/providers.tf new file mode 100644 index 0000000..5a57caa --- /dev/null +++ b/terraform/providers.tf @@ -0,0 +1,15 @@ +terraform { + required_providers { + proxmox = { + source = "bpg/proxmox" + version = "~> 0.83" + } + } +} + +provider "proxmox" { + endpoint = var.proxmox_endpoint + api_token = var.proxmox_api_token + + insecure = true +} diff --git a/terraform/variables.tf b/terraform/variables.tf index 6610f25..4c23f69 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,5 +1,3 @@ -# Proxmox API - variable "proxmox_endpoint" { description = "Adres API Proxmox" type = string @@ -13,33 +11,8 @@ variable "proxmox_api_token" { } -# Node - variable "node_name" { description = "Nazwa node Proxmox" type = string default = "pve" } - - -# LXC - -variable "lxc_id" { - type = number - default = 200 -} - -variable "lxc_name" { - type = string - default = "terraform-lxc" -} - -variable "lxc_memory" { - type = number - default = 1024 -} - -variable "lxc_cores" { - type = number - default = 1 -} |