Chris Bednarski
29f02d243f
Had io.Copy args swapped; also use os.Create instead of os.OpenFile for MAGIC
2015-06-15 18:56:09 -07:00
Mitchell Hashimoto
de2004c1c9
Merge branch 'master' of https://github.com/nyetsche/packer into nyetsche-master
2015-06-15 15:21:58 -07:00
Alexander Golovko
15f40a3d00
fix disabling vmware tools for ESX
2015-06-15 15:08:56 -07:00
Marc Siegfriedt
667c53942b
use template for additional disks
2015-06-15 12:40:34 -07:00
Clint
5e786e3bb2
Merge pull request #2250 from mitchellh/b-amazon-block-docs
...
Document Amazon Block Device Mapping fields
2015-06-15 12:20:13 -05:00
Chris Bednarski
9c5845e3c7
Merge branch 'master' into f-file-builder
2015-06-15 10:18:42 -07:00
Mitchell Hashimoto
523a3342b8
builder/qemu: fix tests
2015-06-15 10:15:08 -07:00
Clint Shryock
d22c4173d3
fix crash when waiting for an instance that has failed
2015-06-15 11:53:21 -05:00
Mitchell Hashimoto
dc067b3f10
Merge pull request #2244 from mitchellh/f-docker-ssh
...
builder/docker: support custom communicators
2015-06-15 09:48:55 -07:00
Mitchell Hashimoto
c76bed37ec
Merge pull request #2236 from mitchellh/b-qemu-ssh
...
builder/qemu: use proper ssh port [GH-2074]
2015-06-15 09:41:28 -07:00
Mitchell Hashimoto
70af21615e
Merge pull request #2233 from mitchellh/b-output-dir
...
builder/virtualbox,vmware: validate output dir in step
2015-06-15 09:40:36 -07:00
Mitchell Hashimoto
a95408aa21
Merge pull request #2224 from mitchellh/f-os-userdata
...
builder/openstack: support user data [GH-1867]
2015-06-15 09:35:49 -07:00
Mitchell Hashimoto
3edff00696
Merge pull request #2223 from mitchellh/b-stop-openstack
...
builder/openstack: load extensions, stop server if supported
2015-06-15 09:35:36 -07:00
Mitchell Hashimoto
d8cc24f86e
builder/openstack: no more port
2015-06-15 09:34:35 -07:00
Mitchell Hashimoto
5167c65f87
Merge branch 'b-openstack-privage'
2015-06-15 09:33:58 -07:00
Clint
2372393f64
Merge pull request #2212 from mitchellh/f-amazon-add-tags-to-snapshots
...
Add EBS snapshot tags #846 #1219
2015-06-15 10:05:57 -05:00
Clint
8fca582278
Merge pull request #2221 from mitchellh/f-amazon-force-deregister-artifacts
...
builder/amazon: Add force_deregister option
2015-06-15 10:02:30 -05:00
Mitchell Hashimoto
cab2665119
builder/docker: support custom communicators
2015-06-14 22:09:38 -07:00
Mitchell Hashimoto
7fc69828c5
builder/virtualbox: fix forwarding to work with WinRM
2015-06-14 21:47:53 -07:00
Mitchell Hashimoto
ccf20568a7
Merge pull request #2240 from mitchellh/f-windows
...
Windows AWS instances
2015-06-14 10:52:10 -07:00
Mitchell Hashimoto
101e5986dc
builder/amazon: enable windows for instance type too
2015-06-14 10:50:18 -07:00
Mitchell Hashimoto
b8d5bd3776
Merge pull request #2242 from emate/spot_network_interfaces_fix
...
Fix network interface spec when requesting spot.
2015-06-14 10:48:59 -07:00
Marcin Matlaszek
b51761ca36
Fix network interface spec when requesting spot.
2015-06-14 17:47:45 +02:00
Mitchell Hashimoto
e9d916a7bc
builder/amazon: don't print windows password
2015-06-13 23:14:48 -07:00
Mitchell Hashimoto
8f6ecfd9e3
builder/amazon: various fixes (minor) to get things going
2015-06-13 23:12:59 -07:00
Mitchell Hashimoto
022a115d19
builder/amazon: improve messaging
2015-06-13 22:42:10 -07:00
Mitchell Hashimoto
d23f254b76
builder/amazon: don't get password if platform not set on image
2015-06-13 22:39:19 -07:00
Mitchell Hashimoto
fd4e0e9da4
builder/amazon: StepGetPassword
2015-06-13 22:35:45 -07:00
Mitchell Hashimoto
ea86cb4c7e
builder/qemu: use proper ssh port [GH-2074]
2015-06-13 19:30:16 -04:00
Mitchell Hashimoto
115d583cff
helper/communicator: make host more generic
2015-06-13 19:23:33 -04:00
Mitchell Hashimoto
68e4734caf
builder/null: pass unit tests
2015-06-13 18:55:37 -04:00
Mitchell Hashimoto
b61ed3adfc
builder/vmware: convert to helper/comm
2015-06-13 18:52:44 -04:00
Mitchell Hashimoto
89af447c8c
builder/qemu: convert to helper/comm
2015-06-13 18:47:59 -04:00
Mitchell Hashimoto
820bad6939
builder/parallels: convert to new comm type
2015-06-13 18:43:27 -04:00
Mitchell Hashimoto
f55e2d2c4b
builder/openstack: convert to helper/comm
2015-06-13 18:34:37 -04:00
Mitchell Hashimoto
502076c92e
builder/googlecompute: use helper/comm
2015-06-13 18:30:16 -04:00
Mitchell Hashimoto
669f301881
builder/digitalocean: use helper/comm
2015-06-13 18:26:13 -04:00
Mitchell Hashimoto
e557928119
builder/amazon: use helper/communicator
2015-06-13 18:16:12 -04:00
Mitchell Hashimoto
d5166a8e6c
builder/virtualbox: use new communicator abstraction
2015-06-13 18:08:12 -04:00
Mitchell Hashimoto
d545431f9b
builder/null: adopt helper/communicator
2015-06-13 17:42:43 -04:00
Mitchell Hashimoto
d851898131
builder/vmware: mirror virtualbox output dir changes
2015-06-13 17:00:14 -04:00
Mitchell Hashimoto
3976a34d29
builder/virtualbox: validate output dir in step, no in config
2015-06-13 16:58:37 -04:00
Mitchell Hashimoto
71d8c6610a
Merge pull request #1968 from bhcleek/master
...
do not request a pty
2015-06-13 16:23:31 -04:00
Mitchell Hashimoto
f1cef0baae
builder/null: fix config parsing
2015-06-13 14:08:33 -04:00
Mitchell Hashimoto
b3a9712402
builder/openstack: support user data [GH-1867]
2015-06-12 22:55:39 -04:00
Mitchell Hashimoto
b6d6a71c6e
builder/openstack: wait for more states
2015-06-12 22:50:59 -04:00
Chris Bednarski
e60b22d48f
Changed file builder to support content or source file operation
2015-06-12 18:18:38 -07:00
Chris Bednarski
766d217ed7
Pull config into the builder
2015-06-12 17:34:52 -07:00
Chris Bednarski
64fd3a3302
Added file builder as a cheap, fast way to build something with output for testing post-processors
2015-06-12 17:24:03 -07:00
Mitchell Hashimoto
48b674d331
builder/openstack: load extensions, stop server if supported
2015-06-12 18:04:46 -04:00
Mark Peek
16320372d6
Make some builder config usage more consistent with other builders
2015-06-12 14:02:09 -07:00
Mark Peek
f398352996
Fix a bug where interpolation was broken in some builders
2015-06-12 14:00:59 -07:00
Mitchell Hashimoto
a3863c3495
builder/openstack: update floating IP messaging
2015-06-12 15:23:05 -04:00
Mitchell Hashimoto
2c683c5057
builder/openstack: prioritize ssh interfaces
2015-06-12 14:28:27 -04:00
Clint Shryock
bec59b535d
builder/amazon: Add force_deregister option, to automatically deregister artifacts with name conflicts
2015-06-12 13:23:47 -05:00
Mitchell Hashimoto
31abc93f50
builder/openstack: support ssh_interface [GH-2087]
2015-06-12 14:22:32 -04:00
Clint Shryock
86206e316d
add tags test
2015-06-12 10:39:37 -05:00
Mitchell Hashimoto
693f04afcc
builder/openstack: AZ support
2015-06-12 11:10:10 -04:00
Mitchell Hashimoto
92b6b5c387
builder/openstack: can ref flavor by name
2015-06-12 10:32:31 -04:00
Mitchell Hashimoto
ad374e82af
builder/openstack: shuffle some fields to note unused fields
2015-06-12 10:05:03 -04:00
Mitchell Hashimoto
5d32a1f6e0
builder/openstack: use IP not FixedIP
2015-06-12 10:02:04 -04:00
Mitchell Hashimoto
590177ea4b
builder/openstack: fix unit tests
2015-06-12 00:35:54 -04:00
Mitchell Hashimoto
e724b5fe80
builder/openstack: support legacy env vars
2015-06-12 00:33:52 -04:00
Mitchell Hashimoto
50e2eb30e6
builder/openstack: modifications to work with rackspace
2015-06-12 00:28:38 -04:00
Mitchell Hashimoto
a0d41fcd14
builder/openstack
2015-06-12 00:16:43 -04:00
Mitchell Hashimoto
46f518f21d
builder/openstack: proper error extraction
2015-06-12 00:09:01 -04:00
Mitchell Hashimoto
7a46b80cfb
builder/openstack-new: better UI
2015-06-12 00:05:24 -04:00
Mitchell Hashimoto
551e80774d
builder/openstack-new: fix some issues
2015-06-12 00:03:17 -04:00
Mitchell Hashimoto
c903579aaa
builder/openstack-new
2015-06-11 23:43:36 -04:00
Mitchell Hashimoto
3933cc3217
Merge pull request #2208 from mitchellh/b-do-user
...
builder/digitalocean: user data support [GH-2113]
2015-06-11 16:57:04 -04:00
Clint
2af0f10d59
Merge pull request #2204 from mitchellh/b-aws-iam-profile-upload
...
builder/amazon-instance: Omit access, secrety key if using IAM Instan…
2015-06-11 10:55:57 -05:00
Clint Shryock
1fbf8b7f32
update create_tags for new sdk
2015-06-11 10:43:27 -05:00
Clint Shryock
a8155e17aa
merge acaire/add-ebs-snapshot-tags
2015-06-11 10:33:55 -05:00
Clint
900f3641c5
Merge pull request #2207 from mitchellh/f-amazon-allow-ami-name-spaces
...
builder/amazon: Allow spaces in AMI names
2015-06-11 08:49:21 -05:00
Mitchell Hashimoto
dcf140f99f
builder/digitalocean: more robust wait for pending
2015-06-10 19:53:07 -07:00
Mitchell Hashimoto
0e0cd28071
builder/digitalocean: fix failing unit tests
2015-06-10 19:31:48 -07:00
Mitchell Hashimoto
5cfd26a0d3
builder/digitalocean: user data support [GH-2113]
2015-06-10 19:29:48 -07:00
Mitchell Hashimoto
c9c9e2871c
builder/digitalocean: fix build
2015-06-10 18:58:50 -07:00
Mitchell Hashimoto
7dc59677f9
Merge branch 'do_certificate' of https://github.com/ColinHebert/packer into ColinHebert-do_certificate
2015-06-10 18:57:56 -07:00
Mitchell Hashimoto
5da56d2aa6
builder/digitalocean: image, region, etc. required
2015-06-10 18:54:51 -07:00
Mitchell Hashimoto
311c9eb5c2
builder/digitalocean: fix unit tests
2015-06-10 14:28:05 -07:00
Clint Shryock
2056fda4d3
builder/amazon: Allow spaces in AMI names
2015-06-10 16:19:36 -05:00
Mitchell Hashimoto
9a393a5601
builder/digitalocean: only list user images
2015-06-10 14:18:38 -07:00
Mitchell Hashimoto
486c7e4ae6
builder/digitalocean: remove unused things
2015-06-10 14:07:24 -07:00
Mitchell Hashimoto
d9c48e82fb
builder/digitalocean: switch to new lib
2015-06-10 14:02:06 -07:00
Clint Shryock
c9b413e3d1
builder/amazon-instance: Omit access, secrety key if using IAM Instance Profile
2015-06-10 15:18:05 -05:00
Mitchell Hashimoto
9da9ce6046
vmware/iso: disk_additional_size
2015-06-10 12:41:17 -07:00
Mitchell Hashimoto
3ba9d70b22
Merge pull request #1382 from sneal/AdditionalDisksForVMwareISO
...
Additional disks for vmware iso
2015-06-10 12:39:50 -07:00
Mitchell Hashimoto
1d653efe90
Merge pull request #2174 from brandonheller/master
...
vmware/iso: support hierarchical output directories
2015-06-10 11:33:59 -07:00
Mitchell Hashimoto
fafdfc962f
vmware/common: detect Vmware 'unknown error' and show better message
2015-06-10 11:31:36 -07:00
Mitchell Hashimoto
bd04b52b32
virtualbox/common: style
2015-06-10 10:50:08 -07:00
Mitchell Hashimoto
8d6a99457a
Merge pull request #1078 from pleschev/skip_nat_port
...
Adding the ability to skip nat port forwarding for ssh connectivity
2015-06-10 10:47:03 -07:00
Mitchell Hashimoto
be4a82dfae
amazon/*: fix some merge conflicts
2015-06-10 10:33:01 -07:00
Mitchell Hashimoto
8e1db0d94c
Merge branch 'fix_amazon_instance_waits' of https://github.com/renat-sabitov/packer into renat-sabitov-fix_amazon_instance_waits
2015-06-10 10:31:21 -07:00
Mitchell Hashimoto
0b819e4dd8
Merge pull request #2199 from rickard-von-essen/prl_pd11
...
Support Parallels Desktop 11
2015-06-10 10:21:07 -07:00
Jan Schumann
802cfa3871
make sure IOPS is not set for empty VolumeType
2015-06-10 17:21:25 +02:00
Jan Schumann
5d600c70f2
added test to illustrate wrong behavior
2015-06-10 17:20:41 +02:00
Rickard von Essen
8393b85ed5
Support Parallels Desktop 11
2015-06-10 07:41:12 +02:00
Mitchell Hashimoto
f6f9cca7ce
Merge pull request #2189 from mitchellh/b-download-extension
...
common: StepDownload can force an extension
2015-06-09 20:56:43 -07:00
Clint
b31534d5fe
Merge pull request #2197 from mitchellh/f-aws-fixup-ebs-snapshots
...
Update AWS EBS builder to fix invalid params
2015-06-09 13:52:28 -05:00
Clint Shryock
4da118c64f
fix up tests
2015-06-09 11:56:40 -05:00
Clint Shryock
999b0874cc
Update AWS EBS builder to fix invalid params
2015-06-09 11:38:53 -05:00
Clint Shryock
8c321138f4
Revert "Changing --region to --location"
...
This reverts commit f40fd36c31
.
According to the documentation below, `--region` is the current flag. If you're
using an older version of the tools that use `--location`, you can customize the
commands in your Packer config with `bundle_vol_command` and `bundle_upload_command`
- http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/CLTRG-ami-upload-bundle.html
- https://www.packer.io/docs/builders/amazon-instance.html
2015-06-09 10:41:39 -05:00
Mitchell Hashimoto
23a48d6619
go fmt
2015-06-08 21:34:20 -07:00
Mitchell Hashimoto
fa2bcb8bc5
update CHANGELOG
2015-06-08 21:33:53 -07:00
Mitchell Hashimoto
2373640881
Merge pull request #1663 from beezly/fix-vnc-missed-keys
...
Add 1/10th second delay between key events to VNC
2015-06-08 21:31:55 -07:00
Mitchell Hashimoto
20504da796
Merge pull request #2190 from mitchellh/b-http-addr
...
virtualbox,vmware: http server should listen on IPv4
2015-06-08 21:23:49 -07:00
Mitchell Hashimoto
a8cd2a2223
Merge pull request #2038 from trumant/openstack_access_config_tests_env_clarity
...
Tests were failing incorrectly when OpenStack environment variables were...
2015-06-08 21:19:47 -07:00
Mitchell Hashimoto
60b60d9f75
Merge pull request #2036 from mojotalantikite/digitalocean_private
...
Fix digitalocean provider for private images [fixes mitchellh/packer#1792 ]
2015-06-08 21:18:33 -07:00
Mitchell Hashimoto
115b8f5f67
Merge pull request #2188 from mitchellh/b-vbox-remove-floppy
...
virtualbox/common: remove devices should delete floppy controller
2015-06-08 21:16:24 -07:00
Mitchell Hashimoto
9dff0adfb1
builder/google: don't hardcode SSH timeout [GH-1781]
2015-06-08 21:13:25 -07:00
Mitchell Hashimoto
9f0b8b71db
virtualbox,vmware: http server should listen on IPv4
2015-06-08 20:47:47 -07:00
Mitchell Hashimoto
9ea34d4ea8
virtualbox/iso: force iso extension for downloads
2015-06-08 20:42:16 -07:00
Mitchell Hashimoto
35246ba986
virtualbox/common: fix test
2015-06-08 20:31:53 -07:00
Mitchell Hashimoto
b441348ba4
virtualbox/common: remove devices should delete floppy controller
...
GH-1879
2015-06-08 20:25:21 -07:00
Mitchell Hashimoto
0885e03bbf
virtualbox/iso: acceptance test
2015-06-08 20:24:49 -07:00
Clint
455d57a87f
Merge pull request #2187 from mitchellh/f-aws-add-prevalidate-step
...
builder/aws: Add pre validate step, to validate things before building.
2015-06-08 22:02:36 -05:00
Clint Shryock
68040f786c
show AMI id in error message
2015-06-08 22:00:59 -05:00
Clint Shryock
231f01cd35
builder/aws: Add pre validate step, to validate things before building.
2015-06-08 17:08:39 -05:00
Mitchell Hashimoto
984bbc3a1e
amazon/common: wording nit
2015-06-08 09:38:50 -07:00
Mitchell Hashimoto
8aec42e363
update CHANGELOG
2015-06-08 09:25:56 -07:00
Mitchell Hashimoto
9387cc1ea1
Merge pull request #2175 from henrysher/fix-duplicate-ami
...
check the region before do the ami copy to fix the duplicate ami [GH-2123]
2015-06-08 09:20:02 -07:00
Mitchell Hashimoto
f7e49d92ac
Merge pull request #2178 from henrysher/fix-ami-copy-name
...
"Name" parameter required for copying ami across regions [GH-2172]
2015-06-08 09:16:17 -07:00
Mitchell Hashimoto
769b7d20b9
amazon/ebs: acceptance test for region copy
2015-06-08 09:16:01 -07:00
Vasiliy Tolstov
3d94462e37
remove image format from image name
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-06-08 14:44:26 +03:00
Henry Huang
052b5e6699
"Name" parameter required for copying ami across regions [GH-2172]
2015-06-05 11:15:48 +00:00
Shawn Neal
e9a491ae45
New interpolation for additional vmware disks
2015-06-04 11:44:07 -07:00
Eric Richardson
5f183026b3
Fix vmware compact_disk step when there are no additional disks
2015-06-04 08:22:50 -07:00
Eric Richardson
7dfb837ddb
Formatting cleanups from `go fmt`
2015-06-04 08:22:50 -07:00
Eric Richardson
fab9ca9cdb
Initial work to implement additional disk support in the vmware-iso builder
...
* Matches the syntax from mitchellh/packer#703
* Creates disk(s), adds them to the vmx template, and runs compact at the end
2015-06-04 08:22:50 -07:00
Henry Huang
a5c476c6fe
check the region before do the ami copy to fix [GH-2123]
2015-06-04 06:16:44 -04:00
Brandon Heller
a7eeb6a6a7
vmware/iso: support hierarchical output directories
...
When providing a hierarchical output_directory value like
'transient/jenkins-slave', the VM would fail to build in the CreateDisk
step. The properly created output directory would not match the location
provided to CreateDisk, since datastorePath() did not properly split such
paths. Now this case works; tested hierarchical and singular
output_directory values.
2015-06-04 02:49:58 -07:00
Seth Vargo
33ca8b7fb5
Migrate to new AWS repo
2015-06-03 17:13:52 -04:00
Mitchell Hashimoto
edf3415c6e
builder/amazon: delete physical private key for debug mode [GH-1801]
2015-05-29 17:10:14 -07:00
Mitchell Hashimoto
3f636ef7f3
vmware/vmx: clarify messaging for source path required error
2015-05-29 17:04:11 -07:00
Mitchell Hashimoto
819986d19f
builder/docker: validate export path is not a dir [GH-2105]
2015-05-29 16:24:29 -07:00
Mitchell Hashimoto
350aa4e522
Merge pull request #2055 from FGtatsuro/docker_tag_force
...
Support force option for docker-tag.
2015-05-29 16:05:00 -07:00
Andrew Bayer
ebdd0d991a
Adds support for using the internal IP rather than NAT IP in GCE
2015-05-29 14:50:11 -07:00
Mitchell Hashimoto
31ac2652d6
bulder/docker: canExec as sep function
2015-05-29 11:08:41 -07:00
Mitchell Hashimoto
ce275969e4
builder/docker: don't attempt to read artifact if cancelled
2015-05-29 09:37:27 -07:00
Mitchell Hashimoto
6570b53c4a
builder/docker: use exec for v1.4+
2015-05-29 09:29:59 -07:00
Mitchell Hashimoto
966d70148e
Merge branch 'donaldguy-docker-exec-by-version' into f-docker
2015-05-29 09:20:57 -07:00
Mitchell Hashimoto
9587a926a2
Merge branch 'docker-exec-by-version' of https://github.com/donaldguy/packer into donaldguy-docker-exec-by-version
2015-05-29 09:20:48 -07:00
Mitchell Hashimoto
9c7b4b63c5
builder/docker: fix config parsing
2015-05-29 09:19:20 -07:00
Mitchell Hashimoto
913d6f6996
builder/amazon/common: fix compilation issues with latest libs
2015-05-28 10:20:34 -07:00
Mitchell Hashimoto
07734133a3
builder/amazon: fix test failures
2015-05-28 09:44:33 -07:00
Mitchell Hashimoto
7e74a38ff8
Merge pull request #2000 from cyberhouse/ifconfig-regex
...
Make the Vmware build extract the host IP properly from ifconfig stdout
2015-05-28 09:39:32 -07:00
Mitchell Hashimoto
7bd618b56b
Merge pull request #1989 from marcomorain/upper-case-mac-address
...
Fix for VMWare on OSX – MAC address can be upper or lower case
2015-05-28 09:38:23 -07:00
Mitchell Hashimoto
8cac7e8d51
Merge pull request #1930 from bhourigan/issue1929
...
Prepending -i to sudo so PATH is inherited from profile.d scripts
2015-05-28 09:36:58 -07:00
Mitchell Hashimoto
3031886aaf
Merge branch 'master' of https://github.com/aocsolutions/packer into aocsolutions-master
2015-05-28 09:35:02 -07:00
Mitchell Hashimoto
11e2fad6d0
Merge pull request #2022 from mefellows/issue/2021
...
Report error during Temporary Security Group creation in AWS EBS builder
2015-05-28 08:32:55 -07:00
Mitchell Hashimoto
b78b119a11
amazon/*: fix merge issues with lib switch
2015-05-28 08:31:22 -07:00
Mitchell Hashimoto
44b980e659
Merge branch 'aws-sdk-go' of https://github.com/jen20/packer into jen20-aws-sdk-go
2015-05-28 08:24:41 -07:00
Mitchell Hashimoto
b9bfae8da3
amazon/chroot: style
2015-05-28 08:19:53 -07:00
Mitchell Hashimoto
20fa7aeeb6
Merge pull request #2046 from danschaffer/amazonchroot-volumes-retry-fix
...
builder/amazon/chroot: fix no attachments on volume error.
2015-05-28 08:18:50 -07:00
jszwedko
b1497b951c
code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
...
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6
Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.
This is a precursor to a PR for #1066 .
2015-05-28 08:17:49 -07:00
Mitchell Hashimoto
77af5f83f7
Merge pull request #2120 from vtolstov/discard
...
add discard option to qemu builder
2015-05-27 20:18:11 -07:00
Mitchell Hashimoto
c78c4e78ad
amazon/common: sleep 3 seconds if instance doesn't exist
2015-05-27 20:15:07 -07:00
Mitchell Hashimoto
f78d7eefdc
Merge pull request #2129 from lokulin/master
...
Fixes #2128 Retry the AWS API when looking for a newly created instance
2015-05-27 20:14:14 -07:00
Mitchell Hashimoto
1d3a4d6aa2
packer: remove ConfigTemplate
2015-05-27 17:56:45 -07:00
Mitchell Hashimoto
4bb16ac223
fix failing tests
2015-05-27 14:30:59 -07:00
Mitchell Hashimoto
c3b75f4b86
vmware/vmx: interpolation
2015-05-27 14:21:15 -07:00
Mitchell Hashimoto
f5945eeb1b
vmware/iso: new interpolation
2015-05-27 14:16:28 -07:00
Mitchell Hashimoto
0dc4226810
builder/virtualbox/ovf: new interpolation
2015-05-27 14:03:56 -07:00
Mitchell Hashimoto
d15bc90453
builder/virtualbox/iso: new interpolation
2015-05-27 14:01:08 -07:00
Mitchell Hashimoto
b2b74431ec
builder/parallels/pvm: interpolation
2015-05-27 13:51:24 -07:00
Mitchell Hashimoto
76c2d2cb0e
builder/parallels/iso: new interpolation
2015-05-27 13:49:31 -07:00
Mitchell Hashimoto
3e76547bff
bulder/qemu: convert interpolation
2015-05-27 13:39:43 -07:00
Mitchell Hashimoto
4cae87645f
builder/docker: fix issue where docker might get nil interp context
2015-05-27 13:03:47 -07:00
Mitchell Hashimoto
3b29fa5e40
builder/openstack: convert interpolation
2015-05-27 13:02:57 -07:00
Mitchell Hashimoto
31bdb4853c
builder/null: interpolations
2015-05-27 12:59:14 -07:00
Mitchell Hashimoto
5aa30caa64
builder/googlecompute: new interpolation
2015-05-27 12:57:48 -07:00
Mitchell Hashimoto
faf327eed0
builder/docker: convert to new interpolation
2015-05-27 12:55:36 -07:00
Mitchell Hashimoto
7d0f94834e
builder/digitalocean: interpolation change
2015-05-27 12:50:43 -07:00
Mitchell Hashimoto
034e4e676c
amazon/*: use new interpolation functions
2015-05-27 11:47:45 -07:00
Mitchell Hashimoto
50d7c598e9
amazon/ebs: use new interpolation stuff
2015-05-27 11:35:56 -07:00
Mitchell Hashimoto
fea8bb3566
amazon/ebs: basic acceptance test
2015-05-26 13:47:24 -07:00
lokulin
bda4ef7c65
Retry the AWS API when looking for a newly created instance
...
Sometimes the AWS API responds that it can't find a newly created
instance if you poll it too soon after creation. Retry a few times
to be sure it really hasn't been created.
2015-05-22 15:08:51 +10:00
Vasiliy Tolstov
3984f5e6f6
add discard option to qemu builder
...
Enabling discards for disk can greatly minimize disk size then user
inside vm use fstrim command or trim/discard unneded blocks.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-05-17 20:48:58 +03:00
Rickard von Essen
1365627e31
Fixes #2080 Add prlctl_post in builder Parallels
...
This adds config option prlctl_post for builder parallels-iso/pvm. It
allows additional prlctl commands to run after the VM has been shutdown
just before being exported.
2015-05-03 11:18:48 +02:00
duftler
6d28ee931c
Delete GCE disk on SIGINT.
2015-04-21 18:02:05 +00:00
FGtatsuro
09f379a928
Support force option for docker-tag.
2015-04-18 13:12:28 +09:00
Mitch Garnaat
fd5f4c61ae
Added a call to grep for path in /proc/mounts before attempting to umount. If path is not there, it is already unmounted.
2015-04-17 12:35:26 -07:00
Dave Cunningham
982934dfb9
Use new Google API and OAuth libs, add UserAgent string
2015-04-17 15:12:39 -04:00
Dan Schaffer
03436a3745
builder/amazon/chroot: fix no attachments on volume error.
...
This adds retry logic to the amazon/chroot builder. The builder
intermittently fails when ec2conn shows the volume in the attached
state but calling Volumes[0].Attachments return an empty array. The
fix adds a retry logic for when Volumes[0].Attachments has len 0 sleep
for 2 seconds and retry up to 30 times.
When the Volumes[0].Attachments is empty I find within 5 seconds the
Volumes[0].Attachments contains the correct value.
The issue is reported in:
https://github.com/mitchellh/packer/issues/1854
2015-04-16 13:06:48 -04:00
James Nugent
65a9347b1e
Fix potential nil pointer errors in ported code
...
This commit adds extra nil checks for some pointers which were not
necessary when using goamz
2015-04-15 12:17:44 -07:00
James Nugent
33b4f5cc0a
Check for EBS being nil before assigning it
2015-04-15 11:49:29 -07:00
Travis Truman
7bd37b1f7a
Tests were failing incorrectly when OpenStack environment variables were set in the environment running the tests
2015-04-14 11:14:58 -04:00
James Nugent
e99cd56b6c
Migrate from mitchellh/goamz to awslabs/aws-sdk-go
...
This commit moves the Amazon builders of Packer away from the Hashicorp
fork of the goamz library to the official AWS SDK for Go, in order that
third party plugins may depend on the more complete official library
more easily.
2015-04-12 21:33:09 -04:00
Vilmos Nebehaj
956b9ded0a
Try another ssh port if the current one is taken.
2015-04-10 17:55:51 -07:00
Matt Fellows
a973dce7d3
Report error code during Temporary Security Group creation ( #2021 )
2015-04-07 12:11:34 +10:00
Brian Hourigan
a4cfd921f4
Adding missing hyphen to sudo options
2015-04-04 10:52:17 -04:00
Nevins Bartolomeo
6686b62347
AWS availability zone could be incorrect when using spot instances with no AZ specified
2015-04-03 20:52:54 -04:00
Georg Großberger
8c0169b1c4
Make the Vmware build extract the host IP properly from ifconfig stdout
2015-03-25 14:45:15 +01:00
Donald Guy
a7206aebd7
builder/docker: attempt to satisfy travis for #1993
2015-03-20 12:50:03 -04:00
Donald Guy
df7623d9d8
builder/docker: Run scripts /w `exec` if -v > 1.4
2015-03-20 12:07:43 -04:00
Marc O'Morain
9b2d219cab
MAC address can be upper or lower case
2015-03-18 16:40:05 +00:00
Mojo Talantikite
d174ffe1fa
Fix digitalocean provider for private images [ fixes mitchellh/packer#1792 ]
2015-03-12 19:01:51 -04:00
renat-sabitov-sirca
d046e1cc5b
Fixing transient AWS errors during EBS builds
...
Relates to #1539
AWS is eventually consistent and instance can be not visibile for
some time after creation. This fix eliminates describe-instances
call before going to the proper wait loop
2015-03-11 10:34:21 +11:00
Andrew Beresford
a81c8905fb
Add 1/10th second delay between key events to VNC
2015-03-09 13:58:46 +00:00
Ash Caire
361e859556
Add EBS snapshot tags
2015-03-01 10:27:30 +11:00
Colin Hebert
a08725f7c5
Add auto discovery of AZ based on the subnet
2015-03-01 00:00:45 +11:00
Emil Hessman
57468b3d1a
builder/vmware/iso: fix incorrect printf verb type in test
...
Fixes the following vet report:
builder/vmware/iso/builder_test.go:178: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:18 +01:00
Emil Hessman
fdb64f6f25
builder/vmware/common: fix missing format argument for Fatalf call in test
...
Fixes the following vet report:
builder/vmware/common/step_shutdown_test.go:130: missing argument for Fatalf("%s"): format reads arg 1, have only 0 args
2015-02-25 05:43:17 +01:00
Emil Hessman
96b62af551
builder/virtualbox/iso: fix incorrect printf verb type
...
Fixes the following vet report:
builder/virtualbox/iso/builder_test.go:86: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:17 +01:00
Emil Hessman
cceb4b2868
builder/qemu: fix incorrect printf verb type
...
Fixes the following vet report:
builder/qemu/builder_test.go:163: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:17 +01:00
Emil Hessman
b19f9b9777
builder/parallels/iso: fix incorrect printf verb type
...
Fixes the following vet report:
builder/parallels/iso/builder_test.go:78: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:17 +01:00
Emil Hessman
f5782084e5
builder/openstack: address vet reports
...
Fixes the following vet reports:
builder/openstack/artifact.go:44: arg a.ImageId for printf verb %d of wrong type: string
builder/openstack/step_wait_for_rackconnect.go:24: arg server for printf verb %s of wrong type: *github.com/mitchellh/gophercloud-fork-40444fb.Server
2015-02-25 05:42:19 +01:00
Emil Hessman
002e50f493
builder/googlecompute: fix formatting directives
...
Fixes the following vet reports:
builder/googlecompute/step_create_instance_test.go:42: possible formatting directive in Fatal call
builder/googlecompute/step_teardown_instance_test.go:29: possible formatting directive in Fatal call
builder/googlecompute/step_teardown_instance_test.go:39: possible formatting directive in Fatal call
2015-02-25 05:29:53 +01:00
Emil Hessman
413b84af6b
builder/digitalocean: fix incorrect printf verb types
...
Fixes the following vet reports:
builder/digitalocean/builder_test.go:267: arg b.config.SSHUsername for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:300: arg b.config.RawSSHTimeout for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:341: arg b.config.RawStateTimeout for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:382: arg b.config.PrivateNetworking for printf verb %s of wrong type: bool
builder/digitalocean/builder_test.go:397: arg b.config.PrivateNetworking for printf verb %s of wrong type: bool
2015-02-25 05:29:53 +01:00
Emil Hessman
505f51ff27
builder/amazon/ebs: fix incorrect printf verb type
...
Fixes the following vet report:
builder/amazon/ebs/step_create_ami.go:90: arg resp.Return for printf verb %s of wrong type: bool
2015-02-25 05:29:53 +01:00
Emil Hessman
05c2206684
builder/amazon/common: fix incorrect printf verb type in amiRegionCopy
...
Fixes the following vet reports:
builder/amazon/common/step_ami_region_copy.go:81: arg target for printf verb %s of wrong type: github.com/mitchellh/goamz/aws.Region
builder/amazon/common/step_ami_region_copy.go:93: arg target for printf verb %s of wrong type: github.com/mitchellh/goamz/aws.Region
2015-02-25 05:29:53 +01:00
Seth Vargo
c338d313db
Merge pull request #1925 from tdooner/add_rackconnect_support
...
Add Rackconnect support to openstack builder
2015-02-24 20:02:26 -05:00
Seth Vargo
500654714c
Merge pull request #1932 from bhourigan/issue1931
...
ec2-upload-bundle uses deprecated parameter
2015-02-24 19:54:33 -05:00
Seth Vargo
4f22fd25f5
Merge pull request #1875 from ryanuber/f-dofix
...
builder/digitalocean: fix response decoding after api changes
2015-02-24 17:01:23 -05:00
Brian Hourigan
f40fd36c31
Changing --region to --location
2015-02-19 14:40:36 -05:00
Brian Hourigan
8e69403735
Prepending -i to sudo so PATH is inherited from profile.d scripts related to ec2 tooling
2015-02-19 14:32:27 -05:00
Tom Dooner
6e92e60eef
Add Rackconnect support
...
This adds two config options that we need in order to successfully build
our Rackspace images.
First, a boolean `rackconnect_wait` option which waits for the
RackConnect metadata to appear.
Second, an `ssh_interface` option, for rackconnect users who have more
prohibitive firewalls on the 'public' interface and want to ensure all
traffic to the server goes over the 'private' one.
Finishes #952 .
2015-02-17 05:23:21 +00:00
Billie H. Cleek
2184892f8a
do not request a pty
...
Change the default behavior from requesting a PTY when executing a
command with the ssh communicator to requesting a PTY only when
configured to do so.
Update the vmware builders to be fully backward compatible with the new
behavior.
2015-02-12 20:18:54 -08:00
Jen Spinney
40fdb15d03
Support user variables for all OpenStack string config options
2015-01-30 18:02:59 -08:00
Ryan Uber
78d6dda005
builder/digitalocean: fix response decoding after api changes
2015-01-26 13:19:46 -08:00
Danny Lockard
7d1b95c907
Formatting fix :)
2015-01-16 10:34:12 -06:00
Danny Lockard
84d6d856f6
Add the ability to create a SCSI Device as the main HD controller for
...
virtualbox.
2015-01-15 19:53:01 -06:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
43f08b2664
go fmt all the things
2015-01-13 22:58:41 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
62e054c404
simplify output
2015-01-13 21:40:15 -05:00
Sebastian Röder
555b89567f
s/VirtualBox/VMware in comment
2015-01-13 22:43:24 +01:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
9d097f9d4e
Permit Temp keys and named SSH keypairs
...
These changes permit the use of pre-created SSH keypairs with AWS. If
so, the configuration for the builder needs to include an
ssh_keypair_name option and a ssh_private_key_file.
If ssh_private_key_file is *not* defined, it'll go through the
rigamarole of creating a temporary keypair. The ssh_keypair_name option
by itself won't make that change, because it doesn't make sense to
specify a keypair but not tell packer where the private key is, but it
does happen that you could have a private key and the public-key is
"baked in", and not part of your EC2 account.
2015-01-13 16:27:33 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
8c87b1cc00
First attempt for re-using a named EC2 keypair
...
Adds a 'ssh_keypair_name' option to the configuration
for AWS, along with some munging to create the
temporarily keypair if one isn't specific.
NOT YET WORKING.
From a 'make' I get the following errors:
builder/amazon/ebs/builder.go:94: b.config.SSHKeyPairName undefined
(type config has no field or method SSHKeyPairName)
builder/amazon/instance/builder.go:199: b.config.SSHKeyPairName
undefined (type Config has no field or method SSHKeyPairName)
2015-01-13 13:12:04 -05:00
Colin Hebert
42d05368ae
Save the generated SSH key as a file in debug mode
2015-01-10 23:52:45 +11:00
Rickard von Essen
4a0c242c3f
Merge pull request #1760 from rickard-von-essen/issue-1746
...
builder/parallels: Use most recent DHCP lease when determining IP.
2015-01-07 11:27:27 +01:00
Rickard von Essen
d424ed1e37
builder/parallels: Use most recent DHCP lease when determening IP.
...
Fixes #1746 . Problem establishing SSH connection with Fedora 21 and
Parallels
2014-12-28 22:22:16 +01:00
Godefroid Chapelle
f52283d78e
all calls to cp should be escaped
2014-12-22 12:58:41 +01:00
Godefroid Chapelle
ff0772d479
Merge remote-tracking branch 'origin' into patch-1
2014-12-22 12:45:50 +01:00
Ross Smith II
10dee1bd68
Temporarily fix build by forking golang.org/x/oauth2 @ b3f9a68
2014-12-21 11:22:24 -08:00
Ryan Uber
010c77d05f
builder/digitalocean: default to nyc3
2014-12-10 00:26:56 -08:00
Mitchell Hashimoto
2dfc5d3e71
builder/amazon: inject special metadata for atlas artifacts
2014-12-09 16:14:04 -08:00
Eric Johnson
24a774f0d3
Merge pull request #1737 from dcarlino/failfast_gce
...
Check if image already exists before doing anything else on GCE.
2014-12-09 12:10:05 -08:00
Dustin Carlino
fe47f45800
Remove bucket_name from GCE config.
...
Fixes #1732 . Forgot to do this in 23c947acf0
.
2014-12-09 08:44:01 -08:00
Dustin Carlino
7c67228912
Check if image already exists before doing anything else on GCE.
...
This fixes #1729 .
2014-12-09 08:42:34 -08:00
Armon Dadgar
20d040dcba
Merge pull request #1723 from irgeek/fix-1637
...
Use an index loop as range loops over copies, not references
2014-12-08 11:43:30 -08:00
Armon Dadgar
44602df62f
Merge pull request #1675 from cgroschupp/bugfix_vmx_upload
...
Upload VMX to ESX5 after editing
2014-12-08 11:41:46 -08:00
Armon Dadgar
2dace054bf
Merge pull request #1707 from gergnz/master
...
change ordering of ssh connection IP for amazon. fixes #1559
2014-12-08 11:17:09 -08:00
Armon Dadgar
dd5de1e342
Merge pull request #1692 from nitrous-io/digitalocean-image-id
...
Use DigitalOcean image ID for artifact Id()
2014-12-08 11:16:08 -08:00
Armon Dadgar
183d4a8474
Merge pull request #1700 from legal90/iss-1667
...
Parallels: Fixed issue #1667
2014-12-08 11:13:44 -08:00
Godefroid Chapelle
5a892560c3
Merge remote-tracking branch 'origin/master' into patch-1
2014-12-06 00:49:50 +01:00
James Sinclair
02ebef9031
Use an index loop as range loops over copies, not references
...
Fixes #1637
2014-12-05 17:27:00 +11:00
Godefroid Chapelle
955122f2e1
Be more explicit about escaping alias
2014-12-02 15:07:29 +01:00
Godefroid Chapelle
075abfeeae
Escapes cp alias
...
Fix for #1656
2014-12-02 14:58:13 +01:00
Greg Cockburn
dbaf865e59
change ordering of ssh connection IP for amazon. fixes #1559
2014-12-01 10:44:52 +11:00
rhapsodhy
dd547af0c4
fix googlecompute oauth dependency
2014-11-30 04:15:44 +00:00
Mikhail Zholobov
a5b21c59ba
builder/parallels: Move setting the boot order to the separated step
2014-11-27 17:13:50 +03:00
Mikhail Zholobov
05affceaef
builder/parallels: Attach bootable ISO exactly to cdrom0 [GH-1667]
2014-11-27 17:11:16 +03:00
Seth Vargo
1954cc9758
Merge pull request #1628 from israelshirk/hotfix/docker-communicator-symlink
...
Fixes Docker communicator mishandling of symlinks in UploadDir()
2014-11-26 16:28:41 -05:00
Seth Vargo
96c813684e
Merge pull request #1645 from vtolstov/qemu_disk
...
Allow none checksumtype for qemu builder
2014-11-26 16:28:19 -05:00
Seth Vargo
a60039e720
Merge pull request #1650 from vtolstov/digitalocean
...
fix digitalocean v2 api content-type when using json
2014-11-26 16:25:19 -05:00
Seth Vargo
31a1aa48b4
Merge pull request #1662 from vtolstov/disk_image
...
When using disk_image CD-ROM not needed
2014-11-26 16:10:47 -05:00
Dustin Carlino
23c947acf0
Create GCE image from persistent disk instead of from a tarball.
...
The new flow:
1) Provision the instance
2) Tear down the instance, but keep the boot disk
3) Create an image from the disk
4) Tear down the disk
The step to update gcloud is no longer needed, since gceimagebundle isn't used anymore.
Fixes #1507 and addresses https://github.com/mitchellh/packer/issues/1447#issuecomment-61610235 .
2014-11-25 17:07:06 -08:00
pleschev
431647997c
Merge pull request #2 from mitchellh/master
...
Update skip_nat_port to latest master.
2014-11-26 07:52:42 +11:00
Eric Johnson
87001dba60
Merge pull request #1679 from evandbrown/gce-service-accounts
...
Use golang/oauth2, no longer require client_secrets.json, and use
2014-11-24 05:43:11 -08:00
Cheah Chu Yeow
3d6865fafc
builder/digitalocean: use DigitalOcean image ID for artifact Id().
2014-11-24 08:14:05 +00:00
Evan Brown
ff149df30f
Use golang/oauth2, no longer require client_secrets.json, and use
...
Service Account when run from a GCE Instance.
2014-11-21 12:45:27 -08:00
Misha Brukman
74e1be7469
Added the Ubuntu image project for GCE.
...
The documentation:
https://cloud.google.com/compute/docs/operating-systems#ubuntu
shows that `ubuntu-os-cloud` is the proper project name.
2014-11-17 23:00:52 -05:00
Christian Groschupp
e9246ec490
builder/vmware/iso: Upload VMX to ESX5 after editing [GH-1422,GH-1083]
2014-11-16 19:48:02 +01:00
Israel Shirk
d4080244b0
Resolves issue where docker communicator mishandled symlinks by treating them as files
2014-11-12 14:22:48 -07:00
Vasiliy Tolstov
1e87e796dc
fix using private ip address in digitalocean builder
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-12 22:57:29 +03:00
Vasiliy Tolstov
2126615b3d
disk_filename is used for artifacts, but it missed in case of disk_image = true
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-06 23:47:00 +03:00
Vasiliy Tolstov
16110c6be6
add CD-ROM only if not used disk_image, also boot from it only if CD-ROM present
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-06 23:13:09 +03:00
Vasiliy Tolstov
8af85df822
add error code for failed auth
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-02 18:47:11 +03:00
Vasiliy Tolstov
a5dc41a730
fix digitalocean v2 api content-type when using json
...
In case of using json we need to set content-type header.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-02 01:47:04 +03:00
Vasiliy Tolstov
4762075dc3
add missing variable
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-31 16:15:23 +03:00
Vasiliy Tolstov
5631873727
allow none checksumtype for qemu builder (copy/paste from virtualbox)
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-31 16:07:04 +03:00
Vasiliy Tolstov
e5ea82f920
fix digitalocean v2 api size response
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-30 22:16:21 +03:00
Mitchell Hashimoto
06144cf287
fmt
2014-10-28 08:43:19 -07:00
Mitchell Hashimoto
0db6cd3533
Merge pull request #1330 from qur/qemu-vagrant
...
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto
60e2a8b5fc
Merge pull request #1342 from iwebhosting/qemu-image-support
...
Add support for building QEMU images from pre-existing image files
2014-10-28 08:38:51 -07:00
Mitchell Hashimoto
cdc0a53f92
builder/vmware: fix compilation issues
2014-10-28 08:37:12 -07:00
Mitchell Hashimoto
6c44d72112
Merge pull request #1403 from notogawa/issue-1334
...
Fixes #1334 , Add power on retry to ESXi Driver.
2014-10-28 08:35:42 -07:00
Mitchell Hashimoto
e422a45449
fmt
2014-10-28 08:35:21 -07:00
Mitchell Hashimoto
7865026e22
Merge pull request #1463 from vtolstov/digitalocean
...
add digitalocean v2 api support
2014-10-28 08:30:23 -07:00
Mitchell Hashimoto
00543fe582
Merge pull request #1479 from jasonberanek/esxi-remote-cache
...
buidler/vmware-esxi: Add configuration options for the remote location to cache ISO and floppy files
2014-10-28 08:28:15 -07:00
Mitchell Hashimoto
7ad8f33ddb
Merge pull request #1530 from Quintok/master
...
#1191 - Add VMWare virtualhw.version configuration option under 'version'
2014-10-28 08:27:22 -07:00
Mitchell Hashimoto
51daea504e
Merge pull request #1630 from routelastresort/master
...
builder/vmware: accept SATA drives on root VMX
2014-10-28 08:27:08 -07:00
Mitchell Hashimoto
fc5db2604e
builder/vmware: FUSION_APP_PATH to specify path [GH-1552]
2014-10-28 08:21:39 -07:00
Mitchell Hashimoto
716d4719dc
Merge pull request #1622 from delitescere/GH-1533-aws-timeout
...
builder/amazon: Extend timeout and allow user override [GH-1533]
2014-10-28 08:15:18 -07:00
Vasiliy Tolstov
e1e3d3c1e1
fix quote in variable name
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-28 17:25:53 +03:00
Vasiliy Tolstov
10612b5d89
try to avoid pagination
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-28 16:05:37 +03:00
Vasiliy Tolstov
8f9e9abca1
Merge branch 'master' into digitalocean
2014-10-28 16:03:32 +03:00
John Deatherage
68fbf5c21a
builder/vmware: accept SATA drives on root VMX
2014-10-28 00:58:46 -07:00
Nick Cronin
1aa102dd06
addresses #1191 - Add VMWare virtualhw.version configuration option under 'version'
2014-10-28 11:49:04 +11:00
Mitchell Hashimoto
4406c20af1
builder/amazon: prefer token in config [GH-1544]
2014-10-27 17:29:40 -07:00
Mitchell Hashimoto
83772fc5b8
Merge pull request #1509 from kamazee/fix_detecting_guest_additions_when_sysprop_empty
...
Fix detecting guest additions URL
2014-10-27 17:04:03 -07:00
Mitchell Hashimoto
c161f9adc5
Merge pull request #1558 from vtolstov/qemu_cache
...
builder/qemu: add ability to set cache mode for disk
2014-10-27 16:56:16 -07:00
Mitchell Hashimoto
145056185c
builder/vmware: accept SATA drives on root VMX
2014-10-27 16:53:25 -07:00
Mitchell Hashimoto
ef0a3f1952
Merge pull request #1604 from chilcote/add-sata-to-vmx-builder
...
updated step_clone_vmx.go to work with vmx files using sata
2014-10-27 16:51:55 -07:00
Mitchell Hashimoto
2575b09dc8
Merge pull request #1570 from kouk/master
...
figure out VirtualBox version on FreeBSD
2014-10-27 16:50:15 -07:00
Mitchell Hashimoto
607f7214b5
builder/docker: allow DOCKER_HOST
2014-10-27 16:49:39 -07:00
Mitchell Hashimoto
4bc578a029
Merge pull request #1605 from legal90/parallels-disable-cdrom
...
builder/parallels: Default cdrom0 should be disconnected
2014-10-27 16:47:20 -07:00
Mitchell Hashimoto
b06cceec25
builder/openstack: lock to fork for now to compile [GH-1625]
2014-10-27 16:40:49 -07:00
Josh Graham
5a2c4fe8a0
builder/amazon: Extend timeout and allow user override [GH-1533]
...
- help resolve https://github.com/mitchellh/packer/issues/1533
(although timeouts are always ultimately useless in a distributed
system!)
- makes packer no more idempotent or janitorial than before
- derive maximum number of ticks from timeout
- default timeout to 300s (5m) to cater for global AMI copying
- allow user to override with AWS_TIMEOUT_SECONDS environment variable
2014-10-27 10:38:44 +11:00
Mikhail Zholobov
6e778e7244
builder/parallels: Default cdrom0 should be disconnected
...
Otherwise, the error message will be displayed in GUI:
"Unable to connect CD/DVD 0"
2014-10-21 16:44:43 +04:00
Joseph Chilcote
d46187da4b
updated step_clone_vmx.go to work with vmx files using sata
2014-10-20 20:58:12 -07:00
Mitchell Hashimoto
d89fd906a4
Merge pull request #1504 from sneal/always-remove-vmx-floppy-entries
...
Clean VMX step should always remove floppy.
2014-10-14 16:09:28 -07:00
Mitchell Hashimoto
14fae4c5a3
Merge pull request #1561 from kholloway/master
...
builder/qemu: Updates to QEMU builder - Fix -redir and machine type issues
2014-10-14 16:07:00 -07:00
Mitchell Hashimoto
010cdb2057
amazon/common: style
2014-10-14 15:39:13 -07:00
Mitchell Hashimoto
ce22c4eda6
Merge pull request #1579 from mpage/handle-transient-aws-errors
...
providers/aws: Ignore transient network errors when fetching AWS state.
2014-10-14 15:38:01 -07:00
Matt Page
6fb2586fb2
fix: Ignore transient network errors when fetching AWS state.
...
Given that state fetching is an idempotent operation, a transient
network error should not cause the entire build to fail. Instead,
retry when such errors are encountered.
2014-10-13 10:02:46 -07:00
Konstantinos Koukopoulos
a8b8658245
figure out VirtualBox version on FreeBSD
2014-10-09 11:45:03 +03:00
Matt Page
0fe61fa1e0
fix: Respect metadata supplied for GCE builders.
...
Previously, any per instance metadata supplied via the GCE builder
was ignored.
Test plan:
- make test
- Manual testing via:
-- Created a packer config that contained a GCE builder with custom
metadata set.
-- Ran `packer build`.
-- Verified the instance had the correct metadata in the GCE console.
2014-10-06 14:18:34 -07:00
Kent Holloway
a3e4554a15
Merge remote-tracking branch 'upstream/master'
2014-10-06 10:14:08 -05:00
Kent Holloway
9e2d0af5ab
Reverting previous change, including M on memory line to be explicit about what we are requesting
2014-10-06 10:11:39 -05:00
Vasiliy Tolstov
8efc8ec984
add ability to set cache mode for disk
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-06 01:09:45 +04:00
Rickard von Essen
d75d44ad9e
Merge pull request #1548 from legal90/create_disk
...
builder/parallels: Create VM without hdd and then add it later
2014-10-04 23:06:15 +02:00
Mikhail Zholobov
eb37742ab0
builder/parallels: Disable default cdrom0 device and then enable it on cleanup
...
This is needed to make 'cdrom0' device unavailable during the ISO installation process.
It is required for some guest OS types, such as FreeBSD and OmniOS.
2014-10-04 22:39:54 +02:00
Mikhail Zholobov
13251ced49
builder/parallels: Added setting the boot order
...
CD/DVD drive with installation ISO should be exactly the 2nd device in the VM boot order.
This ensures that VM will boot from this ISO at the first boot time only.
2014-10-04 22:39:54 +02:00
Mikhail Zholobov
280c3c52de
builder/parallels: Attach ISO images to the separate cdrom device
...
For each ISO image the individual cdrom device will be added to the VM. During the cleanup these devices will be deleted.
It makes attach steps more clear - there is no doubt what is the name of the device.
Related to: [mitchellh/packer#1502 ]
2014-10-04 22:39:54 +02:00
Mikhail Zholobov
0cfe58193f
builder/parallels: Added driver method 'DeviceAddCdRom'
2014-10-04 22:39:54 +02:00
JessThrysoee
5394ce61fd
builder/parallels: Rely on Cleanup functions to detach devices
...
Remove the redundant StepRemoveDevices and rely on the cleanup to be handled by:
* StepAttachParallelsTools.Cleanup
* StepAttachFloppy.Cleanup
* stepAttachISO.Cleanup
2014-10-04 22:39:54 +02:00
Rickard von Essen
57ad64da30
Merge pull request #1501 from JessThrysoee/current_fdd0_does_not_exist
...
builder/parallels: Ignore 'The fdd0 device does not exist'
2014-10-04 18:04:08 +02:00
Kent Holloway
6b5a505384
-redir is deprecated and missing on some versions of QEMU, using -netdev instead which is recommended. Removing M letter from Memory flag as QEMU now assumes this value is always in MB and errors out if you pass the M as a part of the command
2014-10-03 10:39:57 -05:00
Kent Holloway
2755ba1751
Changing machinetype default to PC instead of PC-1.0 which seems to be a saner default that works on more platforms. RedHat in particular doesnt have PC-1.0
2014-10-03 10:37:03 -05:00
Kent Holloway
2cf7e694bc
Fix for panic when ssh min and max port is the same for qemu builder. Taken directly from a previous patch by mitchellh 8f50d2dd9a
2014-10-03 10:14:02 -05:00
Vasiliy Tolstov
e614a8c3d5
remove debug output
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-03 01:47:51 +04:00
Vasiliy Tolstov
f4c756a2cb
fix copy/paste error
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-03 00:02:46 +04:00
Mikhail Zholobov
48c64b05cb
builder/parallels: Init VM without hdd and attach it later
...
Avoid the disk resize because it is unsupported for some guests (OS X)
http://kb.parallels.com/en/113653
2014-10-01 16:13:46 +04:00
Shawn Neal
5fd9651982
GH 1508 - Ensure Packer VMX is updated and saved
...
We need to ensure the VMWare process has exited before attempting to run VMX file cleanup steps, otherwise VMWare may overwrite our changes. While Packer does its best to ensure VMWare has exited, there's still a race condition on some OSs between VMWare flushing the VMX and Packer updating it. The workaround is to artifically wait 5 seconds.
When using the VMX builder its possible for the source machine to have a floppy and/or CD-ROM mounted which gets cloned to the new VM Packer spins up, but have no Packer configuration for those devices. With this change we always attempt to remove the mounted devices regardless of the Packer configuration.
2014-09-24 09:42:10 -07:00
Julian Phillips
60e608dfdb
Add support for vagrant with qemu
...
Once we have produced a qemu VM, we now have the option of using
the vagrant post-processor to create a .box file that can be used with
the vagrant-libvirt plugin.
This uses the new State method of the Artifact API to get necessary
information from the builder.
2014-09-22 11:15:47 +01:00
Julian Phillips
90a57c411f
Expand Artifact API to expose build state
...
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00
JessThrysoee
16b82d6d15
builder/parallels: Bundle python version of prltype
...
Uses the Python API from Parallels Virtualization SDK to write
boot commands.
This eliminates a 3rd party requirement and makes it easier for people
not using homebrew to get started with packer.
2014-09-19 22:19:15 +02:00
JessThrysoee
cf6532ffe2
builder/parallels: Ignore 'The fdd0 device does not exist'
...
A current floppy disk probably doesn't exist, so the build shouldn't
fail when we try to delete it.
2014-09-18 20:36:05 +02:00
Alexander Kurilo
3592d67093
Fix detecting guest additions URL
...
When system property exists with empty value, packer treats that
empty value as a URL. The issue has been spotted on Arch
with Virtualbox 4.3.16.
2014-09-18 10:53:13 -04:00
Jason A. Beranek
8689301d68
builder/vmware-esxi: Ignore localhost for VNC lookup [GH-1480]
...
Adds logic to ESXi driver VNC Address function to ignore listen
addresses that bind to localhost (127.0.0.1), this allows certain
default ports to be available on ESXi for VNC connections
2014-09-16 22:00:52 -05:00
Shawn Neal
7d9c252b3a
Clean VMX step should always remove floppy.
...
When using the VMX builder its possible for the source machine to have a floppy configured which gets cloned to the new VM Packer spins up. When the new VM's Packer config doesn't have a floppy_files config entry, the Packer clean VMX step fails to remove the floppy disk from the new VM. This can cause build failures, for example with the vsphere post processor; generating errors like:
* Post-processor failed: Failed: exit status 1
Error: File (/home/teamcity/tmp/buildTmp/packer941120499) could not be found.
Opening the cloned VM's VMX file you can clearly see it has a floppy entry from the source machine's VMX file (exact same path) even though the Packer config contains no floppy_files entry.
2014-09-16 18:27:00 -07:00
John Deatherage
e571a133b0
fixed vmware-vmx step order
2014-09-14 04:28:55 -07:00
Ross Smith II
a7aa20c8c7
Add support for VMware Fusion 7 Pro [GH-1478]
2014-09-10 10:14:50 -07:00
Jason A. Beranek
b6eb3eba1d
builder/vmware-esxi: Add configuration options for remote cache path
...
Add configuration option to explicitly control where Packer uploads
ISO and floppy files to on ESXi hosts. The `remote_cache_datastore`
defaults to the `remote_datastore` value. The 'remote_cache_directory'
defaults to 'packer_cache', similar to the local caching capabilities.
Addresses issues with [GH-1218] and [GH-1221] where paths for uploaded
ISO and floppy files are not written to a valid location in the
datastore.
2014-09-10 00:10:06 -05:00
Mitchell Hashimoto
75395af12d
Merge branch '1064-fix-upload-file-permissions' of github.com:rasa/packer into rasa-1064-fix-upload-file-permissions
...
Conflicts:
builder/parallels/common/step_upload_parallels_tools.go
builder/vmware/common/step_upload_tools.go
provisioner/chef-client/provisioner.go
provisioner/chef-solo/provisioner.go
2014-09-08 13:20:46 -07:00
Mitchell Hashimoto
812ba35479
fmt
2014-09-08 10:28:21 -07:00
Mitchell Hashimoto
dc0de7da49
builder/amazon-ebs: don't clean up AMI if doesn't exist [GH-1469]
2014-09-08 09:53:20 -07:00
Rickard von Essen
365b44c5af
parallels-iso: allow absolute output directory.
...
Fixes [GH-1466]
2014-09-08 11:00:59 +02:00
Mitchell Hashimoto
db90c16118
builder/amazon: support auto spot price discovery [GH-1465]
2014-09-06 10:44:12 -07:00
Mitchell Hashimoto
a587bd47a1
builder/amazon/ebs: clean up AMI in error [GH-1186]
2014-09-06 10:12:33 -07:00
Mitchell Hashimoto
669f26a108
Merge pull request #1186 from henrysher/ami-cleanup
...
Add the cleanup when the process of EBS AMI interrupted
2014-09-06 10:10:10 -07:00
Mitchell Hashimoto
7d1db44ca4
builder/amazon: clean up UI output for spot instances a bit
2014-09-05 16:58:17 -07:00
Mitchell Hashimoto
2e5f3da5c1
builder/amazon: fix {{uuid}} default not being replaced
2014-09-05 16:38:05 -07:00
Mitchell Hashimoto
3a69b8c1b8
Merge branch 'add-spot-instance-support' of github.com:henrysher/packer into henrysher-add-spot-instance-support
...
Conflicts:
builder/amazon/common/run_config.go
builder/amazon/ebs/builder.go
builder/amazon/instance/builder.go
2014-09-05 16:30:22 -07:00
Mitchell Hashimoto
c9cc82d89e
builder/amazon-chroot: add description with time created snapshot
...
[GH-1388]
2014-09-05 16:10:33 -07:00
Mitchell Hashimoto
e4dc5d31d8
builder/docker: support volumes
2014-09-05 15:48:42 -07:00
Mitchell Hashimoto
2e4882f0c3
builder/docker: can login to pull
2014-09-05 15:24:12 -07:00
Mitchell Hashimoto
622b9f459a
builder/docker: lock around Login
2014-09-05 15:06:07 -07:00
Mitchell Hashimoto
d32b4b4f84
builder/docker: driver supports login/logout
2014-09-05 14:26:19 -07:00