Billie Cleek
a5ab53bf5e
update ansible tests
...
Update tests to account for changes made in #3149
2016-02-10 14:16:02 -08:00
Billie Cleek
a23610ef41
cleanup ansible provisioner key generation
...
* Clearly separate host signer and user key generation into separate
functions and data structures.
* Remove inaccurate comment about needing to specify both files if
either one is specified.
* Rename parameters for clarity according to their meaning to the
callee.
* Style the code with gofmt.
2016-02-10 14:16:02 -08:00
Jake Champlin
aca4aed47c
Display better error messages on json.SyntaxError
...
Better display an error message on an encounter of a json.SyntaxError.
Rolls back the file position, to read the entire file, then steps
through the file reading a single byte at a time, populating lines until
encountering the syntax error. Then relays the offending line as well as
the previous line in the file to the user, also placing a `^` that
points the the offending column of the decoder error.
```
➤ packer validate template.json
Failed to parse template: Error parsing JSON: invalid character '"' after object key:value pair
At line 9, column 8 (offset 121):
8: "name": "vbox"
9: "
```
2016-02-10 14:52:26 -05:00
Tyler Tidman
bda06bfb2a
Remove invalid 'binary' option for shell-local post-processor
2016-02-09 16:30:32 -05:00
Chris Bednarski
86781c896d
Merge pull request #3174 from tylert/qemu-doc-fix
...
Show default for iso_skip_cache in qemu docs
2016-02-09 12:20:21 -08:00
Tyler Tidman
c7c8b13bb5
Show default for iso_skip_cache in qemu docs
2016-02-09 14:44:24 -05:00
Chris Bednarski
a0001c473c
Merge pull request #3169 from andrewsomething/bugfix/3158
...
Look up snapshot ID based by Droplet, not user.
2016-02-09 10:01:50 -08:00
Chris Bednarski
2b3e43c086
Merge pull request #3167 from tylert/vagrant-with-vendoring
...
Add new vendoring stuff to vagrantfile
2016-02-09 09:58:14 -08:00
Andrew Starr-Bochicchio
6d31470757
Look up snapshot ID based by Droplet, not user.
2016-02-09 11:29:06 -05:00
Tyler Tidman
6b0dbe173f
Don't try to pull packer source automatically for vagrant since path isn't set up yet
2016-02-09 11:18:43 -05:00
Tyler Tidman
c8a9d16675
Add new vendoring stuff to vagrantfile
2016-02-09 10:13:09 -05:00
Rickard von Essen
7fa5bcd5d7
Merge pull request #3134 from rickard-von-essen/issue-2701
...
OpenStack: Update documentation, fixes GH-2701
2016-02-09 13:15:39 +01:00
Rickard von Essen
df6e4c0565
Merge pull request #3162 from rickard-von-essen/checksum
...
Allow to specify ISO checksum via URL
2016-02-09 13:11:17 +01:00
Rickard von Essen
e1c470db80
Merge pull request #3135 from rickard-von-essen/issue-2526
...
OpenStack: convert SSH keys from BER to DER with OpenSSL, work around…
2016-02-09 13:10:04 +01:00
Rickard von Essen
abb2d92c7e
Removed ftp/ftps schemas since they don't work.
2016-02-09 13:02:42 +01:00
Rickard von Essen
6855c480ad
OpenStack: convert SSH keys from BER to DER with OpenSSL, work around for GH-2526.
...
Try to parse the temporary keypair received from OpenStack, if it fails
try to use OpenSSL to convert it from BER encoding to DER.
2016-02-09 12:50:00 +01:00
ephemeralsnow
3de8561a75
Add chmod to chef-solo provisioner
2016-02-09 20:06:26 +09:00
Chris Bednarski
a36a9bf53d
Remove tee so exit code 1 is passed up to the shell and properly fails the build when tests are failing
2016-02-08 20:02:56 -08:00
Chris Bednarski
569e6cc464
go fmt
2016-02-08 17:34:06 -08:00
Rickard von Essen
bbade5d8ae
Added "iso_checksum_url" and keep the functionality of "iso_checksum"
...
Added support for file shema in "iso_checksum_url".
Added some unit tests and updated the docs accordingly.
2016-02-08 19:35:50 +01:00
Vasiliy Tolstov
00fcc3dfdc
allow to specify checksum via url
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-08 19:35:50 +01:00
Rickard von Essen
382e2b4198
Merge pull request #2405 from vtolstov/do
...
bring back api_url to support DO like api
2016-02-08 12:51:45 +01:00
Vasiliy Tolstov
ec4e95493d
builder/digitalocean: add ability to specify api url
...
This is useful in case of using DigitalOcean compatibility api hosting.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-06 14:15:32 +00:00
Chris Bednarski
f860cdc754
Merge pull request #3154 from tylert/move-new-doc
...
Move shell-local post-processor doc to common location
2016-02-05 15:36:13 -08:00
Chris Bednarski
58ebd6a9fd
Merge branch 'deps'
2016-02-05 14:22:00 -08:00
Chris Bednarski
f5777bca7b
Moved the bulk of go setup to CONTRIBUTING.md so it doesn't need to be maintained in two places
2016-02-05 14:21:10 -08:00
Chris Bednarski
6ca15f7e1a
Updated appveyor script to (hopefully) work with a vendored build on Windows
2016-02-05 14:08:58 -08:00
Chris Bednarski
ad5416e2e3
Updated CONTRIBUTING.md to have up-to-date information about building with Go
2016-02-05 13:43:18 -08:00
Chris Bednarski
c10e0eb398
Removed go get from build scripts since we have these in vendor already
2016-02-05 13:42:27 -08:00
Tyler Tidman
ba82a60d55
Move shell-local post-processor doc to common location
2016-02-05 16:18:06 -05:00
Chris Bednarski
93547ad91c
Regenerate command/plugin and apply go fmt (now handled by the makefile)
2016-02-05 11:18:36 -08:00
Chris Bednarski
4335d2f13a
Update the makefile to work with vendored dependencies
2016-02-05 11:18:11 -08:00
Chris Bednarski
171265c983
Remove generator from command/version because we can't go build ./... -- it also builds vendored stuff
2016-02-05 11:17:48 -08:00
Chris Bednarski
33d1c17d29
Generate plugins.go from main.go
2016-02-05 11:17:05 -08:00
Chris Bednarski
3c8bb4ea68
Just run from root always
2016-02-05 11:16:39 -08:00
Chris Bednarski
2d749d8c55
Merge pull request #3139 from vtolstov/shell_local
...
shell-local port processor
2016-02-04 18:58:38 -08:00
Chris Bednarski
33effdb19b
Merge pull request #3149 from mtb-xt/master
...
Generate key files for Ansible provisioner
2016-02-04 18:56:21 -08:00
Marat Bakeev
c95b2b483f
Merge branch ansible-provisioner of https://github.com/dkhenry/packer
2016-02-05 15:40:17 +13:00
Chris Bednarski
dbdb988634
Vendor all dependencies
2016-02-04 17:33:36 -08:00
Chris Bednarski
4ba54d97c5
Add godeps
2016-02-04 17:33:21 -08:00
Chris Bednarski
e61fa1aed1
Add some sneaky missing deps
2016-02-04 17:33:03 -08:00
Chris Bednarski
39e43b62e9
Added QEMU boot_command wait duration to changelog
2016-02-04 17:19:33 -08:00
Chris Bednarski
6c35f44104
Merge pull request #3129 from vtolstov/wait
...
builder/qemu: allow to specify time.Duration in special <wait> command
2016-02-04 17:16:07 -08:00
Chris Bednarski
358b5c62e2
Merge pull request #3143 from ThatGerber/iam-roles
...
IAM CLI Profile/Assume Role Support
2016-02-04 16:47:09 -08:00
Christopher Gerber
e7711c31ea
Wrong function to convert int to string.
2016-02-04 16:18:57 -06:00
Christopher Gerber
b75d561c56
Fixes more windows testing errors.
...
"constant 9999999999 overflows int" running test on CI server. Replaced with timestamp to unixnano
2016-02-04 16:12:18 -06:00
Christopher Gerber
d25ba245f4
Fixes bytes to string issues in Windows build.
2016-02-04 16:05:49 -06:00
Christopher Gerber
a6aefa859f
Fixes issue in build where multiple processes were trying to access the same file.
2016-02-04 15:39:54 -06:00
Christopher Gerber
6c3e0daf24
Added tests. Updated CLIConfig to pass tests.
2016-02-04 14:56:22 -06:00
Rickard von Essen
623dbc1ffe
Merge pull request #3147 from tylert/update-qemu-doc
...
Update qemu builder doc net_device list, put things in packer fix order
2016-02-04 20:59:27 +01:00