Add BI App file server and configuration management for hosts
This commit is contained in:
58
provisioning/SK3SFS1P/main.tf
Normal file
58
provisioning/SK3SFS1P/main.tf
Normal file
@@ -0,0 +1,58 @@
|
||||
terraform {
|
||||
required_version = ">= 1.6.0"
|
||||
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "bpg/proxmox"
|
||||
version = "~> 0.73"
|
||||
}
|
||||
}
|
||||
|
||||
backend "s3" {}
|
||||
}
|
||||
|
||||
provider "proxmox" {
|
||||
endpoint = var.proxmox_endpoint
|
||||
insecure = var.proxmox_insecure
|
||||
api_token = var.proxmox_api_token
|
||||
|
||||
ssh {
|
||||
username = var.proxmox_ssh_user
|
||||
password = var.proxmox_ssh_password
|
||||
agent = var.proxmox_ssh_agent
|
||||
}
|
||||
}
|
||||
|
||||
module "vm" {
|
||||
source = "../modules/vm"
|
||||
|
||||
node_name = var.node_name
|
||||
vm_id = var.vm_id
|
||||
name = var.name
|
||||
description = var.description
|
||||
tags = var.tags
|
||||
bios = "ovmf"
|
||||
os_type = "win11"
|
||||
|
||||
cpu_cores = var.cpu_cores
|
||||
memory_dedicated = var.memory_dedicated
|
||||
|
||||
clone_vm_id = var.clone_vm_id
|
||||
clone_datastore_id = var.clone_datastore_id
|
||||
|
||||
init_ipv4_address = var.init_ipv4_address
|
||||
init_ipv4_gateway = var.init_ipv4_gateway
|
||||
init_dns_servers = var.init_dns_servers
|
||||
init_username = var.init_username
|
||||
admin_password = var.admin_password
|
||||
cloud_init_datastore = var.cloud_init_datastore
|
||||
|
||||
disk_datastore = var.disk_datastore
|
||||
disk_size = var.disk_size
|
||||
|
||||
data_disk_size = var.data_disk_size
|
||||
data_disk_datastore = var.data_disk_datastore
|
||||
|
||||
network_bridge = var.network_bridge
|
||||
network_vlan_id = var.network_vlan_id
|
||||
}
|
||||
Reference in New Issue
Block a user