File tree Expand file tree Collapse file tree 3 files changed +44
-9
lines changed Expand file tree Collapse file tree 3 files changed +44
-9
lines changed Original file line number Diff line number Diff line change
1
+ * ForsakenHarmony
Original file line number Diff line number Diff line change
1
+ name : terraform-config
2
+
3
+ on :
4
+ pull_request : {}
5
+ push :
6
+ branches : ["main"]
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ jobs :
12
+ linting :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : checkout
17
+ uses : actions/checkout@v3
18
+
19
+ - name : setup terraform
20
+ uses : hashicorp/setup-terraform@v1
21
+
22
+ - name : terraform init
23
+ run : terraform init
24
+
25
+ - name : terraform validate
26
+ run : terraform validate
27
+
28
+ - name : terraform format check
29
+ id : fmt
30
+ run : terraform fmt -check -recursive -diff
31
+
32
+ - name : teraform lint
33
+ id : tflint
34
+ uses :
devops-infra/[email protected]
Original file line number Diff line number Diff line change 1
1
variable "node" {
2
- type = string
2
+ type = string
3
3
description = " the proxmox node the VM should run on"
4
4
}
5
5
6
6
variable "pool" {
7
- type = string
8
- default = null
7
+ type = string
8
+ default = null
9
9
description = " the proxmox pool the VM should be assigned to"
10
10
}
11
11
12
12
variable "name" {
13
- type = string
13
+ type = string
14
14
description = " the name of the vm"
15
15
}
16
16
17
17
variable "cores" {
18
- type = number
18
+ type = number
19
19
description = " how many cores the VM should have"
20
20
}
21
21
22
22
variable "memory" {
23
- type = number
23
+ type = number
24
24
description = " how much memory should be available to the VM"
25
25
}
26
26
27
27
variable "disk" {
28
28
type = object ({
29
- size = string
29
+ size = string
30
30
storage = string
31
31
})
32
32
description = " the disk size and storage"
@@ -40,7 +40,7 @@ variable "network" {
40
40
}
41
41
42
42
variable "qemu_agent" {
43
- type = bool
44
- default = false
43
+ type = bool
44
+ default = false
45
45
description = " whether to enable the QEMU agent (needs support from the guest)"
46
46
}
You can’t perform that action at this time.
0 commit comments