Wilken Rivera
652d2a4e9e
Add note for unmaintained community-supported plugins
...
This change borrowed from Terraform's [archived provider
documentation](https://www.terraform.io/docs/internals/archiving.html )
adds a documentation partial that can be applied to any provisioner
plugin that is not actively maintained by Packer or the community. A
call to action for anyone interested in supporting the plugin has been
added to the Packer README until a better location is made available.
* Mark the salt-masterless plugin as unmaintained
2020-07-08 07:24:03 -04:00
Wei Cheng
e5606d483d
builder/googlecompute: add support for oslogin ( #9339 )
...
* feat: add support for oslogin
Signed-off-by: Wei Cheng <calvinpohwc@gmail.com>
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-07-08 06:30:25 -04:00
Megan Marsh
d4a7dd24d9
fix link in deprecation warning ( #9544 )
2020-07-08 11:59:39 +02:00
Sylvia Moss
268e95364f
Adds vApp properties config and save public ssh key to a vApp property ( #9507 )
2020-07-08 10:33:45 +02:00
Megan Marsh
673858a63c
Merge pull request #9513 from hashicorp/undocument_ssh_temp_key
...
Undocument ssh options not used by all builders
2020-07-07 14:26:21 -07:00
Wilken Rivera
892413b7ea
docs/builder/vsphere-iso: Add documentation for BootConfig ( #9538 )
...
* docs/builder/vsphere-iso: Add documentation for BootConfig
* Add documenation for http_ip
* Remove duplicate build configuration section
2020-07-07 13:57:51 -04:00
Wilken Rivera
eeb6f017bd
Merge pull request #9505 from hashicorp/f-googlecompute-wrap_startup_script-option
...
builder/googlecompute: Add WrapStartupScriptFile configuration option
2020-07-07 13:17:02 -04:00
Joshua Foster
a6170b0c35
clean up folder path so that it is what vsphere expects
2020-07-07 12:25:14 -04:00
Adrien Delorme
03d29386dd
fix error message typo ( #9541 )
2020-07-07 16:50:15 +02:00
Lyle Franklin
a4d1afb83a
Add 'cdrom_interface' option to QEMU builder ( #9483 )
...
- This option allows the user to select the interface type for the CDROM
drive, e.g. `virtio-scsi`, rather than the default `virtio`
- Background: Installation of Ubuntu 20.04 on ARM64 fails as it can't mount the
installation CDROM. While the default `virtio` CDROM fails, setting
`cdrom_interface: virtio-scsi` with this PR succeeds. Some links:
- ISO link: http://cdimage.ubuntu.com/ubuntu-legacy-server/releases/20.04/release/ubuntu-20.04-legacy-server-arm64.iso
- https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1605407
- https://superuser.com/a/1376628/230508
2020-07-07 16:22:30 +02:00
Wilken Rivera
4462c0b5ab
builder/googlecompute: Add WrapStartupScriptFile configuration option
...
By default the Google builder will wrap any provided startup script file
in order to track its execution via custom metadata. The wrapper script
can add a bit of complexity to the start script file so a new option is
being added `wrap_startup_script`. This option allows a user to disable
the script wrapping and just let GCE do its own thing when executing a
startup script.
2020-07-07 07:08:09 -04:00
Adrien Delorme
741a6e4182
HCL2 only: Make provisioners and post-processors reprepare themselves with build data ( #9534 )
...
#9444 allows to share builder infos with provisioners and post-processor by re-starting new provisioners and post-processors once the build has started; #9490 allows to 'excpect/only' on a full build blocks (after naming a block), merged together, the tests of #9490 fail. This means we would have to reimplement the only/except logic. While this could have worked, re-using the already started provisioners and post-processor for HCL2 is better/simpler IMO as we won't have to maintain a feature parity.
Also with HCL2 and go-cty all struct ( here provisioner/post-processor) fields are set at the moment of configuring so we should not get weird 'default value' behaviour issue.
This PR reverts some parts of #9444 and implement #9444 in a different manner: I created specific HCL2Provisioner and HCL2PostProcessor structs that both re-prepare themselves right before provisioning. I think this makes the code a little simpler and lays a nice ground for improvement.
2020-07-07 12:10:02 +02:00
Adrien Delorme
b0238e6f4a
Update build_windows_test.go
2020-07-07 12:00:36 +02:00
Adrien Delorme
3fb7ddf509
Update provisioner.go
2020-07-07 11:52:08 +02:00
Adrien Delorme
12c9959db2
Revert "null builder: say that we are returnin the ID value"
...
This reverts commit 8e923977f0
.
2020-07-07 11:46:43 +02:00
Adrien Delorme
d84d956e36
add language coment !
2020-07-07 11:43:13 +02:00
Adrien Delorme
a15ad19411
test builds can be 'excepted'
2020-07-07 11:41:24 +02:00
Adrien Delorme
c1c8b8d22a
complete -> recipes
2020-07-07 11:31:19 +02:00
Adrien Delorme
34ff3d0c8f
hcl2 GetBuilds: use packer.BuilderDataCommonKeys to avoid forcing all builders to return exactly what they will return
...
It would have been a bit nicer if all builder were more specific in order for hcl to tell wether a value will be set during the first prepare time but that also totally works !
2020-07-07 11:29:27 +02:00
Adrien Delorme
ab54f48247
add BuilderDataCommonKeys var to see what common keys a builder can return
2020-07-07 11:28:07 +02:00
Megan Marsh
93cd7e40bc
add note about ansibles configuration powershell script in our docs ( #9526 )
...
* add note about ansibles configuration powershell script in our docs
* Update website/pages/docs/provisioners/ansible.mdx
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-07-06 15:23:29 -04:00
Wilken Rivera
b02a2b1c27
Merge pull request #9537 from geofftrojans/import-image-retry
...
Adding retry for ImportImage call in amazon-import post-processor.
2020-07-06 15:18:40 -04:00
Adrien Delorme
10e5d952ac
unquote 'cooking...'
2020-07-06 18:08:51 +02:00
Adrien Delorme
0475b0529d
tests: fix line endings in windows
2020-07-06 17:58:22 +02:00
Adrien Delorme
0deaa5d2a5
add a complete tests for builder variables + only/except
2020-07-06 17:01:55 +02:00
Adrien Delorme
8e923977f0
null builder: say that we are returnin the ID value
2020-07-06 16:53:06 +02:00
Geoff Schultz
8010a23b34
Adding retry for ImportImage call in amazon-import post-processor.
2020-07-06 09:41:13 -05:00
Adrien Delorme
0293f69fa1
default build values to be unknown
2020-07-06 16:07:46 +02:00
Adrien Delorme
eaf63e3bb5
pass source name from local source name too
2020-07-06 16:07:29 +02:00
Adrien Delorme
cf514d31f2
avoid passing generatedVars down during first prepare
2020-07-06 15:14:17 +02:00
Adrien Delorme
0ed10f921f
add test
2020-07-06 11:48:39 +02:00
Adrien Delorme
90610dcf04
docs
2020-07-06 11:38:12 +02:00
Adrien Delorme
1b669ff2ab
woops
2020-07-06 11:18:02 +02:00
Adrien Delorme
39261f3671
add hcl2 post processor type that reprepares itself
2020-07-06 10:32:39 +02:00
Megan Marsh
7ad140ef50
update changelog
2020-07-02 14:40:11 -07:00
Megan Marsh
6095fb2a62
Merge pull request #9515 from jhawk28/vsphere_tools_fix
...
fix vsphere ToolsSyncTime and ToolsUpgradePolicy
2020-07-02 14:19:41 -07:00
Jonathan Neal
4a669e829c
Update package-lock.json
2020-07-02 14:25:09 -04:00
Jonathan Neal
01f93d8adb
Bump internal hashicorp dependencies
2020-07-02 14:25:09 -04:00
Joshua Foster
500ec5ccc7
fix return
2020-07-02 12:55:10 -04:00
Joshua Foster
e4dffeed35
clean up if logic
2020-07-02 12:33:28 -04:00
Adrien Delorme
db6c3adbba
add hcl2 provisioner type that reprepares itself
2020-07-02 18:02:19 +02:00
Adrien Delorme
c88cb098a1
Update post-processor.go
2020-07-02 16:04:38 +02:00
Adrien Delorme
6a108fa3f6
bring docs from master
2020-07-02 16:03:57 +02:00
Adrien Delorme
284d46a1e0
WIP
2020-07-02 15:56:49 +02:00
Moss
d060cc9ef2
create partials for each ssh key pair related config
2020-07-02 15:18:08 +02:00
Adrien Delorme
7969b690de
Revert "Share build info with Provisioner and Post-Processor via HCL2 variables ( #9444 )"
...
This reverts commit 99046c9178
.
2020-07-02 15:07:29 +02:00
Moss
8ea64c5b35
undocument ssh_keypair_name and ssh_agent_auth
2020-07-02 14:55:58 +02:00
Adrien Delorme
3d371a2d5d
Add complete HCL2 examples + allow to name a singular build.source blocks ( #9490 )
...
* in the examples/hcl folder
* add possibility to name singular build.source blocks to differentiate their output and to filter on them
2020-07-02 11:07:59 +02:00
Megan Marsh
445cf12b65
Merge pull request #9489 from ad-m/hyperone-freebsd
...
builder/hyperone: Allow skip chroot device discovery
2020-07-01 15:48:03 -07:00
Joshua Foster
63f9282f5c
fix vshere ToolsSyncTime and ToolsUpgradePolicy
2020-07-01 13:58:50 -04:00