X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=packer%2Fubuntu1604-juju.json;h=8263eef60c160351dfca82b394425f2ab4a5b8f9;hb=1b60d17bd9a2b82279236ab17466dc500a810589;hp=15db3121c232cc4829da3a2a4f7723f764f27e9a;hpb=6f50dedea4b9e4274a0c8d38bfca0267405242c3;p=osm%2Fdevops.git diff --git a/packer/ubuntu1604-juju.json b/packer/ubuntu1604-juju.json index 15db3121..8263eef6 100644 --- a/packer/ubuntu1604-juju.json +++ b/packer/ubuntu1604-juju.json @@ -34,6 +34,9 @@ "script": "scripts/cleanup.sh" } ], + "variables": { + "build_dir": "jujubase-{{timestamp}}" + }, "builders": [ { "type": "virtualbox-iso", @@ -64,7 +67,7 @@ "" ], "boot_wait": "10s", - "disk_size": 20480, + "disk_size": 40000, "guest_os_type": "Ubuntu_64", "headless": true, "http_directory": "http", @@ -81,7 +84,7 @@ "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", "virtualbox_version_file": ".vbox_version", - "output_directory": "jujubase-{{timestamp}}", + "output_directory": "{{user `build_dir`}}", "vm_name": "xenial-jujubase", "vboxmanage": [ [ @@ -101,7 +104,7 @@ ], "post-processors": [ { - "output": "jujubase-{{timestamp}}/{{.Provider}}-jujubase.box", + "output": "{{user `build_dir`}}/{{.Provider}}-jujubase.box", "type": "vagrant", "keep_input_artifact": true }