2021-11-24 23:03:04 +01:00
|
|
|
terraform {
|
|
|
|
backend "s3" {
|
|
|
|
bucket = "terraform"
|
|
|
|
key = "terraform.tfstate"
|
|
|
|
region = "us-east-1"
|
|
|
|
endpoint = "http://minio:9000"
|
|
|
|
force_path_style = true
|
|
|
|
skip_requesting_account_id = true
|
|
|
|
skip_credentials_validation = true
|
|
|
|
skip_get_ec2_platforms = true
|
|
|
|
skip_metadata_api_check = true
|
|
|
|
skip_region_validation = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-25 00:15:19 +01:00
|
|
|
provider "proxmox" {
|
|
|
|
pm_api_url = "https://10.42.42.42:8006/api2/json"
|
|
|
|
pm_user = data.vault_generic_secret.proxmox_auth.data["user"]
|
|
|
|
pm_password = data.vault_generic_secret.proxmox_auth.data["pass"]
|
|
|
|
pm_tls_insecure = true
|
2021-10-17 12:04:23 +02:00
|
|
|
}
|
|
|
|
|
2021-11-25 00:15:19 +01:00
|
|
|
provider "vault" {
|
|
|
|
address = "http://vault:8200"
|
|
|
|
skip_tls_verify = true
|
|
|
|
}
|
2021-11-03 22:47:44 +01:00
|
|
|
|
2021-11-25 00:15:19 +01:00
|
|
|
# Proxmox authentication for terraform
|
|
|
|
data "vault_generic_secret" "proxmox_auth" {
|
|
|
|
path = "secrets/terraform/proxmox_credentials"
|
2021-10-17 21:02:10 +02:00
|
|
|
}
|
2021-11-25 00:15:19 +01:00
|
|
|
|
|
|
|
# Imported from hosts.auto.tfvars.json
|
|
|
|
variable "hosts" { }
|