fix: code quality improvements
Some checks failed
Gitea Actions Demo / Terraform Plan (push) Failing after 15s
Some checks failed
Gitea Actions Demo / Terraform Plan (push) Failing after 15s
- Remove duplicate variables (alpaca_count, llama_count) - Remove unused variables (vm_name, disk_type) - Fix outputs to use correct variable names - Fix cloud-init template to not overwrite source file - Fix hardcoded hostname in cloud-init template - Fix typo in SSH_KEY_PUBLIC description
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
### Global cloud-init template (for all VMs)
|
||||
|
||||
data "template_file" "cloud_init_global" {
|
||||
template = file("${path.module}/files/cloud_init_global.yaml")
|
||||
template = file("${path.module}/files/cloud_init_global.tpl")
|
||||
|
||||
vars = {
|
||||
hostname = "generic"
|
||||
@@ -13,5 +11,5 @@ data "template_file" "cloud_init_global" {
|
||||
|
||||
resource "local_file" "cloud_init_global" {
|
||||
content = data.template_file.cloud_init_global.rendered
|
||||
filename = "${path.module}/files/cloud_init_global.yaml"
|
||||
filename = "${path.module}/files/rendered/cloud_init_global.yaml"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user