Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datasource: add file datasource #12397

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

lbajolet-hashicorp
Copy link
Contributor

The file datasource is meant to be used to pre-create a file that can then be used elsewhere in the build process by its path.

This is useful for example when building a configuration file from a template, so then the resulting file can be referenced by components which only accept file paths.

@lbajolet-hashicorp lbajolet-hashicorp requested a review from a team as a code owner May 2, 2023 16:50
@nywilken nywilken added stage/thinking Flagged for internal discussions about possible enhancements stage/needs-investigation and removed stage/thinking Flagged for internal discussions about possible enhancements labels Oct 23, 2023
Some tests will create files and directories as part of the execution
path for Packer, and we need a way to check this, so this commit adds a
new file gadget to do those checks after a command executes.
The file datasource is meant to be used to pre-create a file that can
then be used elsewhere in the build process by its path.

This is useful for example when building a configuration file from a
template, so then the resulting file can be referenced by components
which only accept file paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants