Loïc Carr
22b12432db
builder/scaleway: support ssh agent authentication
2018-02-08 12:10:11 -08:00
Loïc Carr
1f7c32db98
builder/scaleway: report to ui scw api startup error
2018-02-08 12:10:11 -08:00
Loïc Carr
7f8ed28bc6
builder/scaleway: Make use of NewRunnerWithPauseFn
2018-02-08 12:10:11 -08:00
Loïc Carr
fc7d89eb79
builder/scaleway: support password auth
2018-02-08 12:10:11 -08:00
Edouard BONLIEU
eb56b1b70e
Fix terminate error
2018-02-08 12:10:10 -08:00
Edouard BONLIEU
b44798b38d
Raise error in case of create server failure
2018-02-08 12:10:10 -08:00
Edouard BONLIEU
09805911b4
Fix builder unique id
...
Add new ARM64 commercial types
DOC - Add default value for optional settings
DOC - Fix typo
2018-02-08 12:09:25 -08:00
Edouard BONLIEU
2de93c5ae6
Add existing SSH key support
...
Update documentation
2018-02-08 12:09:25 -08:00
Edouard BONLIEU
1fb13cc23e
Add image creation from snapshot
...
Rename organization_id / access_key
Update test / doc
2018-02-08 12:09:25 -08:00
Edouard BONLIEU
9b611af7e6
Allow token and organization id to be passed via env vars
2018-02-08 12:09:25 -08:00
Edouard BONLIEU
7e36cfcff1
Add Scaleway builder
2018-02-08 12:09:24 -08:00
Matthew Hooker
6205c71f98
Merge pull request #5791 from YuSungDuk/master
...
Naver Cloud Platform builder
2018-02-08 11:10:18 -08:00
Edward
c29e5de381
Remove the deprecated extensions
...
The Nova extension API was deprecated from OpenStack N release.
this parts of code cannot work well with the newest OpenStack version.
This patch is to remove the relative parts:
1. Remove the step_load_extensions.go
2. Remove the step of extension from builder.go
3. Remove the parameter parsing from step_stop_server.go
Resolves : #5581
2018-02-06 17:36:47 -08:00
유성덕
0ebdad2934
fix communicator type : Windows -> winrm
2018-02-07 10:29:56 +09:00
Matthew Hooker
8510f072a9
Merge pull request #5841 from hashicorp/fix5447
...
Add volume and run tags if in us-gov/china
2018-02-05 17:29:12 -08:00
Matthew Hooker
21812fa17f
Add volume and run tags if in us-gov/china
...
We can't tag on instance creation when we're in "restricted" regions,
so let's add the tags after the resources have been created.
Adds methods to AccessConfig to detect if we're in China or US Gov
regions (i.e. "restricted").
Also turns tag:tag maps into a type, and moves methods around validating
and converting them to ec2Tags to methods of the type.
2018-02-05 16:39:20 -08:00
Matthew Hooker
ff64ccda55
Merge pull request #5426 from hashicorp/fix_4915
...
Fix 4915
2018-02-05 14:54:27 -08:00
SwampDragons
7d5d62d748
Merge pull request #2906 from arizvisa/GH-2377
...
Improved support for downloading and validating a uri containing a Windows UNC path or a relative file:// scheme
2018-02-05 09:53:47 -08:00
Petr Hosek
eaef2961cb
Support specifying licenses for Google Compute images
...
This is needed to enable features such as the nested virtualization:
https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances
2018-02-03 14:15:16 -06:00
Ali Rizvi-Santiago
fa2dddd26d
Fixed some things mucked up during rebase.
2018-02-02 19:45:18 -06:00
Ali Rizvi-Santiago
aefe41a44a
Fixed an issue with the previous commit so that when the user does not specify the cdrom_adapter_type to fallback to the original decision made by the disk adapter type selection.
2018-02-02 19:18:50 -06:00
Ali Rizvi-Santiago
eb0445ca96
Added support for specifying both the network adapter type and cdrom adapter type as requested by @night199uk. Also included the respective documentation for these new options.
2018-02-02 19:18:50 -06:00
Ali Rizvi-Santiago
74946071d2
Added support for specifying the disk adapter type to the vmware builders. This was squashed from the vmware-diskAdapterType branch ( #2968 ) as submitted by Rami Abughazaleh <icnocop@users.noreply.github.com>. This closes #5671 and possibly #4885 .
...
arizvisa: Updated icnocop's documentation to include the possible disk adapter types that one can specify.
arizvisa: Tweaked icnocop's support for the `disk_adapter_type` option to the VMWare builder that caused conflicts due to version skew.
icnocop: Updated links to the Virtual Disk Manager User's Guide PDF to open in a new window and also added the Adobe PDF icon
icnocop: Added support for vmware to specify the disk adapter type, ide or scsi (lsilogic or buslogic)
2018-02-02 19:18:49 -06:00
Ali Rizvi-Santiago
594ed950c7
Fixed a race condition in builder/vmware/common/driver_parser.go due to a misunderstanding how channels work when you close them.
2018-02-02 19:18:49 -06:00
Ali Rizvi-Santiago
737e951685
Added missing root path to path-finders for the VMware Fusion implementation in the vmware builder as mentioned by @SwampDragons.
2018-02-02 19:18:49 -06:00
Ali Rizvi-Santiago
b2fec18b1e
Added parser for VMware Fusion's networking file. Replaced VmwareDriver's NetmapConfPath with a NetworkMapperInterface in order to handle the differences between VMware Fusion and the rest of the VMware suite.
2018-02-02 19:18:49 -06:00
Ali Rizvi-Santiago
069d00f70b
Added the paths suggested by @phekmat and @SwampDragons for VMware Fusion... Although parser for the new mapper format is likely to be needed still.
2018-02-02 19:18:49 -06:00
Ali Rizvi-Santiago
8cc0776f3a
Fixed oversight in VMware builder's mock-driver that neglected to initialize 'HostAddressResult'.
2018-02-02 19:18:49 -06:00
Ali Rizvi-Santiago
029c357d8c
Modified some tests to require the PACKER_ACC environment variable to be set before executing them. This turns them into acceptance tests as per CONTRIBUTING.md.
2018-02-02 19:18:49 -06:00
Ali Rizvi-Santiago
58ebc5c9a5
When specifying NONE for serial or parallel in the VMware builder, disable the serial and parallel port devices entirely.
2018-02-02 19:18:48 -06:00
Ali Rizvi-Santiago
258804106b
Added missing GetVmwareDriver() method to VMware Builder's DriverMock.
2018-02-02 19:18:48 -06:00
Ali Rizvi-Santiago
6423525a33
Updated imports of github.com/mitchellh/packer to new naming scheme github.com/hashicorp/packer
2018-02-02 19:18:48 -06:00
Ali Rizvi-Santiago
75fbfa0763
Replaced a hacky type assertion in the VMware builder with a call to Driver.GetVmwareDriver() that returns the driver-specific structure for ip and addressing information. Also implemented the addressing functions for the ESXi driver interface.
...
This fixes an issue where a driver might not have defined a VmwareDriver by forcing a developer to implement it via the standard Driver interface.
2018-02-02 19:18:48 -06:00
Ali Rizvi-Santiago
898b27c16d
Added support for the NONE option to be specified for parallel and serial ports in the vmware iso builder.
2018-02-02 19:18:48 -06:00
Ali Rizvi-Santiago
884af69da1
go fmt on builder/vmware/*
2018-02-02 19:18:48 -06:00
Ali Rizvi-Santiago
0d6cf7fac4
Added support for auto-detection to the serial and parallel port types.
...
Included the yield option to all the serial port types.
Added the ability for the network type to fallback to a custom network if the
specified network name is not found in netmap.conf.
Promoted the scope for both Read{Dhcp,Netmap}Config inside vmwcommon.driver.
Updated the documentation for the VMware builder.
2018-02-02 19:14:29 -06:00
Ali Rizvi-Santiago
b52e2d3f45
Added the ability for the vmware-builder to fallback and determine the network device-name using the .vmx configuration in case of a guest using the "custom" connection type.
2018-02-02 19:13:02 -06:00
Ali Rizvi-Santiago
e389d30a1b
Implemented the unit-tests for builder/vmware/iso/step_create_vmx.go
2018-02-02 19:13:02 -06:00
Ali Rizvi-Santiago
15cb6a833a
Ugh..missing argument in VMware builder's driver_esx5 unit-test due to api change for .HostIP(). Fixed.
2018-02-02 19:11:41 -06:00
Ali Rizvi-Santiago
9b95ce0bc6
Completely forgot to support the unix paths in each of the drivers for the VMware builder. Fixed.
2018-02-02 19:11:41 -06:00
Ali Rizvi-Santiago
4225b3568e
Fixed bad ORs and a bad fmtstring.
2018-02-02 19:11:41 -06:00
Ali Rizvi-Santiago
75d3ea7cee
Added support for sound, serial ports, parallel ports, usb, and specifying a default network to the vmware builder.
...
builder/vmware/{iso,vmx}:
Added the specific configuration options that get parsed.
Normalize paths when pulling them from the json template so that they'll work on Windows too.
Added some improved error checking when parsing these options.
Stash the vm's network connection type so that other steps can figure out addressing information
Modified the esx5 driver to support the new addressing logic.
Modified the template in step_create_vmx to include the new options.
builder/vmware/common:
Implemented a parser for vmware's configuration files to the vmware builder.
Modified the driver's interface to include support for resolving both guest/host hw and ip addresses
Implemented a base structure with some methods that implement these features.
Rewrote all ip and mac address dependent code to utilize these new methods.
Removed host_ip and guest_ip due to their logic being moved directly into a
base-structure used by each driver. The code was explicitly checking runtime.GOOS
instead of portably using net.Interfaces() anyways.
Updated driver_mock to support the new addressing methods
2018-02-02 19:11:41 -06:00
SwampDragons
8ae8f31a52
Merge pull request #5681 from mcandre/super-key
...
add super key (vmware builder)
2018-02-02 13:33:11 -08:00
SwampDragons
caea770af1
Merge pull request #5819 from hashicorp/oracle-oci-builder
...
Oracle oci builder
2018-02-02 11:56:18 -08:00
Ben Phegan
3c88e787df
Merge branch 'master' into hyperv_mac_address
2018-02-02 09:26:52 +11:00
SwampDragons
6d14eb6ea4
Merge pull request #5631 from vijayinvites/diffdisks
...
[Hyper-V] Use differential disks and Inline disk creation to improve build time (a lot) and to reduce disk usage(a lot)
2018-01-31 16:51:27 -08:00
Megan Marsh
383ac13e2a
update default of image list after adding new entry.
2018-01-31 16:37:55 -08:00
Megan Marsh
8f7937f492
fix machine image name to include prepended /
2018-01-31 15:22:09 -08:00
Megan Marsh
3180dc327c
remove copypasta comment
2018-01-31 15:02:19 -08:00
Matthew Hooker
8bdd3b45c7
use helper functions for reading vmx files
2018-01-31 13:19:31 -08:00
Megan Marsh
66cd85828e
rename dest_image_list_description to image_description
2018-01-31 12:48:40 -08:00
Matthew Hooker
baf8d30ad2
Merge pull request #5738 from testworksau/intel-haxm-support
...
Add Intel HAXM support to QEMU builder
2018-01-31 12:41:15 -08:00
Megan Marsh
af26b312cd
fix logline
2018-01-31 11:35:34 -08:00
Megan Marsh
871ead371a
Clean up based on Oracle comments
2018-01-31 10:47:19 -08:00
유성덕
f39c3458f7
fix Run method arguments for testing
2018-01-30 10:20:02 +09:00
Megan Marsh
705459c260
add snapshotted machine image to image lists, then delete the snapshot.
2018-01-29 16:50:53 -08:00
유성덕
e68a742bca
make fmt
2018-01-29 22:44:24 +09:00
유성덕
175dd2730f
Use 'github.com/hashicorp/packer/helper/multistep'
2018-01-29 22:41:22 +09:00
유성덕
5714108ef9
Merge branch 'master' into support_ncloud
2018-01-29 22:10:18 +09:00
유성덕
6b40c726e0
Use `PublicIp` for communicator
2018-01-29 22:07:32 +09:00
유성덕
e57a8161e0
remove delete step of `login key` and `public ip instance`.
2018-01-29 21:47:58 +09:00
유성덕
2a3a35334a
Logging root password
2018-01-29 20:42:22 +09:00
유성덕
30f8fee402
use comment with english
2018-01-29 19:08:53 +09:00
유성덕
3820f97a0b
use state storage to save `feeSystemTypeCode`
2018-01-29 18:35:43 +09:00
유성덕
2152ad7609
Add UserDataFile
2018-01-29 18:09:14 +09:00
유성덕
da78ebbf83
- Remove plugin version
...
- remove `os_type`. use `communicator` instead of this.
2018-01-29 17:29:26 +09:00
Matthew Hooker
76b2ce8604
log which vmware driver we decide on
2018-01-26 16:12:43 -08:00
Matthew Hooker
07421b4433
test vmware workstation version checking
2018-01-26 15:58:17 -08:00
Megan Marsh
56c6fed42a
ui.say vs ui.message
2018-01-26 15:20:12 -08:00
Megan Marsh
3ee1aa3ed6
clean up ip reservations
2018-01-26 15:18:33 -08:00
Megan Marsh
565b660b19
comments
2018-01-26 14:28:27 -08:00
Megan Marsh
98857c42cf
add tests; fix a couple issues caught by said tests
2018-01-26 14:27:31 -08:00
Matthew Hooker
9edd98f7b0
Use more uuids and make messaging consistent.
2018-01-26 13:43:19 -08:00
Matthew Hooker
c6b43ce6e9
remove errouneous double prep
2018-01-26 13:13:13 -08:00
Matthew Hooker
71acccc1ed
add UI output with resource names
2018-01-26 13:12:35 -08:00
Matthew Hooker
18ffde4ecf
remove unused file
2018-01-26 12:59:46 -08:00
Matthew Hooker
fad4d5c272
update tests for mapstructure behavior changes
2018-01-26 12:40:34 -08:00
Megan Marsh
0e5be59947
wrap error message for clarity
2018-01-26 09:55:31 -08:00
Megan Marsh
ff9fef5ed2
switch to using a UUID for packer-generated keys, and clean them up at end of build
2018-01-26 09:51:16 -08:00
Megan Marsh
b6d21ecd63
validate that required fields are present
2018-01-26 08:53:24 -08:00
Megan Marsh
25bc1da8fe
remove unsused access config
2018-01-26 08:48:23 -08:00
Megan Marsh
de2e5edf2e
remove errant change in amazon builder
2018-01-26 08:43:51 -08:00
Matthew Hooker
4622bb4585
return no artifact if no snapshot was created
2018-01-25 16:32:37 -08:00
Matthew Hooker
77277ebc98
add logging behind "PACKER_OCI_CLASSIC_LOGGING" env var
2018-01-25 16:32:34 -08:00
Matthew Hooker
0fad49e897
simplify
2018-01-25 15:05:36 -08:00
Matthew Hooker
4dc42942f5
fix multistep path
2018-01-25 14:46:02 -08:00
Matthew Hooker
6dc0bd759a
import context
2018-01-25 14:43:55 -08:00
Matthew Hooker
dd2384483b
add context to steps
2018-01-25 14:42:39 -08:00
Megan Marsh
00db189c9c
add docs page
2018-01-25 14:34:03 -08:00
Megan Marsh
1fffbacdd3
fix ordering of deleting security rules and lists
2018-01-25 14:34:03 -08:00
Matthew Hooker
76ea73c5b2
I don't think we need to delete this artifact right now
2018-01-25 14:34:03 -08:00
Matthew Hooker
603881d990
add oci/classic artifact
2018-01-25 14:34:03 -08:00
Matthew Hooker
44befb0857
rename
2018-01-25 14:34:02 -08:00
Matthew Hooker
b9a90b9261
Check for error when creating ip reso
2018-01-25 14:34:02 -08:00
Megan Marsh
7d23cfae0a
allow user to add a security list for SSH access; add cleanup for packer-generated rules and lists
2018-01-25 14:34:02 -08:00
Megan Marsh
531cb2244d
add separated out steps
2018-01-25 14:34:02 -08:00
Megan Marsh
53ff257cf0
it LLIIIIIIIIIVES
2018-01-25 14:34:02 -08:00
Megan Marsh
89159f3a87
fix bugs in cleanup
2018-01-25 14:34:02 -08:00
Megan Marsh
f6c60aac78
clean up instance
2018-01-25 14:34:01 -08:00
Megan Marsh
256382547b
snapshot step works
2018-01-25 14:34:01 -08:00
Megan Marsh
69ba710c2a
PROGRESS! Now it only fails on the snapshot step
2018-01-25 14:34:01 -08:00
Megan Marsh
f208a071a4
fix communicator
2018-01-25 14:34:01 -08:00
Megan Marsh
6556a851dc
fix ssh key handling
2018-01-25 14:34:01 -08:00
Megan Marsh
a8a0072049
oops need to add this moved file to git
2018-01-25 14:34:01 -08:00
Megan Marsh
8b420944c5
debugs
2018-01-25 14:34:00 -08:00
Megan Marsh
46c3113613
it compiles :)
2018-01-25 14:34:00 -08:00
Megan Marsh
8aa716cd4c
stub out step_snapshot
2018-01-25 14:33:43 -08:00
Megan Marsh
007e8f7c14
finish stubbing out step_create_IP_reservation
2018-01-25 14:33:43 -08:00
Megan Marsh
7d72870179
add buffer to read template into
2018-01-25 14:33:42 -08:00
Megan Marsh
0117f53721
add error message
2018-01-25 14:33:42 -08:00
Megan Marsh
a66dfe1972
fleshing out step_create_instance
2018-01-25 14:33:42 -08:00
Megan Marsh
4fe89be32a
fleshing out steps
2018-01-25 14:33:42 -08:00
Megan Marsh
75ee66f934
add stubbed out steps
2018-01-25 14:33:42 -08:00
Matthew Hooker
3bf431a423
construct OCI client
2018-01-25 14:33:41 -08:00
Matthew Hooker
9e8d845c03
create instance reservation
2018-01-25 14:33:41 -08:00
Matthew Hooker
543caf3ec5
WIP OCI Classic builder
2018-01-25 14:33:41 -08:00
Matthew Hooker
eafda52411
use amazon steps from master
2018-01-24 17:09:18 -08:00
Matthew Hooker
8cd403425e
test fixes WIP
2018-01-24 17:09:17 -08:00
Matthew Hooker
5d48d658b4
Wire context through misc steps
...
Some steps actually need to pass the context around, so let's create
a ctx variable and pass it.
2018-01-24 17:09:17 -08:00
Matthew Hooker
7a189a83a1
fix imports
...
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
a831d522be
change run signatures
...
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.
`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
a0c625ea44
Revert "working with opt-in"
...
This reverts commit 4068ffdaf541354e75507add7ca0b193993fcd52.
2018-01-24 17:09:16 -08:00
Matthew Hooker
e98f201602
working with opt-in
2018-01-24 17:09:16 -08:00
Matthew Hooker
366dc3da0a
move multistep imports to helper.
...
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker
807e88245b
trying to add context to state bag
2018-01-24 17:09:15 -08:00
James Nugent
5967732442
Merge pull request #5795 from stack72/bump-triton-go-deps
...
builder/triton: bump triton-go dependencies
2018-01-23 14:40:03 +00:00
Matthew Hooker
ebe995c0ff
run goimports
2018-01-22 17:21:10 -08:00
stack72
20f9ef3445
builder/triton: bump triton-go dependencies
...
This introduces a new triton-go errors package so we can error handle our code in a better way
2018-01-17 16:55:00 +02:00
Ali Rizvi-Santiago
c17f827e1d
Split up DownloadableURL() into it's individual components: SupportedURL(), DownloadableURL(), and ValidatedURL(). Updated all instances of DownloadableURL() to point to ValidatedURL(). Reverted the tests that are based on un-supported protocols.
2018-01-16 13:37:32 -06:00
Ali Rizvi-Santiago
3cf448f6ec
Reverted previously removed additions of tests that check for ftp:// or nonexistent-protocol:// using DownloadableURL. DownloadableURL's responsibility is not to have inherent knowledge of protocols that are available, but to format an invalid url/path to a valid url/path.
2018-01-16 13:37:32 -06:00
Ali Rizvi-Santiago
46a5ca30e5
Removed call to filepath.Rel(...) in builder/vmware/iso/step_create_vmx.go
2018-01-16 13:37:32 -06:00
Ali Rizvi-Santiago
5d97b105a8
Removed implementation of the ftp protocol and the usage of cheggaaa's progress-bar as suggested by @SwampDragons. Replaced some of the old smoke-tests that were based on the ftp-protocol non-existing with a "non-existent://" protocol that's guaranteed to not exist.
2018-01-16 13:37:31 -06:00
Ali Rizvi-Santiago
d275bacb0f
go fmt builder/vmware/iso/step_create_vmx.go to calm down Travis CI.
2018-01-16 13:37:31 -06:00
Ali Rizvi-Santiago
e940dc7e42
Fixed a config_test that should've failed but didn't because ftp:// uris work now. HeH!
2018-01-16 13:37:31 -06:00
Ali Rizvi-Santiago
281dd1258a
Added proper support for downloading via a Windows UNC path or a relative uri.
...
Added proper support for validating a downloadableURL containing a UNC or relative uri.
Removed the workaround for an earlier Go issue that had remained dormant in common/download.go (issue #5927 ).
When building a .vmx file via the vmware-iso builder, transform the path to the correct os-formatted one (using filepath.FromSlash).
2018-01-16 13:36:17 -06:00
Matthew Hooker
cea2ab8c6d
move kms/encrypted validation to block devices
2018-01-12 15:10:51 -08:00
Matthew Hooker
e968f9d6cc
spelling/style fixes
2018-01-12 14:26:56 -08:00
Jason Wieringa
f6772f06be
builder/amazon: Raise error when ebsvolume kms_key_id is without encrypted = true
2018-01-11 20:27:38 -08:00
Jason Wieringa
2ac59b3c27
builder/amazon: Added KmsKeyID to BlockDevice
...
+ Adds kms_key_id to list of options
+ Tests that configuraiton is set along with encrypted
+ Updates documentation on ebsvolume builder
2018-01-11 20:27:38 -08:00
유성덕
b909e9d4e6
remove not used variables
2018-01-12 10:15:40 +09:00
유성덕
26030d750c
update err format
2018-01-12 10:12:47 +09:00
Matthew Hooker
2ce3ca1538
Merge pull request #5773 from hashicorp/fix5705
...
Use SDK's InstanceReady waiter
2018-01-11 12:12:03 -08:00
SwampDragons
fb730cf521
Merge pull request #5761 from hashicorp/fix_5713
...
fix nasty edge case where we can't find guest additions on windows if they are on a different drive
2018-01-11 11:48:26 -08:00
유성덕
5189d65467
Support Naver Cloud Platform
2018-01-11 18:57:53 +09:00
Megan Marsh
3ace5bb91b
simplify FileExistsLocally
2018-01-10 16:11:17 -08:00
Matthew Hooker
f5ea1e8312
Use WaitUntilInstanceReady waiter
2018-01-10 15:57:31 -08:00
Megan Marsh
216c44b153
fix FileExistsLocally
2018-01-09 15:47:07 -08:00
Matthew Hooker
dfd5f07145
fix ebs acc test
2018-01-08 12:27:10 -08:00
Megan Marsh
e164621bfe
log line to help prevent confusion when guest_additions_url is set from env variable that is empty
2018-01-05 09:19:38 -08:00
SwampDragons
ff3cbbf28c
Merge pull request #5757 from arizvisa/virtualbox-guest_additions_url-interpolation
...
Fixed an issue where the VirtualBox builder was checking for whether guest_additions_url was empty or not before it actually interpolated any variables.
2018-01-04 15:39:29 -08:00