2

From Packer doc I know that {{ .Name }} is a template variable, but for what value is replaced {{ .Name }} when template variable substitution is done?

I found several templates that use {{ .Name }} but I failed to found the doc the explain what value is backing {{ .Name }}

I will appreciate if the answer point me to some doc.

2 Answers2

4

It refers to the name of the build which is the the builder type by default.

This isn't really clear from the docs so I opened #5382.

Rickard von Essen
  • 4,110
  • 2
  • 23
  • 27
0

I see that {{.Name}} resolves to this virtualbox-ovf #vm_name for virtualbox-ovf packer builder.

Ankur Agarwal
  • 23,692
  • 41
  • 137
  • 208