diff options
author | 2016-10-03 17:03:21 +0200 | |
---|---|---|
committer | 2016-10-03 20:18:27 +0200 | |
commit | 53795ff651a4fcb847ac2d63648e2299c884560b (patch) | |
tree | c0def0b8192c44feb51da88f865cb767a8e63952 /packer/templates | |
parent | 9cb7c23d969e90b9b0f11cfcd744dfb6dc548feb (diff) |
Add /opt/AGL/lava-agl, its dependencies and json file
Change-Id: I65e5c48f91d0c4df084cfa3e66d43ae48e52bb9d
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'packer/templates')
-rw-r--r-- | packer/templates/basebuild-local-kvm.json | 5 | ||||
-rw-r--r-- | packer/templates/basebuild.json | 5 |
2 files changed, 10 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" } ] diff --git a/packer/templates/basebuild.json b/packer/templates/basebuild.json index b757f6af..8e60b5f9 100644 --- a/packer/templates/basebuild.json +++ b/packer/templates/basebuild.json @@ -41,6 +41,11 @@ }, { "type": "shell", + "environment_vars": [ + "LAVAHOST={{user `lavahost`}}", + "LAVAUSER={{user `lavauser`}}", + "LAVATOKEN={{user `lavatoken`}}" + ], "scripts": [ "provision/baseline.sh", "provision/basebuild.sh", |