Commit graph

15 commits

Author SHA1 Message Date
hashicorp-copywrite[bot]
e7fb788400 [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 5) 2025-12-11 07:02:12 +00:00
Lucas Bajolet
6fc1d154bd packer: relax constraints on sources
The source parsing logic was heavily directed towards Github compatible
source URIs, however if we want to support more cases, we need to make
sure we are able to specify those URIs, and to load plugins installed
from those sources.

Right now, since the getters available are only github.com, we will not
support remotely instlling plugins from sources other than github.com,
with the same set of constraints as before. However, we do support now
installing from a local plugin binary to any kind of source, and we
support loading them, including if a template wants this plugin
installed locally with version constraints.
2024-04-29 14:28:24 -04:00
Wilken Rivera
c65bb2fdca Remove amazon plugin from acceptance test 2023-10-24 06:00:42 -04:00
Wilken Rivera
8490333f55 Fix broken acctest for Amazon data source
This change updates the Ubuntu image being from 16.04 to something more recent.
2023-10-02 06:50:04 -04:00
guoguangwu
7eb6a45cd4 chore: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-09-26 11:13:31 -04:00
Wilken Rivera
999d751793 Rename duplicate ami name to fix failing test 2023-08-17 11:12:56 -04:00
hashicorp-copywrite[bot]
19055df3ec
[COMPLIANCE] License changes (#12568)
* Updating the license from MPL to Business Source License

Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at https://hashi.co/bsl-blog, FAQ at https://hashi.co/license-faq, and details of the license at www.hashicorp.com/bsl.

* Update copyright file headers to BUSL-1.1

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-08-10 15:53:29 -07:00
hashicorp-copywrite[bot]
a1957a1def [COMPLIANCE] Add Copyright and License Headers 2023-07-24 12:15:59 -04:00
Lucas Bajolet
a2930bda4f packer: warn on bundled plugins usage
Since bundled plugins will be removed in an upcoming version of Packer,
this commit adds a new warning message whenever a template uses one such
plugin.

This warning has been implemented on build, validate, console and the
inspect subcommands.

In addition to warning about the upcoming change and potential issue
this will cause, this warning message proposes solutions to the user so
they know what they'll have to do in order not to rely on those bundled
plugins later.
2023-07-18 15:36:12 -04:00
hashicorp-copywrite[bot]
b7df3ca36f
[COMPLIANCE] Add Copyright and License Headers (#12254)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2023-03-02 15:37:05 -05:00
Michele Degges
b63a9c9803
Onboard to CRT (#11564)
Onboard Packer to CRT

Co-authored-by: Wilken Rivera <wilken@hashicorp.com>
Co-authored-by: Claire Labry <claire@hashicorp.com>
2022-02-25 15:56:20 -08:00
Wilken Rivera
9b2f520b2d
Fix basic datasource acceptance test flakiness (#11438)
This change sets a region on the test datasource config to fix intermittent InvalidAMIID.NotFound errors.

Closes https://github.com/hashicorp/packer-internal-issues/issues/14

Failing results before change

```
> AWS_DEFAULT_REGION=us-west-1 make testacc
=== RUN   TestAccInitAndBuildBasicAmazonAmiDatasource
2021/12/07 20:40:05 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2021/12/07 20:40:05 Found region us-west-1
2021/12/07 20:40:05 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
    pluginacc.go:143: Error running plugin acceptance tests: Bad exit code. Logfile: packer_log_amazon-ami_basic_datasource_test.txt
        Logs can be found at /Users/wilkenrivera/Development/packer/acctest/plugin/packer_log_amazon-ami_basic_datasource_test.txt
        and the acceptance test template can be found at /Users/wilkenrivera/Development/packer/acctest/plugin/amazon-ami_basic_datasource_test.pkr.hcl
--- FAIL: TestAccInitAndBuildBasicAmazonAmiDatasource (9.87s)
FAIL
FAIL    github.com/hashicorp/packer/acctest/plugin      10.326s
```

Passing results after change
```
> AWS_DEFAULT_REGION=us-west-1 make testacc
=== RUN   TestAccInitAndBuildBasicAmazonAmiDatasource
2021/12/07 20:47:28 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2021/12/07 20:47:28 Found region us-west-1
2021/12/07 20:47:28 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
--- PASS: TestAccInitAndBuildBasicAmazonAmiDatasource (223.32s)
PASS

```
2021-12-08 10:13:16 +01:00
Wilken Rivera
6d0d5c89f3
Update plugin directory check for ci (#11253)
* Update plugin directory check for ci

On CIRCLECI the default plugin direction is under `$HOME/.config/packer`
this changes updates the acctest just a bit to check if we are running
in a CIRCLECI env.

* Apply same logic to cleanup step
2021-09-07 16:14:59 -04:00
Wilken Rivera
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 <azr@users.noreply.github.com>
2021-06-15 15:51:15 -04:00
sylviamoss
49474f8f37 add plugin acceptance test using amazon plugin 2021-04-07 16:21:15 +02:00