Skip to content

Instantly share code, notes, and snippets.

@beenje
Last active June 12, 2017 12:30
Show Gist options
  • Save beenje/568aabe7881c649ca7baec4514d89e79 to your computer and use it in GitHub Desktop.
Save beenje/568aabe7881c649ca7baec4514d89e79 to your computer and use it in GitHub Desktop.
packer test template with vagrant-cloud
{
"variables": {
"vagrantcloud_token": "{{env `VAGRANTCLOUD_TOKEN`}}",
"source_url": "esss-devenv-7.3.ova",
"devenv_version": null,
"description": "ESS DevEnv Vagrant base box based on CentOS 7.3"
},
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "{{user `source_url`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"headless": true,
"guest_additions_mode": "disable",
"format": "ova",
"post_shutdown_delay": "5s",
"output_directory": "build",
"vm_name": "esss-devenv-7.3"
}
],
"post-processors": [
[
{
"type": "vagrant",
"vagrantfile_template": "templates/vagrantfile.tpl",
"output": "build/esss-devenv-7.3.box"
},
{
"type": "vagrant-cloud",
"access_token": "{{user `vagrantcloud_token`}}",
"box_tag": "esss/devenv-7.3",
"no_release": "true",
"version": "{{user `devenv_version`}}",
"version_description": "{{user `description`}}"
}
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment