Megan Marsh
4f8e4b61af
Merge pull request #9385 from hashicorp/revert-powershell-error-handler-9040
...
Revert "Merge pull request #9040 from hashicorp/powershell-exit-code-fix-4916"
2020-06-09 09:21:36 -07:00
Wilken Rivera
d72173ac1a
Revert "Merge pull request #9040 from hashicorp/powershell-exit-code-fix-4916"
...
This reverts commit 334f399ee3
, reversing
changes made to 45a5d28bad
.
When testing against Windows SSH the Powershell script fails to parse
the newly added if statement.
2020-06-09 11:41:07 -04:00
Moss
daaeccd8b0
Skip consecutives post-processors
2020-06-09 17:35:53 +02:00
Moss
6599e7ab05
apply goimports
2020-06-09 15:29:32 +02:00
Moss
bfb9df0039
fix except flag for JSON and HCL2
2020-06-09 15:26:45 +02:00
Adrien Delorme
63896b98ec
docs: virtualbox/iso: remove duplicate guest_additions_mode field ( it's already defined in `GuestAdditionsConfig` )
2020-06-09 15:12:13 +02:00
Adrien Delorme
451d4c2620
hcl2 docs pass ( #9375 )
...
* moved blocks and functions top the nav list for easier access ( I think those will be used a lot)
* added a concrete fileset example
* added more concrete examples in the blocks doc
2020-06-09 12:42:01 +02:00
tymac753
cb5bf65ada
Update Consul reference documentation ( #9378 )
2020-06-09 12:38:32 +02:00
Gennady Lipenkov
85da85271f
Support SA Key authentication in Yandex Export post-processor
2020-06-09 11:06:12 +03:00
DerekStrickland
b8f9d2e988
Refactored to learn hosted gettings started track.
2020-06-08 15:53:00 -04:00
Moss
6e610927da
Update CHANGELOG
2020-06-08 17:30:39 +02:00
Adrien Delorme
c97619459a
Merge pull request #9372 from hashicorp/azr-hcl2-revert-template_dir-and-pwd
...
HCL2: Revert adding template_dir and pwd funcs
2020-06-08 15:50:53 +02:00
Adrien Delorme
eeabae88e3
Update abspath.mdx
2020-06-08 15:29:45 +02:00
Adrien Delorme
cf6eca7e1c
Revert "Add pwd function to HCL"
...
This reverts commit 2800043149
.
2020-06-08 14:59:27 +02:00
Adrien Delorme
44dfa221de
Revert "Add template_dir function to HCL"
...
This reverts commit 3b9a0427cd
.
2020-06-08 14:59:22 +02:00
Moss
13118692cc
Update CHANGELOG
2020-06-08 11:56:58 +02:00
Megan Marsh
5d67183c4c
fix test
2020-06-05 14:05:59 -07:00
Megan Marsh
48b448dfd5
Merge pull request #9366 from hashicorp/fix_9248
...
Add ToolSyncTime and ToolUpgradePolicy to vSphere
2020-06-05 13:03:58 -07:00
Megan Marsh
d73f83a9d9
Merge pull request #9367 from jeremiahsnapp/add-template_dir-and-pwd-functions
...
Add template_dir() and pwd() functions to HCL
2020-06-05 12:57:04 -07:00
Megan Marsh
2c89d086dc
typo in docs
2020-06-05 12:44:32 -07:00
Megan Marsh
8b9ed084b2
Merge pull request #9365 from hashicorp/except_only_block_hcl_docs
...
Update Provisioners and Post-Processor block HCL2 docs
2020-06-05 12:44:10 -07:00
Megan Marsh
7fcd702b45
Merge pull request #9358 from jhawk28/bug_9349
...
(vsphere-iso) add the ability to check if the IP is within the an IP range
2020-06-05 12:18:51 -07:00
Wilken Rivera
085de68b82
Merge pull request #9346 from hashicorp/hcl-validation-command
...
command/validate: Add support for HCL2 config files
2020-06-05 14:44:13 -04:00
Wilken Rivera
f672f5bd9b
command/validate: Add support for HCL2 configuration files
...
* Update validate command to use FixConfig for checking against known
fixers
* Update validation command flag docs
* Add ConfigFixer method to PackerHandler Interface
* Implement ConfigFixer interface in PackerConfig
* Remove all stdout messaging (i.e calls to c.Ui.Say) in the validate
command. The command will only display hcl.Diagnotic messaging when there is an error or warning.
HCL2 Configs
```
⇶ packer validate docker_centos_shell_provisioner.pkr.hcl
```
JSON Configs
```
⇶ packer validate vmware-iso_ubuntu_minimal/vmware-iso_ubuntu_minimal.json
Error: Failed to prepare build: "vmware-iso"
1 error occurred:
* Deprecated configuration key: 'iso_checksum_type'. Please call `packer fix`
against your template to update your template to be compatable with the current
version of Packer. Visit https://www.packer.io/docs/commands/fix/ for more
detail.
Warning: Fixable configuration found.
You may need to run `packer fix` to get your build to run correctly.
See debug log for more information.
map[string]interface{}{
"builders": []interface{}{
map[string]interface{}{
... // 3 identical entries
"guest_os_type": string("ubuntu-64"),
"http_directory": string("http"),
- "iso_checksum":
string("946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2"),
+ "iso_checksum":
string("sha256:946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2"),
- "iso_checksum_type": string("sha256"),
"iso_url":
string("http://old-releases.ubuntu.com/releases/14.04.1/ubuntu-14.04.1-server-amd64.iso "),
"shutdown_command": string("echo 'vagrant' | sudo -S shutdown -P now"),
... // 4 identical entries
},
},
}
```
2020-06-05 14:24:39 -04:00
Megan Marsh
093cfcfd9f
Merge pull request #9322 from arizvisa/GH-8528
...
Fix the VMware builders when the guest platform's dhcpcd switches the ip address in-between a build
2020-06-05 10:58:00 -07:00
Ali Rizvi-Santiago
8985ba077c
Re-added the (mistakenly removed) host override to the CommHost for the vmware builders.
2020-06-05 12:39:20 -05:00
Jeremiah Snapp
3f2b8587b1
Replace regexreplace docs typo with regex_replace
...
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:17:18 -04:00
Megan Marsh
4cd3429914
add ssh override test
2020-06-05 10:15:11 -07:00
Jeremiah Snapp
3b9a0427cd
Add template_dir function to HCL
...
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:14:36 -04:00
Jeremiah Snapp
2800043149
Add pwd function to HCL
...
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:14:03 -04:00
Adrien Delorme
bac9c74447
packer console for HCL2 ( #9359 )
2020-06-05 17:23:54 +02:00
Moss
112638da01
Add ToolSyncTime and ToolUpgradePolicy to vSphere
2020-06-05 17:20:44 +02:00
Moss
110b1411d7
Update provisioners and post-processor hcl2 docs
2020-06-05 15:49:09 +02:00
Moss
26e099023b
Update CHANGELOG
2020-06-05 11:53:14 +02:00
Jeremiah Snapp
0d7c5dc670
Enable only/except for provisioners and post-processors ( #9357 )
2020-06-05 11:51:23 +02:00
Wilken Rivera
fd0764d668
docs/builder/azure-arm: Add shared_image_gallery to Azure builder options section ( #9364 )
2020-06-05 11:49:48 +02:00
Sylvia Moss
1422085ede
Validate host and network when looking for network ( #9361 )
2020-06-05 11:01:58 +02:00
Joshua Foster
d87e53b841
return false instead of continue to match logic from govmomi
2020-06-05 00:09:57 -04:00
Joshua Foster
3a6d42e0df
ip check should continue if the ip is NOT in the range
2020-06-04 23:17:02 -04:00
Joshua Foster
90463e5394
make default for wait address to be any ipv4 address. add some better documentation
2020-06-04 23:13:46 -04:00
Ali Rizvi-Santiago
9c5a65263f
Added @SwampDragons' suggestion to the `CommHost()` implementation for the vmware builders which uses the communicator config's `Config.Port()` function to determine the communication port-number independent of the configured protocol.
2020-06-04 19:04:12 -05:00
Megan Marsh
671aba9def
update changelog
2020-06-04 14:49:30 -07:00
Megan Marsh
baed65156c
Merge pull request #9319 from arizvisa/GH-8528.refactor
...
This refactors the dhcpd lease parser in the vmware builders and adds unit tests for everything.
2020-06-04 12:18:49 -07:00
Joshua Foster
27a1ceef6d
add example for any ipv4 address
2020-06-04 12:15:53 -04:00
Sylvia Moss
aa52e690ee
Update go-getter and add samba shared files tests to step_download ( #8954 )
2020-06-04 15:00:18 +02:00
Ali Rizvi-Santiago
898321bcfe
Added suggestions from @SwampDragons to the parsers from the vmware builders, included unit-tests and sample file for fusion's networking file, and fixed a few situations where the channel wasn't being closed.
2020-06-04 05:07:18 -05:00
Joshua Foster
1fb22a7b7b
add the ability to check if the IP is within the an IP range
2020-06-04 01:55:25 -04:00
Megan Marsh
7ff8ba33cf
Merge pull request #9313 from jhawk28/http_bind_address
...
add the ability to configure the http bind address
2020-06-03 16:56:43 -07:00
Joshua Foster
d35f342319
add the ability to configure the http bind address. defaults to 0.0.0.0.
2020-06-03 16:40:18 -07:00
Megan Marsh
02590f6c44
Merge pull request #9329 from hashicorp/je.website-maintenance-5-29-20
...
🌷 Website Spring Maintenance
2020-06-03 16:25:23 -07:00