generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: local and remote cache options (#399)
- Adds ability to perform cleanup of items added to the remote cache upon build completion in addition to the existing cancelled or halted. To enable, set `remote_cache_cleanup = true`. Defaults to `false`. - Adds the ability to specify the datastore for the placement of the remote cache. To enable, set `remote_cache_datastore = "myCacheDatastoreName"`. If not set, the datastore of the virtual machine is used. - Adds the ability to specify the path on the datastore for the placement of the remote cache. To enable, set `remote_cache_path = "foo/bar"` If not set, the default path is `packer_cache` at the root of the datastore. - Adds the ability to overwrite items in the remote cache. To enable, set `remote_cache_overwrite = true`. - Adds the ability to overwrite items in the local cache. To enable, set `local_cache_overwrite = true`. If `local_cache_overwrite = true`, `remote_cache_overwrite` is implicitly be set to `true`. This is to ensure consistency between the local and remote cache. Signed-off-by: Ryan Johnson <[email protected]>
- Loading branch information
Ryan Johnson
authored
Apr 17, 2024
1 parent
79fbec4
commit de0c305
Showing
8 changed files
with
231 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.