Hi,
Previous solution working but i found that packer json would be too crowded
with variables, so i am now searching solution where i can store these
variables (like file).
Link before: https://groups.google.com/forum/#!topic/packer-tool/WQEXIut-ibI
I couldn't find anywhere example how to achieve this. Yes, i read the
documentation.
And wrote:
{
"type": "shell",
"script": "./example.sh",
"use_env_var_file": true,
"execute_command": "chmod +x {{ .Path }}; {{ .EnvVarFile }} sudo {{ .Path
}}",
"pause_before": "10s"
}
The problem is how to declare variables and where {{ .Path }}; {{
.EnvVarFile }} sudo {{ .Path }} ?
How to set this configuration template
<https://www.packer.io/docs/templates/engine.html> , is there some
extension to that file? or it could be anything for example *.txt
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/e8a178eb-2e1c-440f-ba2d-6f3b89e8fb19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.