X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=packer%2Fubuntu1604-ovf-osm.json;h=5b22d2e073850884f470bb545931be49317c1907;hb=refs%2Fheads%2FWIM;hp=d4a2c776e299544c6f9741a7b3eaef4a2b1705a5;hpb=79731f43c074d742a3d90b02684bf48d4bf3b3c1;p=osm%2Fdevops.git diff --git a/packer/ubuntu1604-ovf-osm.json b/packer/ubuntu1604-ovf-osm.json index d4a2c776..5b22d2e0 100644 --- a/packer/ubuntu1604-ovf-osm.json +++ b/packer/ubuntu1604-ovf-osm.json @@ -19,7 +19,8 @@ "variables": { "osm_install_options": "--vimemu", "input_ovf": "output-virtualbox-iso/packer-ubuntu-16.04-amd64-juju.ovf", - "vm_name": "xenial-osm" + "vm_name": "xenial-osm", + "build_dir": "osm-{{timestamp}}" }, "builders": [ { @@ -33,7 +34,7 @@ "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "virtualbox_version_file": ".vbox_version", "vm_name": "{{user `vm_name`}}", - "output_directory": "osm-{{timestamp}}", + "output_directory": "{{user `build_dir`}}", "vboxmanage": [ [ "modifyvm", @@ -53,7 +54,7 @@ "post-processors": [ [ { - "output": "osm-{{timestamp}}/{{.Provider}}-osm.box", + "output": "{{user `build_dir`}}/{{.Provider}}-osm.box", "type": "vagrant", "keep_input_artifact": true },