iac/terraform/provider.tf
Matt Reeves ef5c58d015
Some checks failed
OpenTofu Automation / deploy (push) Failing after 12s
test
2024-10-13 10:48:04 -04:00

48 lines
1 KiB
HCL

terraform {
required_providers {
proxmox = {
source = "bpg/proxmox"
version = ">= 0.65.0"
}
}
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 = {
s3 = var.s3_endpoint
}
access_key = var.aws_access_key_id
secret_key = var.aws_secret_access_key
}
}
provider "proxmox" {
endpoint = var.virtual_environment_endpoint
password = var.ssh_password
username = "root@pam"
insecure = true
ssh {
agent = true
username = "root"
password = var.ssh_password
node {
name = "prox"
address = var.prox_ip_address
}
node {
name = "pve2"
address = var.pve2_ip_address
}
}
}