-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
50 lines (42 loc) · 1.04 KB
/
variables.tf
File metadata and controls
50 lines (42 loc) · 1.04 KB
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
variable "api_url" {
description = "Proxmox API URL"
type = string
}
variable "api_token_id" {
description = "Proxmox API Token id, eg: user@realm!token"
type = string
}
variable "api_token_secret" {
description = "Proxmox API Token secret"
type = string
sensitive = true
}
variable "container_password" {
description = "Container root password"
type = string
sensitive = true
}
variable "ssh_public_key" {
description = "SSH public key to register container."
type = string
}
variable "proxmox_node" {
description = "Target node to create lxc"
type = string
}
# コンテナ間で異なる値を持つ変数のみ map にまとめる
variable "containers" {
description = "LXC containers to deploy"
type = map(object({
vmid = number
unprivileged = bool
hostname = string
lxc_template = string
storage = string
ipaddress = string
gateway = string
nameserver = string
memory = number
cores = number
}))
}