Commit Graph

15445 Commits

Author SHA1 Message Date
Megan Marsh b357027f07
Merge pull request #9394 from hashicorp/td-milestone-issue-labeler
.github/workflows/issues: Add milestone labeling action
2020-06-10 12:24:25 -07:00
Wilken Rivera 9ad4c7c5fe .github/workflows/issues: Add milestone labeling action
This change adds a GitHub action that will automatically apply the
`track-internal` label to any issue that is added to an existing Packer
milestone.
2020-06-10 15:10:48 -04:00
Megan Marsh 8aeaf28bf3
Merge pull request #9380 from hashicorp/azr-docs-remove-duplicate-guest-additions-mode-docfield
docs: virtualbox/iso: remove duplicate guest_additions_mode field ( it's already defined in `GuestAdditionsConfig` )
2020-06-10 11:08:17 -07:00
Megan Marsh c984f71786
Merge pull request #9391 from hashicorp/fix_8656
Update vmware/govmomi to v0.22.2
2020-06-10 11:04:55 -07:00
Megan Marsh dc14e6a1e2
Merge pull request #9390 from jhawk28/bug_8766
use datacenter inventory path for find folder
2020-06-10 10:52:17 -07:00
Megan Marsh 3a13eafa61
Merge pull request #9387 from arizvisa/GH-9382
Fixed a race in the ReadNetworkingConfig implementation from the vmware builders
2020-06-10 09:53:16 -07:00
Megan Marsh a0a3ddbadb
Merge pull request #9379 from GennadySpb/sa-auth-in-yandex-export
Support Authentication by Service Account Key file in Yandex Export post-processor
2020-06-10 09:40:02 -07:00
Svetlin 49bf9c9d37
[gcp] Fixup for the deprecated Secure Boot guest OS feature (#9371)
GCP informed us that the GuestOsFeature SECURE_BOOT is deprecated and
that they are using UEFI_COMPATIBLE instead. This means, using an image
with 'UEFI_COMPATIBLE' guest OS feature confirms the 'secureBoot'
feature compatibility.
2020-06-10 16:21:11 +02:00
Joshua Foster f5a795a22e use path.Join to make a cleaner path 2020-06-10 09:12:21 -04:00
Moss 698e4cda15 update vmware/govmomi to v0.22.2 2020-06-10 14:38:17 +02:00
Joshua Foster c7a6315ca4 use datacenter inventory path for find folder 2020-06-10 08:24:23 -04:00
GennadySpb 79770f919a
Fix error message (#9373) 2020-06-10 13:29:20 +02:00
Ali Rizvi-Santiago 3da5a64a8d Fixed a race in the ReadNetworkingConfig implementation from the parsers belonging to the vmware builders that existed between reading the version and consuming tokens from the rest of the file. 2020-06-09 19:37:38 -05:00
packer-ci 46aea0f14b Putting source back into Dev Mode 2020-06-09 21:15:36 +00:00
packer-ci b05ca9e9e1
Cut version 1.6.0 2020-06-09 19:31:34 +00:00
packer-ci 05a2b854c4 cut version 1.6.0 2020-06-09 19:31:33 +00:00
packer-ci 58c7971fff update changelog 2020-06-09 19:31:32 +00:00
Megan Marsh 03e0d6b2ff clean up changelog 2020-06-09 11:45:55 -07:00
Derek Strickland 647ccb35f1
Update website/pages/docs/install.mdx
Co-authored-by: kaitlincarter-hc <43049322+kaitlincarter-hc@users.noreply.github.com>
2020-06-09 14:39:43 -04:00
DerekStrickland 6de0dce33a Refactored to redirects instead of hard external links in side nav model 2020-06-09 13:58:33 -04:00
DerekStrickland 50fee40b53 Removed 'easy to use' 2020-06-09 12:47:53 -04:00
Megan Marsh fdd50e33fb remove reverted update from changelog 2020-06-09 09:32:38 -07:00
Megan Marsh 1c028489ca
Merge pull request #9381 from hashicorp/fix_9377_regression
Fix build/validate -except flag for JSON and HCL2
2020-06-09 09:24:07 -07:00
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