File tree 3 files changed +13
-12
lines changed
3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
### Fixed
13
13
14
14
- Correct conditional logic.
15
+ - Use null vars instead of strings.
15
16
16
17
## [ 1.2.0] - 2022-11-27
17
18
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ resource "proxmox_vm_qemu" "proxmox_instance" {
3
3
desc = var. pve_instance_description
4
4
vmid = var. vmid
5
5
6
- clone = var. pxe_boot == true ? " " : var. clone
7
- full_clone = var. pxe_boot == true ? false : var. full_clone
6
+ clone = var. pxe_boot == true ? null : var. clone
7
+ full_clone = var. pxe_boot == true ? null : var. full_clone
8
8
pxe = var. pxe_boot
9
9
boot = var. boot
10
10
@@ -36,10 +36,10 @@ resource "proxmox_vm_qemu" "proxmox_instance" {
36
36
}
37
37
}
38
38
39
- os_type = var. pxe_boot == true ? " " : var. os_type
40
- cicustom = var. pxe_boot == true ? " " : var. cicustom
39
+ os_type = var. pxe_boot == true ? null : var. os_type
40
+ cicustom = var. pxe_boot == true ? null : var. cicustom
41
41
# example: "user=${var.citemplate_storage}:${var.snippet_dir}/user-${var.snippet_file_base},network=${var.citemplate_storage}:${var.snippet_dir}/network-${var.snippet_file_base}"
42
- cloudinit_cdrom_storage = var. pxe_boot == true ? " " : var. cloudinit_cdrom_storage
42
+ cloudinit_cdrom_storage = var. pxe_boot == true ? null : var. cloudinit_cdrom_storage
43
43
44
44
searchdomain = var. searchdomain
45
45
nameserver = var. nameserver
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ variable "vmid" {
14
14
}
15
15
16
16
variable "clone" {
17
- default = " "
17
+ default = null
18
18
description = " Name of the template to clone (ignored when pxe_boot is true)."
19
19
type = string
20
20
}
21
21
22
22
variable "full_clone" {
23
- default = false
23
+ default = null
24
24
description = " Create a full clone; if false, a linked clone will be created (ignored when pxe_boot is true)."
25
25
type = bool
26
26
}
@@ -89,7 +89,7 @@ variable "disks" {
89
89
}
90
90
91
91
variable "os_type" {
92
- default = " "
92
+ default = null
93
93
description = " Type of OS for preprovisioning."
94
94
type = string
95
95
}
@@ -107,20 +107,20 @@ variable "snippet_file_base" {
107
107
}
108
108
109
109
variable "cicustom" {
110
- default = " "
110
+ default = null
111
111
description = " Path(s) to cloud-init config files (ignored when pxe_boot is true)."
112
112
type = string
113
113
}
114
114
115
115
variable "citemplate_storage" {
116
- default = " local "
116
+ default = null
117
117
description = " Name of the storage containing the cloud-init snippets (ignored when pxe_boot is true)."
118
118
type = string
119
119
}
120
120
121
121
variable "cloudinit_cdrom_storage" {
122
- default = " local-lvm "
123
- description = " Name of the storage to create the cloud-init image in."
122
+ default = null
123
+ description = " Name of the storage to create the cloud-init image in (e.g. local-lvm) ."
124
124
type = string
125
125
}
126
126
You can’t perform that action at this time.
0 commit comments