mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-23 21:46:44 +01:00
chore: improve linter settings & better packer VM build.
This commit is contained in:
parent
c249005958
commit
bd4e9bb135
2 changed files with 4 additions and 3 deletions
|
@ -2,4 +2,4 @@
|
|||
|
||||
linters-settings:
|
||||
staticcheck:
|
||||
checks: ["all", "-SA1019", "-SA4009" ]
|
||||
checks: ["all", "-SA1019" ]
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue