Add File in build

27 views
Skip to first unread message

griff...@gmail.com

unread,
Nov 14, 2018, 5:11:01 AM11/14/18
to Packer
Hi,
I want to import a file into the machine I'm building from my host machine.

I use this code : 

        "provisioners": [
        {
            "type": "file",
            "source": "assets/blackarch-base-xfce.tar.gz",
            "destination": "/tmp/blackarch-base-xfce.tar.gz"
        },
    ],

But it dosen't work.

Can someone Help me?

Rickard von Essen

unread,
Nov 14, 2018, 9:14:53 AM11/14/18
to packe...@googlegroups.com
How does it not work?

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/d775ba3f-b017-4f80-893d-d265fc1448a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alvaro Miranda Aguilera

unread,
Nov 15, 2018, 3:29:57 PM11/15/18
to packe...@googlegroups.com
hello there

whats the output of packer validate?

seems you got an extra comma after }

if you run into errors will be good:

- share full packer template, ideally a link to github with all the scripts
- what command did you run
- what error you got

otherwise is hard to help

alvaro

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/d775ba3f-b017-4f80-893d-d265fc1448a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages