Commit Graph

5537 Commits

Author SHA1 Message Date
Mark Peek 77bfd1de2e Workaround docker-machine shared folder mapping issue
When using docker-machine on a Mac only the /Users folder is shared with
the VM. Uploads fail since the normal tmpdir is not shared. This change
uses the local packer directory (usually when run in the users home
folders) allowing it to work without setting TMPDIR explicitly. A better
fix would be to use the docker API directly but that would force users
to use docker API version 20+.
- fixes #901, fixes #1752, fixes #2436, fixes #2675, fixes #2697.
2015-10-07 13:29:53 -07:00
Mark Peek a3a7c974d0 Merge pull request #2422 from vtolstov/qemu
fix qemu driver and builder
2015-10-06 21:30:38 -07:00
Mark Peek 5ef142c8bd Fixes #2777: isotime interpolation uses InitTime 2015-10-06 16:45:30 -07:00
Adrian Bridgett da771c469e spot_price of "0" to mean on demand
this helps avoid duplicating packer templates just to select
spot instances or not
2015-10-06 22:13:17 +01:00
Adrian Bridgett 8349e22df9 Add ebs_optimized support 2015-10-06 21:36:21 +01:00
Sébastien Fievet 3495204382 Fix ansible inventory example 2015-10-06 15:04:04 +02:00
Chris Becker 647a072257 Fix template error on ansible provisioner documentation 2015-10-05 13:19:21 -04:00
James Nugent b60e1fd862 Add suggestion to AWS Instance builder error message
A common cause of the failure of the bundle volume step is missing the
ec2-bundle-vol command on the target instance. This commit adds a note
about this to the error message produced as Packer output if the
bundling step fails (it is already in the documentation).
2015-10-02 17:06:33 -04:00
Mark Peek 2411c779d1 Make qemu ssh_wait_timeout example more reasonable 2015-10-01 22:52:06 -07:00
Chris Bednarski 4116dff925 Merge pull request #2789 from rk295/patch-1
Confusing to specify this twice
2015-10-01 11:44:03 -07:00
Shawn Neal 357e494ee3 Fix failing Windows guest command tests 2015-10-01 10:04:59 -07:00
Shawn Neal 7195b2f35b Add Windows to Chef provisioner documentation 2015-10-01 10:04:59 -07:00
Shawn Neal 8014dac742 Add Windows support to Chef provisioners
- Add guest os type to change the default Chef-Solo and Chef-Client provisioner behavior. Paths, commands etc.
- Change Chef installation download location to chef.io domain
- Add encrypted data bag secret configuration
2015-10-01 10:04:59 -07:00
Shawn Neal affebcda86 Windows Powershell commands need to specify shell
The WinRM communicator defaults to the regular Windows cmd shell so we need to tell Packer to use Powershell when running these guest commands.
2015-10-01 10:02:11 -07:00
Shawn Neal 67f6d6cdb5 Adds provisioner guest commands abstraction
Provisioners often needs to perform command line operations on guests that may have different syntax and shells. The GuestCommands type abstracts these away so provisioners can avoid littering branching logic all over the place.
2015-10-01 10:02:10 -07:00
dragon788 c48e2319ab Added correct format for compression_level 2015-09-30 20:40:58 -05:00
Robin Kearney 87f2f7c96d Confusing to specify this twice 2015-09-30 13:13:46 +01:00
Eric Herot 5091f0a221 Add documentation about the encrypted data bag secret flag to the Chef Client provisioners section 2015-09-29 14:52:49 -04:00
Chris Bednarski 024132a698 Merge pull request #2780 from jarl-dk/master
Makefile fix
2015-09-26 21:59:21 -07:00
Jarl Friis 8ab4a5f3a5 Makefile fix 2015-09-26 13:33:30 +02:00
Chris Bednarski f2013a9c0c Merge pull request #2775 from mitchellh/atlas-support-compile-id
post-processor/atlas: support sending compile ids
2015-09-25 12:01:52 -07:00
Jack Pearkes 6bf790a975 post-processor/atlas: support sending compile ids
Requires https://github.com/hashicorp/atlas-go/pull/44
2015-09-25 11:52:38 -07:00
Lee Thompson cef4e88922 Add some more documentation around ssh_keypair_name and ssh_private_key_file 2015-09-21 13:52:18 -05:00
Eran Chetz 569121519d minor change that was majorly bugging me 2015-09-21 16:32:18 +03:00
Rickard von Essen 23c4c015a6 Merge pull request #2757 from rickard-von-essen/gce_fix
Fixed GCE builder after dependency change.
2015-09-20 10:37:23 +02:00
Rickard von Essen 9cf99289c5 Fixed GCE builder after dependency change.
See
4af91da601
2015-09-20 10:14:07 +02:00
Israel Shirk c81a486f34 Rearranges vmware builders to put compaction before VMX finalization to avoid stomping VMX changes 2015-09-18 07:51:46 -06:00
Rickard von Essen e4dc543cae Fixes #2743: Change log messages for step_forward_ssh
Changed the log messages and changed the m name of the
VirtualBox builder NAT rule name from packerssh to
packercomm.
2015-09-17 13:43:08 +02:00
Rickard von Essen 3f14b9d984 Merge pull request #2731 from legal90/prl-compact-disk
Parallels: Add "CompactDisk" build step
2015-09-16 14:03:31 +02:00
Rickard von Essen b528811540 Merge pull request #2662 from rickard-von-essen/prl_pd11
Parallels Desktop 11: verify correct edition and enable headless mode
2015-09-16 13:34:05 +02:00
Jesse Callaway 7def47f376 indent ami_block_device_mappings subkeys 2015-09-15 10:33:44 -04:00
Vasiliy Tolstov 48f8612b72 add virtio-scsi
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-09-15 10:59:29 +00:00
James Nugent 632d38a1c5 Tag EBS volumes with volume_tags in EBS builder
This change allows specification of a new "volume_tags" array in the
amazon-ebs builder in order to allow tagging of volumes used on the
source instance. It is implemented as a new step which is skipped if
there are no tags specified.
2015-09-11 16:39:34 -04:00
Justin Campbell 4cd70a2467 Fix Atlas /operations link 2015-09-11 09:42:58 -04:00
Mikhail Zholobov 36a6fc2cc4 website/docs: Add description of "skip_compaction" option for Parallels builders 2015-09-11 16:13:39 +03:00
Mikhail Zholobov abfe706fc6 builder/parallels: Add "StepCompactDisk" 2015-09-11 11:38:20 +03:00
Mikhail Zholobov f7b26e44fe builder/parallels: Add "CompactDisk" driver function
This function compacts the specified virtual disk image.
2015-09-11 11:37:52 +03:00
Jon Benson dd286ff63c Add artifact_types 2015-09-08 12:51:24 -05:00
Vasiliy Tolstov 3fae902bc3 enable discards only on qemu >= 2
older qemu versions does not have discard option, so not enable it

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-09-08 10:40:23 +00:00
Mikhail Zholobov 4ebee7bf3f builder/parallels: Add "DiskPath" driver function
This function determines path to the first virtual disk image of the specified virtual machine.
2015-09-05 13:08:24 +03:00
Jon Benson 673baa12d0 Add vmware and virtual box to artifact_types 2015-09-04 15:08:27 -05:00
Jon Benson 5e27f9353f Document recommended artifact_type 2015-09-04 15:01:35 -05:00
Jon Benson dbd1a13f0d Document recommended artifact-types 2015-09-04 14:51:35 -05:00
Kevin Pettijohn 3034e12e5a Pandoc formating 2015-09-01 09:20:52 -07:00
Kevin Pettijohn 0950eac836 Add a chef-client local mode example
* Configure the `chef-client` provisioner for local mode
* Provide an example run_list
2015-08-31 19:54:18 -07:00
Gonzalo Peci f01f62dc88 Add specific exit codes listed on https://msdn.microsoft.com/en-us/library/windows/desktop/ms681383(v=vs.85).aspx 2015-08-28 09:55:14 +12:00
Gonzalo Peci 8bd3e62853 Because the new functionality makes the ```waitForRestart()``` function run commands it modifies the value of ```comm.StartCmd.Command``` that is being checked, we need to implement the same workaround that is being used for the ```waitForCommunicator()``` function. This should make the test work again and retain functionality. 2015-08-28 09:54:59 +12:00
Gonzalo Peci 08359e409a Revert the shutdown command with new parameters as this will return proper exit codes. This will work in the same way as restart-computer -force when using ```shutdown /r /f /t 0```.
Note:The WinRM library does not return the exit code currently, this will be implemented on https://github.com/masterzen/winrm/pull/26
2015-08-28 09:54:39 +12:00
Gonzalo Peci 70083fc869 Add reboot checks before moving out of the reboot. 2015-08-28 09:54:24 +12:00
Chris Bednarski 17cea4fa95 Merge pull request #2681 from tas50/master
Download chef from chef.io
2015-08-27 14:37:12 -07:00