aboutsummaryrefslogtreecommitdiffstats
path: root/packer/templates/basebuild-local-kvm.json
diff options
context:
space:
mode:
Diffstat (limited to 'packer/templates/basebuild-local-kvm.json')
-rw-r--r--packer/templates/basebuild-local-kvm.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/packer/templates/basebuild-local-kvm.json b/packer/templates/basebuild-local-kvm.json
index af13744f..36c77f42 100644
--- a/packer/templates/basebuild-local-kvm.json
+++ b/packer/templates/basebuild-local-kvm.json
@@ -77,6 +77,11 @@
"provision/agl_dependencies.sh",
"provision/system_reseal.sh"
],
+ "environment_vars": [
+ "LAVAHOST={{user `lavahost`}}",
+ "LAVAUSER={{user `lavauser`}}",
+ "LAVATOKEN={{user `lavatoken`}}"
+ ],
"execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else echo 'ubuntu' | {{ .Vars }} sudo -S -E sh '{{ .Path }}'; fi"
}
]