Commit Graph
18526 Commits
Author SHA1 Message Date
dependabot[bot] f7ce79362d Bump github.com/hashicorp/packer-plugin-sdk from 0.3.1 to 0.3.2 (#11981)
Bumps [github.com/hashicorp/packer-plugin-sdk](https://github.com/hashicorp/packer-plugin-sdk) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/hashicorp/packer-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/packer-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/packer-plugin-sdk/compare/v0.3.1...v0.3.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/packer-plugin-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-20 13:08:38 -04:00
Zach Shilton f9ba7dca5d fix(website): sourceBranch for anka in plugins-manifest (#12004) 2022-09-19 20:12:45 -04:00
Lucas Bajolet 779a31a25f hcp: use HCP_PACKER_REGISTRY to disable HCP
The current behaviour for HCP integration is based on the presence of
the HCP_PACKER_REGISTRY environment variable, where if it is either not
"0" or "off", the HCP integration is enabled.

This commit changes the behaviour to only use this variable to
explicitely disable HCP, and the HCP_PACKER_BUCKET_NAME variable will
condition if the HCP integration is enabled for a build or not in JSON
templates.

For HCL templates, the integration can also be disabled if the
HCP_PACKER_REGISTRY variable is set to "0" or "off", and will be
considered enabled if the HCP_PACKER_BUCKET_NAME is set, or there is a
"hcp_packer_registry" block in a build.
2022-09-19 11:22:13 -04:00
Laura PacilioandWilken Rivera d4b03769f2 Update plugin docs - devdot launch (#11978)
* Separate install instructions; add to external plugins

* Remove duplicate external plugin link; modify overiew page

* Remove unnecessary partials; clean up plugin overview page

* cleaning up plugin explanations

* final language updates

* modify external plugin overview page

* Update website/content/docs/plugins/index.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Update website/content/docs/plugins/install-plugins.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Move HCP Support to under developing plugins

* Link HCP Packer support to other dev pages; fix overviews

* clean up more language and links

* Add External Plugins link to docs sidebar under plugin section

* Update website/data/docs-nav-data.json

Co-authored-by: Wilken Rivera <[email protected]>
2022-09-15 18:12:37 -04:00
Wilken Rivera 11e71729f1 Remove Oracle plugin from the list of vendored plugins (#11983)
The latest release of the Oracle plugin for Packer removed
Solaris from its list of supported platforms. Since Packer still
releases binaries for Solaris the Oracle plugin will no longer be
bundled and distributed within the Packer binary. Practitioners relying
on the plugin can continue using the plugin by installing it manually
using either the `packer init` or `packer plugins install` commands.
2022-09-15 12:31:52 -04:00
dependabot[bot] 51980ca573 Bump actions/stale from 5.1.1 to 5.2.0 (#11989)
Bumps [actions/stale](https://github.com/actions/stale) from 5.1.1 to 5.2.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5.1.1...v5.2.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-15 12:31:34 -04:00
Laura Pacilio 8765cd3cab Content munge devportal (#11982)
* Update content for devdot

* more edits

* Update website/content/docs/templates/hcl_templates/blocks/index.mdx

* Update website/content/docs/provisioners/index.mdx

* Update website/content/docs/datasources/index.mdx
2022-09-14 16:16:39 -04:00
Zach Shilton 379a17fdca fix(website): pin packer-plugin-outscale docs to 1.0.2 (#11986) 2022-09-14 13:35:26 -04:00
dependabot[bot] 1be3860b96 Bump slackapi/slack-github-action from 1.21.0 to 1.22.0 (#11980)
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.21.0...v1.22.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-13 19:40:56 -04:00
Lucas Bajolet a298617ecb command/build: warn and exit when nothing to build
When a `packer build' is run on a config that does not define anything
to be built, the process would run normally, and only state that no
artifacts were produced after builds were run successfully.

This is misleading as we reach the end of the command without having a
proper warning that nothing was even attempted to be built.

This commit adds a warning when that happens, and leaves immediately
after.
2022-09-13 15:58:28 -04:00
Wilken Rivera facf007473 Merge branch 'boahc077-main' 2022-09-12 15:40:41 -04:00
Wilken Rivera 9899c666ad Remove unused action 2022-09-12 15:38:52 -04:00
Wilken Rivera 3bb02bf5dd Merge branch 'main' of github.com:boahc077/packer into boahc077-main 2022-09-12 15:38:12 -04:00
Lucas Bajolet 7091726ca6 Makefile: bump golangci-lint to 1.46.0 (#11977)
Since we moved to go 1.18, we should bump golangci-lint to a version
that supports it.

This change is motivated by the fact that some valid go code was being
rejected by the `typecheck` with aliased modules beign unrecognised,
namely the `hcl' module, imported from `hcl/v2'.

This should not cause any issues as the typechecker should be aware that
the package exported by `hcl/v2' is indeed called `hcl', but for some
reason, with version 0.42.0, it does not work.
2022-09-12 15:37:20 -04:00
Ashish Kurmi 1a71616e0a ci: add minimum GitHub token permissions for workflows
Signed-off-by: Ashish Kurmi <[email protected]>
2022-09-07 22:19:28 -07:00
Gary McDonald f56414afed Fix: Correct the spelling of recommended in the Installing Plugins installation instructions. (#11960) 2022-08-25 11:17:51 +02:00
Wilken Rivera ed72488e25 Bump golang.org/x/sys to address CVE-2022-29526 (#11953)
https://github.com/golang/go/issues/52313
2022-08-22 17:27:57 -04:00
Scott Ford 0a1b1435b4 Adds packer plugin for Mondoo (#11951)
Signed-off-by: Scott Ford <[email protected]>

Signed-off-by: Scott Ford <[email protected]>
2022-08-22 16:27:17 -04:00
Lucas BajoletandEd Eustace f4a2ac3b31 feat: support pwsh in powershell provisioner (#11950)
* set `pwsh` to true in config to run `pwsh.exe`, default is false.
* add docs

Co-authored-by: Ed Eustace <[email protected]>
2022-08-19 16:00:46 -04:00
Wilken Rivera 25e6546bb1 Update CHANGELOG 2022-08-18 09:58:36 -04:00
Wilken Rivera d7dca51108 Update Packer to use Go 1.18 (#11927)
This change updates Packer core Go version to 1.18. The move to Go 1.18 and not Go 1.19
is to allow the HCP Packer SDK time to upgrade to Go 1.18.

Changes Made:
* Bump go mod file to use Go 1.18
* Bump release pipeline to use Go 1.18
* Update plugin updater script to run go mod tidy for Go 1.18
* Update Linux job to use setup-go action
2022-08-18 09:41:29 -04:00
Michele Degges a0a9f594ca Set PRODUCT_VERSION arg in dockerfile (#11947)
### Description

In `actions-docker-build` we [pass](https://github.com/hashicorp/actions-docker-build/blob/05c370a26e61b06be46c5095d6e914c9f0ea4f3d/scripts/docker_build#L49) `PRODUCT_VERSION` to the docker build command. Since this was not set, the label did not populate properly which is used in a comparison to determine the `minor-latest` and `latest` docker image tags. A change merged in today (https://github.com/hashicorp/actions-docker-build/pull/25) checks for this value being set in the docker build action, and errors out if it does not exist. This will unfortunately cause build failures in this repo on merges to `main`. 

### Testing & Reproduction steps
To test locally:


How I expect reviewers to test this PR:
- same as above

### Links

Related [internal-only] post about this: https://hashicorp.atlassian.net/wiki/spaces/RELENG/pages/2416934922/August+17+2022-+Docker+Build+Failures
2022-08-17 20:45:26 -04:00
Wilken Rivera c9aab39d35 Add github.com/vmware-samples to list of template repositories (#11937)
* Add link to vmware-samples template repository

* Update ordering of community tools
2022-08-12 16:36:17 -04:00
Lucas Bajolet 7cd095062a parser: extract HCP logic out of the HCL parser
Before this commit, some HCP-related logic was embedded in the parser,
making all of it common to all commands.

This complexifies the logic as some parts rely on the template being in
a HCP-valid environment, and the datasources need to be evaluated in
order for some operations to be executed.

To simplify this and avoid those pitfalls, we move this logic to its own
set of functions that will be performed after the parsing is done, on
any valid HCL2 or JSON template.
2022-08-12 11:54:21 -04:00
Lucas Bajolet 8b9c70cba2 packer: remove useless nil check on generatedVars 2022-08-12 11:54:21 -04:00
Lucas Bajolet 4be7e38474 command: move GetConfig methods to meta
Since the GetConfig methods are common to all the commands of Packer
that rely on a config to work, we move them from build.go to meta.go in
order to make the intent clearer.
2022-08-12 11:54:21 -04:00
Wilken Rivera 70c4f7a8c9 Update CHANGELOG
In moving to the shared HashiCorp release toolkit it was agreed to
remove support for the following architectures ppc64le mips mips64 mipsle mipsle64 s390x
since they are not part of the HashiCorp supported platforms. Nor are
they available as a release binary for any of the Packer plugins.

This change adds an entry to the Packer CHANGELOG to call out the
removal of the said architectures.

As we continue with the path of removing the plugins from Packer core
supporting platforms outside of those managed by our tooling
will be an issue for users as Packer needs the plugins to operate
properly.
2022-08-10 13:24:45 -04:00
Wilken Rivera 88ad9655aa Update python command for reading in pull.json 2022-08-09 21:01:51 -04:00
Wilken Rivera 0f59a53ba6 Update changelog scripts to work with Python3
Now that Python 2 has been removed from Macos 12.x and replaced with
Python3 I'm updating the simple tools to work with the Python3
interrupter.
2022-08-09 21:01:51 -04:00
Wilken Rivera 23cd26617b Update comments used by generated docs
This change updates the comments for the HCP Packer data sources to
match the recently corrected documentation text.
2022-08-09 15:42:00 -04:00
Sarah Thompson 70b3d0b2b9 Merge pull request #11882 from hashicorp/post-publish-website
Introduces the post publish website event
2022-08-08 17:30:10 +01:00
Dan Barr d2c83c4944 Update Golang references to Go
* Fix any "golang" to just "Go"
* Update golang.org URLs to go.dev
2022-08-05 13:42:56 -04:00
Dan Barr aec214d0b8 Fix plugin nav titles
* Normalize branding/capitalizations
2022-08-05 13:42:56 -04:00
Dan Barr ab69a2963b Update HTTP data source page title
* Capitalize HTTP
2022-08-05 13:42:56 -04:00
Dan Barr ab29b187b1 Fix capitalizations in docs
* Brands (HashiCorp, VMware)
* Various OS/languages (Windows, Unix, Linux, POSIX, Python, PowerShell)
* Various abbreviations (ID, VM, HTTP)
2022-08-05 13:42:56 -04:00
Wilken Rivera 0c9c3fe48c Put in dev mode 1.8.4 2022-08-02 21:05:48 -04:00
Wilken Rivera 083ab4f4cb Update CHANGELOG
This change fixes a few typos and inconsistencies within the changelog
entries for the 1.8.3 release.
2022-08-02 16:03:34 -04:00
Wilken Rivera 38b47d8211 Cut release 1.8.3
* Fix spacing in CHANGELOG
* Add release date to CHANGELOG
v1.8.3
2022-08-02 05:55:28 -04:00
Wilken Rivera 46e24b129c Update CHANGELOG 2022-08-01 15:42:46 -04:00
Wilken Rivera 392c4774da Bump bundled plugins to latest available version (#11917) 2022-08-01 09:37:33 -04:00
Wilken Rivera c09f98686d Add HCP Packer Ready badge to UpCloud (#11914) 2022-07-29 15:41:27 -04:00
Wilken Rivera e3ad29d2aa Update third-party plugin imports (#11912)
* packer-plugin-digitalocean: Update module import path

* packer-plugin-outscale: Remove bundled plugin

* packer-plugin-scaleway: Remove bundled plugin
2022-07-29 11:45:30 -04:00
Sylvia Moss 5c3d5c1295 Send channel id to HCP Packer (#11861) 2022-07-29 15:15:29 +02:00
dependabot[bot] d8e0ccc965 Bump actions/stale from 5.1.0 to 5.1.1 (#11910)
Bumps [actions/stale](https://github.com/actions/stale) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/v5.1.1/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5.1.0...v5.1.1)

---
updated-dependencies:
- dependency-name: actions/stale
  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>
2022-07-28 15:28:42 -04:00
dependabot[bot] a8c60e5117 Bump slackapi/slack-github-action from 1.20.0 to 1.21.0 (#11911)
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.20.0...v1.21.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 15:28:18 -04:00
Lucas Bajolet 0da7cf781e go.mod: bump SDK to v0.3.1 2022-07-28 14:50:57 -04:00
dependabot[bot] a362afe785 Bump slackapi/slack-github-action from 1.19.0 to 1.20.0 (#11906)
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.19.0...v1.20.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 11:10:14 -04:00
dependabot[bot] cd75c20390 Bump actions/stale from 5.0.0 to 5.1.0 (#11880)
Bumps [actions/stale](https://github.com/actions/stale) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 15:56:58 -04:00
krzys_h f28d36c888 Fix typo in the pipelining-builds docs (#11900)
Somebody forgot to finish their last sentence...
2022-07-23 09:16:50 -04:00
Wilken Rivera a4a497bd80 Delete pull-requests-opened.yml (#11890)
This action doesn't work as expected given that public forks don't have access to the token.
2022-07-22 13:02:50 -04:00