-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
97 lines (78 loc) · 1.63 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
variable "proxmox_endpoint" {
type = string
default = "https://192.168.10.10:8006/"
}
variable "proxmox_username" {
type = string
default = "root@pam"
}
variable "proxmox_password" {
type = string
default = "password"
}
variable "proxmox_insecure" {
type = string
default = true
}
variable "vm_name" {
type = string
default = "terraform-provider-proxmox-ubuntu-vm"
}
variable "vm_description" {
type = string
default = "Managed by Terraform"
}
variable "node_name" {
type = string
default = "proxmox"
}
variable "agent_status" {
type = bool
default = true
}
variable "clone_vm_id" {
type = string
default = 105
}
variable "disk_datastore_id" {
type = string
default = "local-lvm"
}
variable "disk_interface" {
type = string
default = "virtio0"
}
variable "disk_size" {
type = string
default = "15"
}
variable "vm_ip_address" {
type = string
default = "10.11.12.1"
}
variable "vm_subnet" {
type = string
default = "/24"
}
locals {
cidr = "${var.vm_ip_address}${var.vm_subnet}"
}
variable "vm_gateway" {
type = string
default = "10.11.12.254"
}
variable "network_device_bridge" {
type = string
default = "vmbr0"
}
variable "operating_system_type" {
type = string
default = "l26"
}
variable "private_key_path" {
type = string
default = "~/.ssh/id_ed25519"
}
locals {
ip_address = element(element(proxmox_virtual_environment_vm.ubuntu_vm.ipv4_addresses, 1), length(proxmox_virtual_environment_vm.ubuntu_vm.ipv4_addresses) - 1)
}