"script": "scripts/cleanup.sh"
}
],
+ "variables": {
+ "build_dir": "jujubase-{{timestamp}}"
+ },
"builders": [
{
"type": "virtualbox-iso",
"<enter><wait>"
],
"boot_wait": "10s",
- "disk_size": 20480,
+ "disk_size": 40000,
"guest_os_type": "Ubuntu_64",
"headless": true,
"http_directory": "http",
"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": [
[
],
"post-processors": [
{
- "output": "jujubase-{{timestamp}}/{{.Provider}}-jujubase.box",
+ "output": "{{user `build_dir`}}/{{.Provider}}-jujubase.box",
"type": "vagrant",
"keep_input_artifact": true
}
"osm_install_options": "--vimemu",
"input_ovf": "output-virtualbox-iso/packer-ubuntu-16.04-amd64-juju.ovf",
"vm_name": "xenial-osm"
+ "build_dir": "osm-{{timestamp}}"
},
"builders": [
{
"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",
"post-processors": [
[
{
- "output": "osm-{{timestamp}}/{{.Provider}}-osm.box",
+ "output": "{{user `build_dir`}}/{{.Provider}}-osm.box",
"type": "vagrant",
"keep_input_artifact": true
},