Can you specify an alternate vagrant home directory using the vagrant post-processor?

13 views
Skip to first unread message

William Saxton

unread,
Jun 3, 2017, 10:00:38 PM6/3/17
to Packer
I can't use /home/vagrant because my company use autofs for mounting to /home so I need to move vagrant to /export/home/vagrant.  I don't see it in the options for the post-processor so either I'm missing it or I need an alternative way of doing this.

Any ideas?

Rickard von Essen

unread,
Jun 4, 2017, 1:40:39 AM6/4/17
to packe...@googlegroups.com
I think it's enough if you change the vagrant users home dir to something else when you create the user In your Kickstart script etc. Vagrant doesn't care about where the home dir is. 

/ Rickard 

On Jun 4, 2017 04:00, "William Saxton" <sax...@gmail.com> wrote:
I can't use /home/vagrant because my company use autofs for mounting to /home so I need to move vagrant to /export/home/vagrant.  I don't see it in the options for the post-processor so either I'm missing it or I need an alternative way of doing this.

Any ideas?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/557fcd8a-d2fc-44c0-ba1a-1df4c2cbb520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alvaro Miranda Aguilera

unread,
Jun 4, 2017, 5:55:27 PM6/4/17
to packe...@googlegroups.com
hi
vagrant post processor only package the box in a vagrant format

but doesn't do anything in the host os, thats done by either some logic in the installer of script

as Rickard said, you can just use a different home dir for the use

just wanted to clarify the part of packer doesn't create any user

Alvaro

On Sun, Jun 4, 2017 at 4:00 AM, William Saxton <sax...@gmail.com> wrote:
I can't use /home/vagrant because my company use autofs for mounting to /home so I need to move vagrant to /export/home/vagrant.  I don't see it in the options for the post-processor so either I'm missing it or I need an alternative way of doing this.

Any ideas?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/557fcd8a-d2fc-44c0-ba1a-1df4c2cbb520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages