{
  "builders": [
    {
      "type": "vmware-vmx",
      "source_path": "{{user `vmx_path`}}",
      "ssh_username": "{{user `username`}}",
      "ssh_password": "{{user `password`}}",
      "shutdown_command": "echo '{{user `username`}}'|sudo -S shutdown -h now",
      "output_directory": "{{user `packer_output_dir`}}"
    }
  ],
  "provisioners": [
    {
      "destination": "/tmp/vmkite/com.macstadium.vmkite-buildkite-agent.plist",
      "source": "scripts/buildkite/support/com.macstadium.vmkite-buildkite-agent.plist",
      "type": "file"
    },
    {
      "destination": "/tmp/vmkite/bin/vmkite-buildkite-agent.sh",
      "source": "scripts/buildkite/support/vmkite-buildkite-agent.sh",
      "type": "file"
    },
    {
      "execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
      "scripts": [
        "scripts/buildkite/agent.sh"
      ],
      "environment_vars": [],
      "type": "shell"
    }
  ],
  "variables": {
    "vmx_path": "",
    "username": "vagrant",
    "password": "vagrant",
    "packer_headless": "true",
    "packer_output_dir": "output/buildkite-macos"
  }
}
{
  "builders": [
    {
      "type": "vmware-vmx",
      "source_path": "{{user `vmx_path`}}",
      "ssh_username": "{{user `username`}}",
      "ssh_password": "{{user `password`}}",
      "shutdown_command": "echo '{{user `username`}}'|sudo -S shutdown -h now",
      "output_directory": "{{user `packer_output_dir`}}"
    }
  ],
  "provisioners": [
    {
      "destination": "/tmp/vmkite/com.macstadium.vmkite-buildkite-agent.plist",
      "source": "scripts/buildkite/support/com.macstadium.vmkite-buildkite-agent.plist",
      "type": "file"
    },
    {
      "destination": "/tmp/vmkite/vmkite-buildkite-agent.sh",
      "source": "scripts/buildkite/support/vmkite-buildkite-agent.sh",
      "type": "file"
    },
    {
      "execute_command": "chmod +x {{ .Path }}; sudo {{ .Vars }} {{ .Path }}",
      "scripts": [
        "scripts/buildkite/agent.sh"
      ],
      "environment_vars": [],
      "type": "shell"
    }
  ],
  "variables": {
    "vmx_path": "",
    "username": "vagrant",
    "password": "vagrant",
    "packer_headless": "true",
    "packer_output_dir": "output/buildkite-macos"
  }
}
Fix typo in packer manifest
Fix typo in packer manifest
