mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-25 06:27:49 +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:
|
linters-settings:
|
||||||
staticcheck:
|
staticcheck:
|
||||||
checks: ["all", "-SA1019", "-SA4009" ]
|
checks: ["all", "-SA1019" ]
|
||||||
|
|
|
@ -27,17 +27,18 @@ build {
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
only = ["qemu.opensuse-*"]
|
only = ["qemu.opensuse-*"]
|
||||||
destination = "/tmp/src/"
|
destination = "/tmp/src/"
|
||||||
sources = ["${path.cwd}/../apparmor.d-${var.version}*.rpm"]
|
sources = ["${path.cwd}/../apparmor.d-${var.version}-1.x86_64.rpm"]
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
only = ["qemu.debian-server", "qemu.ubuntu-server", "qemu.ubuntu-desktop"]
|
only = ["qemu.debian-server", "qemu.ubuntu-server", "qemu.ubuntu-desktop"]
|
||||||
destination = "/tmp/src/"
|
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
|
# Wait for cloud-init to finish
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
except = ["qemu.opensuse-*"]
|
||||||
execute_command = "echo '${var.password}' | sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
|
execute_command = "echo '${var.password}' | sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
inline = [
|
inline = [
|
||||||
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for Cloud-Init...'; sleep 20; done",
|
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for Cloud-Init...'; sleep 20; done",
|
||||||
|
|
Loading…
Reference in a new issue