commit 61756927fca1bab4b2a10d08512002ea17afa0c3 parent c1fa73e66959429fe706f34d301c4c8d2f7662ab Author: Andreas Gruhler <agruhl@gmx.ch> Date: Sun, 15 Dec 2024 23:14:54 +0100 doc: var-file flag Diffstat:
M | README.md | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -23,9 +23,14 @@ For some newer, hcl-based Packer configurations, it is necessary to supply extra variables through var files or the `-var` input flag: ```bash -packer build -var "gatus_tls_nfs_server=server:/share" gatus-lxc.pkr.hcl +packer build \ + -var "gatus_tls_nfs_server=server:/share" \ + -var-file="variables.auto.pkrvars.hcl" \ + gatus-lxc.pkr.hcl ``` +The `-var-file` ideally contains all sensitive variables. + ### Suggested Build Order The following sequence of builds allows you to spin up a small Nextcloud installation.