2024-07-12 23:57:29 -04:00
|
|
|
terraform {
|
2024-10-12 13:23:20 -04:00
|
|
|
required_providers {
|
|
|
|
proxmox = {
|
|
|
|
source = "bpg/proxmox"
|
2024-11-02 23:42:07 -04:00
|
|
|
version = "0.66.3"
|
2024-10-12 13:23:20 -04:00
|
|
|
}
|
|
|
|
}
|
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-13 10:48:04 -04:00
|
|
|
access_key = var.aws_access_key_id
|
|
|
|
secret_key = var.aws_secret_access_key
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|