chore: Refactor templates into modules
This commit is contained in:
parent
f2acafd737
commit
0e37a64198
6 changed files with 49 additions and 39 deletions
25
pve01.wheatley.in/templates/main.tf
Normal file
25
pve01.wheatley.in/templates/main.tf
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
terraform {
|
||||
backend "s3" {
|
||||
bucket = "13225-wheatley-states"
|
||||
key = "pve01-templates.tfstate"
|
||||
region = "main"
|
||||
skip_credentials_validation = true
|
||||
skip_metadata_api_check = true
|
||||
skip_region_validation = true
|
||||
force_path_style = true
|
||||
}
|
||||
}
|
||||
|
||||
provider "proxmox" {
|
||||
endpoint = var.proxmox_endpoint
|
||||
api_token = var.proxmox_api_token
|
||||
ssh {
|
||||
agent = true
|
||||
username = "tofu"
|
||||
}
|
||||
}
|
||||
|
||||
module "talos" {
|
||||
source = "./talos"
|
||||
talos_versions = ["1.11.5"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue