-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
99 lines (83 loc) · 2.21 KB
/
variables.tf
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
variable "generated_key_name" {
type = string
default = "terraform-key-pair"
description = "Key-pair generated by Terraform"
}
variable "pm_api_url" {
type = string
description = "Proxmox API URL"
}
variable "node" {
type = string
default = "node"
description = "Proxmox node"
}
variable "hostname" {
type = string
default = "terraform-deploy"
description = "Hostname of the LXC container"
}
variable "ostemplate" {
type = string
default = "local:vztmpl/ubuntu-20.04-standard_20.04-1_amd64.tar.gz"
description = "OSTemplate to use for the LXC container"
}
variable "pool_name" {
type = string
default = "CT"
description = "Pool to use for the LXC container"
}
variable "unprivileged" {
type = bool
default = false
description = "Create an unprivileged LXC container"
}
variable "memory" {
type = string
default = "1024"
description = "Memory to allocate to the LXC container"
}
variable "cores" {
type = string
default = "2"
description = "Number of cores to allocate to the LXC container"
}
variable "start" {
type = bool
default = true
description = "Start the LXC container after creation"
}
variable "storage" {
type = string
default = "local"
description = "Storage to use for the LXC container"
}
variable "storage_size" {
type = string
default = "8G"
description = "Size of the rootfs for the LXC container"
}
variable "nic_name" {
type = string
default = "eth0"
description = "Name of the network interface"
}
variable "bridge_name" {
type = string
default = "vmbr0"
description = "Bridge to use for the network interface"
}
variable "gateway_address" {
type = string
default = "192.168.1.1"
description = "Gateway address for the network interface"
}
variable "ipv4_address" {
type = string
description = "value of the ipv4 address for the network interface"
}
variable "firewall" {
type = bool
default = true
description = "Enable firewall for the LXC container"
}