Created
June 12, 2017 12:32
-
-
Save beenje/5a50d96dc2a719e27593a5f2188fc27e to your computer and use it in GitHub Desktop.
packer test template with atlas
This file contains 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": "atlas", | |
"artifact": "esss/devenv-7.3", | |
"artifact_type": "vagrant.box", | |
"metadata": { | |
"description": "{{user `description`}}", | |
"provider": "virtualbox", | |
"version": "{{user `devenv_version`}}" | |
} | |
} | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment