Skip to content

Instantly share code, notes, and snippets.

@lantrix
Created April 2, 2015 11:40
Show Gist options
  • Select an option

  • Save lantrix/21509c616b4d21c6e55b to your computer and use it in GitHub Desktop.

Select an option

Save lantrix/21509c616b4d21c6e55b to your computer and use it in GitHub Desktop.
{
"variables": {
"cloud_token": "$cloud_token",
"vagrant_box_version": "$vagrant_box_version"
},
"builders": [
{
"type": "vmware-vmx",
"source_path": "/Users/lantrix/AWS/simianarmy-build/.vagrant/machines/default/vmware_fusion/54800d00-774d-41b6-b0cf-3a593b08b056/packer-centos-6.6-x86_64.vmx",
"ssh_username": "root",
"ssh_key_path": "build/vagrant.key",
"ssh_wait_timeout": "200s",
"shutdown_command": "shutdown -h now",
"headless": true
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/network-clean.sh",
"scripts/compact.sh"
]
}
],
"post-processors": [
[
{
"type": "vagrant",
"output": "build/simianarmy-build_{{.Provider}}.box"
},
{
"type": "vagrant-cloud",
"box_tag": "seek/simianarmy-build",
"access_token": "TOKEN",
"version": "{{user `vagrant_box_version`}}"
}
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment