chore: improve linter settings & better packer VM build.

This commit is contained in:
Alexandre Pujol 2023-09-29 20:55:24 +01:00
parent c249005958
commit bd4e9bb135
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 4 additions and 3 deletions

View File

@ -2,4 +2,4 @@
linters-settings:
staticcheck:
checks: ["all", "-SA1019", "-SA4009" ]
checks: ["all", "-SA1019" ]

View File

@ -27,17 +27,18 @@ build {
provisioner "file" {
only = ["qemu.opensuse-*"]
destination = "/tmp/src/"
sources = ["${path.cwd}/../apparmor.d-${var.version}*.rpm"]
sources = ["${path.cwd}/../apparmor.d-${var.version}-1.x86_64.rpm"]
}
provisioner "file" {
only = ["qemu.debian-server", "qemu.ubuntu-server", "qemu.ubuntu-desktop"]
destination = "/tmp/src/"
sources = ["${path.cwd}/../apparmor.d_${var.version}_all.deb"]
sources = ["${path.cwd}/../apparmor.d_${var.version}_amd64.deb"]
}
# Wait for cloud-init to finish
provisioner "shell" {
except = ["qemu.opensuse-*"]
execute_command = "echo '${var.password}' | sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
inline = [
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for Cloud-Init...'; sleep 20; done",