Commit Graph
18838 Commits
Author SHA1 Message Date
Adrien Delorme 1d915adad1 file provisioner: add possibility to set content + tests (#11209) 2021-08-17 11:24:29 +02:00
Adrien Delorme 57f37c99ea avoid hcl2_upgrade panic when file does not exist (#11206) 2021-08-13 16:08:12 +02:00
Mike Wickett 3f8c8704e5 chore: update alert banner (#11195) 2021-08-13 08:05:10 -04:00
Zachary Shilton adcd472873 website: upgrade content and global styles (#11151)
* website: upgrade global-styles packages

* website: upgrade community page

* website: hide alert-banner on mobile

* website: replace g-container with g-grid-container

* website: delete unused CSS

* website: backfill missing type styles

* website: fix style import path

* website: bump to latest patched dependencies
2021-08-13 08:04:19 -04:00
dependabot[bot] 54a4f59fc7 Bump path-parse from 1.0.6 to 1.0.7 in /website (#11202)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-12 10:56:36 +02:00
Wilken Rivera e8b5b4b516 Fix {{packer_version}} interpolation regression (#11200)
* Add Packer version to main context at variable interpolation

Test Results Before Change
```
=== RUN   TestCoreBuild_packerVersion
    testing.go:30: err: template: root:1:2: executing "root" at <packer_version>: error calling packer_version: packer_version not available
--- FAIL: TestCoreBuild_packerVersion (0.00s)
```

Test Results After Change
```
=== RUN   TestCoreBuild_packerVersion
--- PASS: TestCoreBuild_packerVersion (0.00s)
```

* Add packer_core_version to interpolation context for HCL configs

Test Results Before Change
```
=== RUN   TestParse_build/provisioner_with_packer_version_interpolation
    common_test.go:109: Parser.getBuilds() unexpected diagnostics. testdata/build/provisioner_packer_version_interpolation.pkr.hcl:8,5-24: Failed preparing provisioner-block
 "shell" ""; render 'slice_string': template: root:1:2: executing "root" at <packer_version>: error calling packer_version: packer_version not available in:

        {{packer_version}}
--- FAIL: TestParse_build (0.01s)
```

Test Results After Change
```
--- PASS: TestParse_build (0.02s)
--- PASS: TestParse_build/provisioner_with_packer_version_interpolation (0.00s)
```
2021-08-12 10:55:32 +02:00
Adrien Delorme 689c7763d4 document the plugin-getter.Get interface (#11196) 2021-08-11 16:32:38 +02:00
a534c743cf HCP Packer registry enabled Packer client (#11154)
* Add working registry pkg

* Add custom error for handling the loading of PAR environment variables

* Working Publish to Build, with proper error handling for bucket names

* Update hcp-sdk-go to use branch instead of mod replace directive

* Update Packer build status configuration

* Add support for HCP_PACKER_BUILD_FINGERPRINT env

* Add support for publishing one or more PARtifacts from a single build

* add git shas to this branch

* Add ability to set provider name if available

* Add working RegistryBuilder type

* Add RegistryPostProcessor as wrapper post-processor

* When in PAR mode a empty RegistryPostProcessor is added to the end of
  the post-processor list to publish all final image data.

* Add support for updating a build from PAR that is not in a DONE state

* Fix a small issue with creation the initial builds for an empty
  iteration.

* Add PAR URL to post-processor display

* Implement hcp_packer_registry block (#11168)

* Update vendored Amazon plugin to v1.0.1-dev

* Fix panic when running a Packer registry build in a clean directory

* Remove the publishing of post-processor metadata from the registry
  post-processor.

* Remove metadata add from registry_builder

* Update registry builder to skip a build that was found to be DONE

Co-authored-by: Megan Marsh <[email protected]>
Co-authored-by: Sylvia Moss <[email protected]>
2021-08-05 09:25:19 -04:00
Mike Wickett 298ca5fd35 website: update consent manager (#11177) 2021-07-30 15:45:14 -04:00
HACK SPHERE LABS 3b733eb0f8 added newest packer-plugin-xenserver and xcp-ng (#11166)
the old citrix plugin has not been updated recently, so the sponsored fork is added, and references to xcp-ng added
2021-07-29 15:49:34 +02:00
Bryce Kalow 6825d1ad0d web: migrate to web platform- packages (#11156) 2021-07-27 15:54:54 -05:00
Ori Hoch 7db0234a60 add Kamatera builder plugin (#11158) 2021-07-26 15:14:11 -04:00
Wilken Rivera c0fd6a09af Bump packer-plugin-azure to v1.0.1 (#11162) 2021-07-22 10:36:12 +02:00
packer-ci f6e6060921 Putting source back into Dev Mode 2021-07-20 18:19:09 +00:00
packer-ci 8f860ea8aa Cut version 1.7.4 v1.7.4 2021-07-20 17:06:45 +00:00
packer-ci 024c08b3d3 cut version 1.7.4 2021-07-20 17:06:43 +00:00
packer-ci 6e4c195301 update changelog 2021-07-20 17:06:43 +00:00
Wilken Rivera ec1408a933 Update CHANGELOG 2021-07-20 11:49:40 -04:00
Joseph Daniel 33a4ba2dc1 Fix incorrect isotime output (#11157) 2021-07-20 10:54:29 -04:00
dependabot[bot] b0f6f72f3a Bump andymckay/labeler from 1.0.2 to 1.0.3 (#11160)
Bumps [andymckay/labeler](https://github.com/andymckay/labeler) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/andymckay/labeler/releases)
- [Commits](https://github.com/andymckay/labeler/compare/1.0.2...1.0.3)

---
updated-dependencies:
- dependency-name: andymckay/labeler
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-20 10:52:46 -04:00
Matthieu MOREL 8d695ea935 Set up Dependabot (#11142)
* Create dependabot.yml

* Update .github/dependabot.yml

* Update dependabot.yml
2021-07-20 10:44:34 -04:00
Megan Marsh 4e9a01a0bc Merge pull request #11146 from hashicorp/fix_website
Fix link and copypasta from waypoint
2021-07-14 10:52:32 -07:00
Megan Marsh f73edb70b5 fix link and copypasta from waypoint 2021-07-14 10:26:47 -07:00
Megan Marsh ea410c1a59 Merge pull request #11147 from hashicorp/update_outscale
Update outscale plugin
2021-07-14 10:24:18 -07:00
sylviamoss 0202280167 update outscale plugin 2021-07-14 17:42:20 +02:00
Noel Quiles e76697f2b7 Bump hashi-stack-menu (#11141) 2021-07-12 16:32:26 -04:00
Megan Marsh c56f34f9d3 add stdin to docs for fmt (#11132) 2021-07-07 10:11:02 -04:00
Megan Marsh a7b234af13 remove broken links and just send users over to learn platform (#11127) 2021-07-02 12:20:12 +02:00
Wilken Rivera d9d3ed6a9e Replace HashiBot with GitHub action for remote-plugin issue migration (#11125)
This changes removes the use of HashiBot for migrating issues labels
with remote-plugin/* to their respective plugin repositories. The GitHub
action has feature parity with HashiBot so the migration should work as
it did before.

The GitHub action closes the original issues and creates a new issue on
the remote plugin repository with the original contents of the issue to
preserve history. We chose not to go with GitHub's issue transfer option
because it completely moves the issue to the target repo, meaning there
is not history that it was ever created on the original repository.

In the future, we will look to add an action for closing remote-plugin
issues that we no longer have access to.

Closes: #11043
2021-06-30 14:49:14 -04:00
Megan Marsh 7cd0167c84 Merge pull request #11122 from brimstone/patch-1
fix typo in configure docs
2021-06-28 15:17:28 -07:00
Kendall Strautman cf48d76fbd chore: upgrade react-head and deps (#11119) 2021-06-28 08:58:17 -07:00
Matt Robinson fe425e533d fix typo in configure docs 2021-06-25 20:10:20 -04:00
Zachary Shilton a2b7105238 website: bump nextjs-scripts for latest code-block (#11112) 2021-06-23 10:01:34 -04:00
Mark Lewis 5b8cce603d Minor formatting improvement (#11106) 2021-06-21 17:34:13 +02:00
Zachary Shilton e6f1330c10 website: upgrade code-block (#11031)
* website: test code-block upgrade with pre-releases

* website: remove prism  style import, now incl in code-block

* website: bump to latest code-block releases

* website: remove explicit code-block dep, not needed
2021-06-21 10:55:45 -04:00
Bryce Kalow 1f90f081ee update algolia API key (#11102) 2021-06-17 11:34:29 -04:00
Sylvia Moss 8470911ab6 add hashicups docs (#11096) 2021-06-16 11:32:05 +02:00
packer-ci 0cc423f142 Putting source back into Dev Mode 2021-06-15 22:44:21 +00:00
packer-ci 9df54c20db Cut version 1.7.3 v1.7.3 2021-06-15 22:19:20 +00:00
packer-ci 6208456cef cut version 1.7.3 2021-06-15 22:19:18 +00:00
packer-ci 0765821b53 update changelog 2021-06-15 22:19:18 +00:00
Wilken RiveraandAdrien Delorme b421e07304 Upgrade plugins to latest working versions (#11088)
* Upgrade plugins to latest working versions

* Update accetest to work with new AMIHelper

* More updates

* More plugin updates

* bump MANY plugins at once !

* up docker plugin && go mod tidy

* up vmware plugin to v1.0.0

* Bump packer-plugin-azure to latest

* Update tencentcloud plugin

* Update packer-plugin-oneandone

Co-authored-by: Adrien Delorme <[email protected]>
2021-06-15 15:51:15 -04:00
Wilken Rivera a674809438 Update CHANGELOG
* Add entries for hcl changes
2021-06-15 15:04:34 -04:00
Wilken Rivera 69e3bab841 update CHANGELOG 2021-06-15 13:44:19 -04:00
Adrien Delorme 9d0193ac14 add possibility to use variables everywhere in post-processor blocks (#11094)
feature + tests.

Including in:
* name
* only
* except
* keep_input_artifact

Example file:

```hcl
source "null" "example1" {
  communicator = "none"
}

source "null" "example2" {
  communicator = "none"
}

locals {
  except = "null.example1"
}

variable "only" {
  default = "null.example1"
}

build {
  sources = ["source.null.example1", "source.null.example2"]
  post-processor "shell-local" {
    except = [local.except]
    inline = ["echo first post-processor"]
  }

  post-processor "shell-local" {
    only   = [var.only]
    inline = ["echo second post-processor"]
  }
}
```
Ouput:
```shell-session
$ packer build foo.pkr.hcl
null.example1: output will be in this color.
null.example2: output will be in this color.

==> null.example1: Running post-processor:  (type shell-local)
==> null.example2: Running post-processor:  (type shell-local)
==> null.example2 (shell-local): Running local shell script: /var/folders/3k/2gb5ct4s7cncr52_jh2kz6cw0000gq/T/packer-shell201696062
==> null.example1 (shell-local): Running local shell script: /var/folders/3k/2gb5ct4s7cncr52_jh2kz6cw0000gq/T/packer-shell494781572
    null.example1 (shell-local): second post-processor
Build 'null.example1' finished after 61 milliseconds 432 microseconds.
    null.example2 (shell-local): first post-processor
Build 'null.example2' finished after 111 milliseconds 678 microseconds.

==> Wait completed after 111 milliseconds 714 microseconds
```

close #4895
2021-06-15 18:29:26 +02:00
Wilken Rivera e22346f0fa Extract ProfitBricks Plugin (#11084)
* Extract ProfitBricks Plugin

* Update CHANGELOG
2021-06-14 17:30:58 -04:00
Sylvia Moss 927093e5c0 improve regex to fix escaping on split function (#11083) 2021-06-14 18:58:32 +02:00
GennadySpbandSylvia Moss 51e7a95b3b Fix link ref (#11079)
* Fix link ref

* Update website/content/docs/templates/hcl_templates/functions/uuid/uuidv5.mdx

Co-authored-by: Sylvia Moss <[email protected]>

Co-authored-by: Sylvia Moss <[email protected]>
2021-06-11 16:41:10 +02:00
Sylvia Moss 3e471693b0 Upgrade plugins + script to upgrade plugins (#11077)
* upgrade plugins and add script
2021-06-10 13:10:53 +02:00
Mike Wickett b3465b0495 website: update alert banner (#11074) 2021-06-09 11:05:52 -04:00