Created
April 2, 2015 11:40
-
-
Save lantrix/21509c616b4d21c6e55b to your computer and use it in GitHub Desktop.
Packer Crash https://github.com/mitchellh/packer/commit/b49d74d9990c56eba0b967fd952347d83cd68488
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": { | |
| "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