blob: 9f9e6c2722862ce276cf96e0d62293b2ce663d59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
terraform {
required_providers {
proxmox = {
source = "bpg/proxmox"
version = "~> 0.83"
}
}
}
resource "proxmox_virtual_environment_container" "lgtm" {
node_name = var.node_name
vm_id = var.lxc_id
started = true
operating_system {
template_file_id = "local:vztmpl/debian-12-standard_12.12-1_amd64.tar.zst"
type = "debian"
}
cpu {
cores = 2
}
memory {
dedicated = 2048
swap = 512
}
disk {
datastore_id = "local-lvm"
size = 10
}
network_interface {
name = "eth0"
bridge = "vmbr0"
}
initialization {
hostname = var.hostname
ip_config {
ipv4 {
address = var.ip_address
gateway = var.gateway_ip
}
}
user_account {
keys = var.ssh_keys
}
}
}
|