Skip to content

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