{
  "builders": [
    {
      "type": "qemu",
      "name": "trove-mysql-5.7-ubuntu-18.04-x86_64",
      "vm_name": "trove-mysql-5.7-ubuntu-18.04-x86_64",
      "accelerator": "kvm",
      "disk_size": 4096,
      "format": "raw",
      "headless": true,
      "http_directory": "http",
      "iso_url": "http://mirrors.rc.nectar.org.au/packer-iso/ubuntu-18.04-x86_64-mini.iso",
      "iso_checksum": "bed8a55ae2a657f8349fe3271097cff3a5b8c3d1048cf258568f1601976fa30d",
      "iso_checksum_type": "sha256",
      "ssh_password": "not_a_real_password",
      "ssh_port": 22,
      "ssh_username": "root",
      "ssh_wait_timeout": "10000s",
      "vnc_bind_address": "0.0.0.0",
      "qemuargs": [
        [ "-m", "2048M" ],
        [ "-cpu", "host" ],
        [ "-smp", "2" ]
      ],
      "boot_wait": "5s",
      "boot_command": [
        "<tab><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "net.ifnames=0 biosdevname=0 fb=false hostname=ubuntu locale=en_AU ",
        "console-keymaps-at/keymap=us console-setup/ask_detect=false ",
        "console-setup/layoutcode=us keyboard-configuration/layout=USA keyboard-configuration/variant=USA ",
        "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu-18.04-x86_64-preseed.cfg <enter><wait>"
      ]
    }
  ],
  "provisioners": [
    {
      "type": "ansible",
      "ansible_env_vars": [
        "ANSIBLE_CONFIG=ansible/ansible.cfg"
      ],
      "extra_arguments": [
        "--ssh-extra-args",
        "-o IdentitiesOnly=yes",
        "--extra-vars",
        "datastore=mysql datastore_version=5.7 nectar_image_name='Trove MySQL 5.7 (Ubuntu 18.04 LTS)' image_build_dir='{{pwd}}/output-{{build_name}}'"
      ],
      "playbook_file": "ansible/playbook-trove.yml"
    },
    {
      "type": "shell",
      "script": "scripts/cleanup.sh"
    }
  ]
}

Use bionic for trove mysql 5.7
Use bionic for trove mysql 5.7

Change-Id: Ibcd62691ccf6d3baccb9200ce0b361a8d40d1f73
