iac/terraform/provider.tf

47 lines
951 B
Terraform
Raw Normal View History

2024-07-12 23:57:29 -04:00
terraform {
2024-10-12 13:23:20 -04:00
required_providers {
proxmox = {
source = "bpg/proxmox"
version = ">= 0.65.0"
}
}
2024-07-12 23:57:29 -04:00
2024-10-12 13:23:20 -04:00
backend "s3" {
bucket = "BigBuckets"
region = "us-ashburn-1"
key = "tf.tfstate"
skip_region_validation = true
skip_credentials_validation = true
skip_requesting_account_id = true
use_path_style = true
skip_s3_checksum = true
skip_metadata_api_check = true
endpoints = {
2024-10-12 13:27:33 -04:00
s3 = var.s3_endpoint
2024-07-12 23:57:29 -04:00
}
2024-10-12 13:23:20 -04:00
}
2024-07-12 23:57:29 -04:00
}
provider "proxmox" {
2024-10-12 13:23:20 -04:00
endpoint = var.virtual_environment_endpoint
password = var.ssh_password
username = "root@pam"
insecure = true
2024-07-12 23:57:29 -04:00
ssh {
agent = true
2024-10-12 13:23:20 -04:00
username = "root"
password = var.ssh_password
node {
name = "prox"
address = var.prox_ip_address
}
2024-07-12 23:57:29 -04:00
node {
2024-10-12 13:23:20 -04:00
name = "pve2"
address = var.pve2_ip_address
2024-07-12 23:57:29 -04:00
}
}
}