Adrien Delorme
9f82b75e57
Use the hashicorp/go-getter to download files
...
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
Megan Marsh
0196d7f835
Merge pull request #7370 from sargun/allow-users-to-specify-custom-block-device-mapping
...
amazon-chroot: Allow users to specify custom block device mapping
2019-03-12 14:21:23 -07:00
Sargun Dhillon
0e8eb61699
Add documentation around new behaviour of ami_block_device_mappings
...
Previously, if ami_block_device_mappings was set, and you were building
from an existing image, it would get silently ignored, and changing
root_device_name would be ignored. This changes that behaviour, so
if ami_block_device_mappings is specified, it's respected.
2019-03-11 11:40:49 -07:00
Adrien Delorme
c207a84cb8
Update website/source/docs/builders/vagrant.html.md
...
Co-Authored-By: davividal <davividal@gmail.com>
2019-03-07 16:19:29 +01:00
Davi Vidal
0fb89ff4c3
Fixes dead link
2019-03-07 15:09:30 +01:00
Anton Kvashenkin
5e3078b9e9
Fix typo in vagrant builder description
...
Fix typo in `add_insecure` option.
2019-03-06 08:46:49 +03:00
Megan Marsh
5aeab4ec06
Merge pull request #7300 from kmbulebu/openstack_app_creds
...
OpenStack: Support Application Credential Authentication
2019-03-05 13:11:51 -08:00
Megan Marsh
5aa55f194d
add vagrant docs to website
2019-03-05 09:31:14 -08:00
Megan Marsh
3dc1dafe58
Merge pull request #7287 from stephen-fox/ephemeral-ssh-key-pair-issue-7225
...
virtualbox: create ephemeral SSH key pair for build process
2019-03-04 14:25:04 -08:00
Megan Marsh
3b6ff0fe3e
Merge pull request #7106 from hashicorp/revert_docker_changes
...
docker: user /bin/sh by default
2019-02-28 15:31:53 -08:00
Megan Marsh
424a6a3a7e
Merge pull request #6983 from hashicorp/revert-6979-revert-6925-organization_renaming
...
DONT MERGE YET: Revert "Revert "Rename attribute api_access_key to organization_id""
2019-02-28 15:30:25 -08:00
Adrien Delorme
f03cbd8a10
aws: allow to pass nil bool as encryption parameter
...
to retain current encryption settings
this changes the fields :
* ami_config.encrypt_boot
* block_device.encrypted
This also removes StepCreateEncryptedAMICopy as this step is now done in StepAMIRegionCopy
2019-02-27 11:17:56 +01:00
Megan Marsh
05897c8653
Merge pull request #7294 from hyperonecom/hyperone
...
Add HyperOne builder
2019-02-25 08:30:04 -08:00
Miłosz Smółka
94a7a07c87
Merge branch 'master' into hyperone
2019-02-24 15:16:21 +01:00
lrxcy
ab939989ea
fix some typos
2019-02-23 14:03:48 +08:00
lrxcy
3f04b8193f
fix endpoints description
2019-02-20 14:38:54 +08:00
lrxcy
4fae17767d
add Endpoints Description
2019-02-20 12:18:16 +08:00
Adrien Delorme
4f46bd74ab
Merge pull request #7313 from kristi/patch-1
...
add DescribeInstanceStatus to minimum permissions
2019-02-18 18:19:56 +01:00
Megan Marsh
75f574bd4b
Merge pull request #7221 from hashicorp/vagrant_builder
...
Vagrant builder
2019-02-15 10:05:44 -08:00
Kristi
7e7e486901
add DescribeInstanceStatus to minimum permissions
...
Packer needs DescribeInstanceStatus or else it ends up waiting forever for the instance to become ready.
2019-02-14 11:53:53 -08:00
Megan Marsh
f2439625bf
Merge pull request #7298 from hashicorp/fix_7256
...
Fix 7256
2019-02-11 14:24:01 -08:00
Megan Marsh
22e3f09db3
Merge pull request #7282 from hashicorp/do_6994
...
Allow amazon builders to read credentials from Vault.
2019-02-11 12:49:23 -08:00
Megan Marsh
51b46b851a
formatted amazon docs
2019-02-11 11:40:56 -08:00
Yiorgos Adamopoulos
591533cee0
allow the basic example to pass packer validate
...
tested with Packer v1.3.4. Without the builders section is complains for " Unknown root level key in template: " for every key in the JSON.
2019-02-11 17:05:55 +02:00
Kevin Bulebush
bd7aa3dab8
Updated OS docs for app creds
2019-02-09 23:06:59 -05:00
Megan Marsh
e2d8c0bfd7
docs
2019-02-08 09:28:10 -08:00
Megan Marsh
dc848ea5d7
just make vagrantfile instead of calling init
2019-02-07 12:39:56 -08:00
Miłosz Smółka
228829139b
Merge branch 'master' into hyperone
2019-02-07 14:12:13 +01:00
Stephen Fox
0378f3ad35
Initial documentation for VirtualBox SSH key pair vars.
2019-02-06 16:03:40 -05:00
Megan Marsh
90baa006da
add docs on all builders.
2019-02-05 14:19:24 -08:00
Megan Marsh
3704a053d0
move region validation and credential wait into step pre validate
2019-02-05 14:07:04 -08:00
Adrien Delorme
e8c655bf15
Update website/source/docs/builders/vagrant.html.md
...
Co-Authored-By: SwampDragons <megan@hashicorp.com>
2019-02-05 09:31:38 -08:00
Megan Marsh
7a78b47e83
make vault engine stuff into a little struct for easier management
2019-02-04 15:29:45 -08:00
Megan Marsh
6b41a1663a
updated the amazon ebs docs to include vault integration
2019-02-04 15:13:20 -08:00
Megan Marsh
af7131b169
tests, logic cleanup, docs for vagrant builder
2019-02-04 14:08:43 -08:00
Megan Marsh
52892699ca
make it work with a local vagrant box
2019-02-04 14:08:43 -08:00
Megan Marsh
ad21367b21
vagrant builder
2019-02-04 14:08:43 -08:00
Matthew Aynalem
b404cfc365
add builder/tencentcloud-cvm to sidebar
...
post-processors/docker-import - move tags under optional
add missing data types to various attributes
2019-02-03 16:24:38 -08:00
Miłosz Smółka
5e8eade205
Add support for custom API url of compatible service
...
Closes #4
2019-02-02 14:05:06 +01:00
Miłosz Smółka
4704565869
Rename vm_flavour to vm_type
2019-02-01 18:57:43 +01:00
Megan Marsh
6ea64bc378
Merge pull request #7191 from arizvisa/GH-7190
...
Adds support to the vmware builders for specifying the number of cores per socket via the `cores` option.
2019-01-31 15:27:52 -08:00
Miłosz Smółka
4a863379fa
Update docs
2019-01-28 13:00:30 +01:00
Miłosz Smółka
bd4ce90728
Add chroot disk build
2019-01-28 12:33:25 +01:00
Miłosz Smółka
aaee600be0
Update docs
2019-01-25 11:39:30 +01:00
Ali Rizvi-Santiago
3f559f8782
Updated the documentation with the vmx option that it uses.
2019-01-25 02:40:34 -06:00
Megan Marsh
e4dca0016c
Merge pull request #7156 from vtolstov/qemu
...
qemu: Add configuration options to specify cpu count and memory size
2019-01-23 15:19:08 -08:00
Megan Marsh
f031ab56de
Merge pull request #7216 from hashicorp/fix_7208
...
fix docker tmp dir for mac
2019-01-23 14:57:11 -08:00
Adrien Delorme
c6b5cd7b73
Update website/source/docs/builders/qemu.html.md.erb
...
Co-Authored-By: vtolstov <v.tolstov@selfip.ru>
2019-01-24 00:23:30 +03:00
Adrien Delorme
69b95db4ba
Update website/source/docs/builders/qemu.html.md.erb
...
Co-Authored-By: vtolstov <v.tolstov@selfip.ru>
2019-01-24 00:23:16 +03:00
Miłosz Smółka
be30415395
Add HyperOne builder
2019-01-23 14:04:05 +01:00