Last active
April 17, 2018 22:02
-
-
Save Wasapl/d413b4506e497c68da66843b9ab131bc to your computer and use it in GitHub Desktop.
Next packer config fails to scp basicconfig.sh (https://github.com/hashicorp/packer/issues/6151)
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": { | |
"ssh_username": "vagrant", | |
"ssh_password": "vagrant", | |
"iso_checksum_md5": "6a7f31eb125a0b2908cf2333d7777c82", | |
"user_home":"/home/vagrant", | |
"image_description": "" | |
}, | |
"provisioners": [ | |
{ | |
"type": "file", | |
"source": "scripts/common.sh", | |
"destination": "{{ user `user_home` }}/common.sh" | |
}, | |
{ | |
"type": "shell", | |
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -S -E bash -eux '{{.Path}}'", | |
"scripts": [ | |
"scripts/basicconfig.sh" | |
] | |
}, | |
], | |
"builders": [ | |
{ | |
"type": "hyperv-vmcx", | |
"clone_from_vm_name": "gen2", | |
"ssh_username": "{{ user `ssh_username` }}", | |
"ssh_password": "{{ user `ssh_password` }}", | |
"shutdown_command": "echo '{{ user `ssh_password` }}' | sudo -S shutdown -P now", | |
"http_directory": "http", | |
"communicator":"ssh", | |
"ssh_timeout" : "1h", | |
"cpu": "1", | |
"ram_size": "2048", | |
"enable_secure_boot": false | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment