hashicorp / hashicorp/packer-plugin-amazon

PACKER_PATH arg for Makefile to fix support packer symlinks and/or conflicting paths.

Open
#604 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
91
Forks
141
Avg merge
2d 18h
Merged PRs (30d)
3

Description

#### Community Note

Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

#### Description

On some distributions, there may be another tool named packer installed by default. This prevents using the Makefile to build when this conflict is present.
Additionally packer recommends using a symlink to overcome this conflict. Using the PACKER_PATH arg, it could be set to the symlink that points to packer as well.

See description of issue in Packer documentation listed below in references.

#### Use Case(s)

When on a distribution of linux and doing development on the packer-plugin-amazon and the distribution has the cracklib packer conflict, users will have other either run the make dev target commands by hand or edit the makefile to use the absolute path of packer.

Instead an optional arg 'PACKER_PATH' that defaults to 'packer' will allow users to optionally change the packer to use.

#### Potential configuration
Using the absolute path to packer
```
make PACKER_PATH=/usr/local/bin/packer dev
```

Using a symlink to packer named packer.io that exists in users home directory
```
make PACKER_PATH=~/packer.io dev
```
#### Potential References
https://developer.hashicorp.com/packer/tutorials/docker-get-started/get-started-install-cli#troubleshooting

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.