Last active
June 12, 2017 12:30
-
-
Save beenje/568aabe7881c649ca7baec4514d89e79 to your computer and use it in GitHub Desktop.
packer test template with vagrant-cloud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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