16050 Commits

Author SHA1 Message Date
Wilken Rivera
d597e93e70 improve error message 2020-09-25 12:12:31 -04:00
Wilken Rivera
1bb154de5a Add support for reading configs
This is the first step in attempting to read a Packer configuration file
via the packer init command. At the present moment it will try to read
one or more configuration templates from a given directory or path. Once
parsed it will error if parsing fails or exist successfully if it is
able to parse the file.

Looking at how the code is structured there will need to be changes made
to the following places:

- When no configuration file is found Packer will display an error. That
error should be bubbled up a bit so that the caller command can
determine if it should be displayed or not. For packer init no
configuration is not an error. Maybe it should be?

- After a configuration has been parsed there needs to be a single way
to determine a list of plugins associated with the configuration. HCL
and JSON configs have fields for this data but some is exported and some
is unexported. Adapting the packerHandler interface may be an option
here. More investigation needed.
2020-09-16 14:46:16 -04:00
Wilken Rivera
8069ae4f43 Add flagset to init command 2020-09-15 10:19:56 -04:00
Wilken Rivera
e8f7076416 Add simple init command 2020-09-14 16:33:51 -04:00
Andreas Botzner
c032d463d3
Bootcommand Fix For Proxmox Builder (#9885) 2020-09-14 17:17:38 +02:00
Sylvia Moss
caf65781d7
Add vsphere-clone mac_address option (#9930)
* add vsphere-clone mac_address option

* check on prepare if network is set together with mac_address
2020-09-14 13:18:39 +02:00
Andreas Botzner
3739970b84
Adds ability to specify interfaces for http_directroy and VM for the Proxmox builder (#9874)
Adds two config options to the Proxmox builder:
```
http_interface
vm_interface
```
Both give the user the ability to specify an interface whos IP will be set as the `.HTTPIP` and VMIP respectively.

This is useful when the VM and or the machine executing Packer has multiple interfaces.
Until now Packer would accept the first non-loopback IP as the `.HTTPIP` and VMIP.

I'm open to suggestions and any kind of feedback. 


* Added ability to define the NIC where the HTTPIP is taken from.
* Added VM interface config option
* fmt and documentation
* Moved HTTPInterface into HTTPCommon
* Build Fix
* Documentation Fix
2020-09-14 12:24:01 +02:00
GennadySpb
ad4ed3c986
Update CHANGELOG.md (#9935) 2020-09-14 12:14:19 +02:00
Wilken Rivera
f94e78077a
update CHANGELOG 2020-09-11 14:13:10 -04:00
Rui Lopes
53331644a6
add support for using xorriso to create the cdrom iso (#9919) 2020-09-11 14:11:19 -04:00
Megan Marsh
bcd3c33e49
Merge pull request #9931 from GennadySpb/yndx-import-fix-url
yandex-import: Fix S3 URL construct process
2020-09-11 07:48:11 -07:00
Sylvia Moss
31f08909b4
Add usb_scan_codes option to use USB scancodes instead of VNC for remote builds (#9895) 2020-09-11 16:46:33 +02:00
Gennady Lipenkov
e078bd6bf2 Fix S3 URL construct process 2020-09-11 16:49:30 +03:00
GennadySpb
2837d56885
Check for error after runner completes (#9925) 2020-09-11 11:14:49 +02:00
Megan Marsh
5ca9f6539f
remove xen from qemu docs, since it turns out it has not been supported with solely qemu for some time (#9917) 2020-09-09 19:42:37 -04:00
Megan Marsh
8b9009c571
Merge pull request #9856 from OblateSpheroid/add_vnic_details
Feat (builder/oracle-oci): Add VNIC details to launch details
2020-09-09 16:15:48 -07:00
Megan Marsh
8ffa0d2060
Merge pull request #9842 from jason-azze/patch-1
Builders vsphere-iso and vsphere-clone - CPUs is actually for cores, not sockets.
2020-09-09 16:03:45 -07:00
Megan Marsh
ca650c9602 fix struct comment for generation 2020-09-09 16:01:30 -07:00
Megan Marsh
25b889216d update changelog 2020-09-09 15:07:27 -07:00
Megan Marsh
81f9f4dd27
Merge pull request #9911 from hashicorp/ssh_redocument_options
Ssh redocument options
2020-09-09 08:44:32 -07:00
Megan Marsh
24d5824061 more docs update to add ssh private key file to all the builders that have them built into the create ssh key step 2020-09-09 08:33:38 -07:00
Megan Marsh
ad0b413e2d add private key file docs to qemu builder 2020-09-09 07:41:16 -07:00
js-g
9d5dedc3db tests: add some fields to config_test 2020-09-09 09:25:58 -04:00
Patrik
f8e31bff12
feat(builder): bump scaleway to new sdk (#9902) 2020-09-09 10:27:48 +02:00
Wilken Rivera
0719f906d4
Replace if/else with simple if (#9913) 2020-09-09 10:24:17 +02:00
Megan Marsh
8aaa1bd7a6
Merge pull request #9796 from hashicorp/do_8778
create secondary iso containing user's desired files
2020-09-08 15:05:48 -07:00
Kevin Pruett
3a5beedddf
Merge pull request #9914 from hashicorp/pruett.update-search
Integrate @hashicorp/react-search/tools script
2020-09-08 17:24:41 -04:00
Kevin Pruett
e5cd5a9360 Integrate @hashicorp/react-search/tools script 2020-09-08 17:16:42 -04:00
Megan Marsh
26f3299fb7
Merge pull request #9903 from artis3n/ansible-collections
Ansible Galaxy Collections support in Ansible provisioner
2020-09-08 12:34:39 -07:00
Megan Marsh
40c128767e regenerate docs 2020-09-08 12:17:58 -07:00
js-g
dd54651125 fix (builder/oracle-oci): add freeform and defined tags to create_vnic_details 2020-09-08 14:40:21 -04:00
Richard Turc
b4ff0ea4bc
[builder/qemu] Skip resize step when skip_resize_disk is enable #9860 (#9896)
* [builder/qemu] Skip resize step when skip_resize_disk is enable #9860

* Update builder/qemu/builder_test.go

Improve the code quality

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>

* Update files for unit tests

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-09-08 14:32:08 -04:00
Megan Marsh
988ab66731
Update common/extra_iso_config.go
thanks for the copyediting :D

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-09-08 11:18:10 -07:00
Megan Marsh
900100f591
Update website/pages/docs/builders/hyperv/iso.mdx
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-09-08 11:17:20 -07:00
js-g
254716a02a docs (oracle-oci): add description and example for create_vnic_details 2020-09-08 13:53:19 -04:00
js-g
f5dc260cf5 refactor (builder/oracle-oci): pass CreateVnicDetails as struct instead of map 2020-09-08 12:03:18 -04:00
Wilken Rivera
2da89db272
Merge pull request #9905 from The-Loeki/patch-2
qemu vnc: hardcoded lowerbound leaves negative ports
2020-09-08 10:17:53 -04:00
Ronald van Zantvoort
e362b7f43f
build only only twice (#9904)
remove duplicate entry for build > --only
2020-09-07 11:56:28 +02:00
Ronald van Zantvoort
7335695c84
qemu vnc: hardcoded lowerbound leaves negative ports
```hcl2
  vnc_port_min = 5000
  vnc_port_max = 5500
```

Build returns faulty:
```
    qemu.one: view the screen of the VM, connect via VNC to vnc://127.0.0.1:5138
(...)
2020/09/06 19:09:52 packer-builder-qemu plugin: Qemu stderr: qemu-system-x86_64: -vnc 127.0.0.1:-762,password: can't convert to a number: -762
```
2020-09-06 21:18:12 +02:00
Artis3n
4ecade3908 collectionsPath appends to the correct slice
Fixes what would have been a failure if roles+collections were tested at
once
2020-09-05 18:43:10 -04:00
Artis3n
39183d1b76 Updated documentation with make generate 2020-09-05 18:29:52 -04:00
Artis3n
9a2908d1d9 Use the galaxy playbook in the galaxy packer file 2020-09-05 18:15:42 -04:00
Artis3n
611899f7b2 Actually use the collectionArgs, that would be helpful 2020-09-05 16:51:38 -04:00
Artis3n
41a8a96821 Added acceptance test for Galaxy Collection install 2020-09-05 16:48:20 -04:00
Artis3n
3d2259a6d4 Typo fix in comment 2020-09-05 16:19:05 -04:00
Artis3n
19f0114035 Added support for Ansible Collections to the Galaxy install
Fixes #8821
2020-09-05 16:10:02 -04:00
Megan Marsh
94a9beaac6 fix up documentation for virtualbox key pair ssh options 2020-09-04 16:55:58 -07:00
Megan Marsh
61af278b79 document previously undocumented ssh options for tencent cloud 2020-09-04 16:50:45 -07:00
Megan Marsh
bd2aa40d2c document previously undocumented ssh options for scaleway 2020-09-04 16:50:31 -07:00
Megan Marsh
c7356fb776 document previously undocumented ssh options for outscale 2020-09-04 16:49:48 -07:00