Added opentofu
This commit is contained in:
33
infrastructure-tofu/main.tf
Normal file
33
infrastructure-tofu/main.tf
Normal file
@@ -0,0 +1,33 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "bpg/proxmox"
|
||||
version = "0.43.2"
|
||||
}
|
||||
}
|
||||
backend "s3" {
|
||||
bucket = "tofu-remote-state"
|
||||
key = "tofu.tfstate"
|
||||
|
||||
endpoint = "http://10.20.1.5:9000"
|
||||
|
||||
access_key = "GeOhlbqGrL9KS1fZW06C"
|
||||
secret_key = "PxWWN2KuK7m0GLLfH45sDTB0e4DhrSseL4KfmR8m"
|
||||
|
||||
region = "main"
|
||||
skip_credentials_validation = true
|
||||
skip_metadata_api_check = true
|
||||
skip_region_validation = true
|
||||
force_path_style = true
|
||||
}
|
||||
}
|
||||
|
||||
provider "proxmox" {
|
||||
endpoint = var.virtual_environment_endpoint
|
||||
api_token = var.virtual_environment_api_token
|
||||
insecure = true
|
||||
ssh {
|
||||
agent = true
|
||||
username = "root"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user