This is a default value from this line
https://github.com/hashicorp/packer/blob/81522dced0b25084a824e79efda02483b12dc7cd/builder/vmware/vmx/config.go#L54

Unfortunately the template value is not interpolated. That is a bug.

It would be great if you could report this at
https://github.com/hashicorp/packer

/ Rickard

On Aug 15, 2017 06:51, <[email protected]> wrote:

Hello,

This is how the vmx file name packer produced looks like:



<https://lh3.googleusercontent.com/-QB7VUqHGBoY/WZJ9OvqRkfI/AAAAAAAAH08/En_jvDrhEEA-p2qHr95Pa95uNEkCPSKaACLcBGAs/s1600/Untitled.png>

The packer json file does NOT contain substring "timestamp". Is this a
packer bug?

Note this is the packer template:

{
  "builders": [
        {
            "name":"windows-2012-sql2014express",
            "type":"vmware-vmx",
            "source_path":"stage\\packer-windows-2012-base.vmx",
            "output_directory": "vm-template-windows-2012-sql2014express",
            "headless":false,
            "boot_wait":"2m",
            "shutdown_command":"shutdown /s /t 10 /f /d p:4:1 /c \"Packer
Shutdown\"",
            "vnc_port_min":5900,
            "vnc_port_max":5980,
            "communicator":"winrm",
            "winrm_username":"vagrant",
            "winrm_password":"vagrant",
            "winrm_port":"5985",
            "winrm_timeout":"30m",
            "skip_compaction":"true",
            "vmx_data":{
                "RemoteDisplay.vnc.enabled":"true",
                "RemoteDisplay.vnc.port":"5900",
                "memsize":"2048",
                "numvcpus":"1",
                "scsi0.virtualDev":"lsisas1068"
            }
        }
  ],
  "provisioners": [
    {
      "type": "powershell",
      "valid_exit_codes": [ 0, 3010 ],
      "execute_command": "powershell.exe -NoProfile \"if (Test-Path
variable:global:ProgressPreference){`$ProgressPreference='SilentlyContinue'};
& '{{.Path}}';exit `$LastExitCode\"; exit $LastExitCode",
      "scripts": [
        "./scripts/AddDisk.ps1",
        "./scripts/InstallSql2014.ps1"
      ]
    }
  ]
}



Cheers,
Andrew

-- 
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/2da6c4ab-ee84-4a2f-8378-3077c7fb4bfe%40googlegroups.com
<https://groups.google.com/d/msgid/packer-tool/2da6c4ab-ee84-4a2f-8378-3077c7fb4bfe%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
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/CALz9Rt8WsXHFvyKgN1BDnBR_058orOo6_DQ4AeEpscCLDDmY-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to