jedi4ever/veewee — Issue #200: Feature: specify a different ssh_user for each postinstall_files
Author: stagrlee
Created: 2012-01-03 19:06:12+00:00
State: open

Would like the ability to specify a different ssh user for each postinstall file.

This would cleanup the build scripts for the funtoo box I'm working on. The postinstall works around this by setting up an SSH very similar to what veewee does. In the funtoo build, veewee ssh's into the box via root and the second postinstall ssh's to localhost to login to the vagrant account, kind of like a matryoshka doll.

I wanted the vagrant box to have RVM all setup in multi-user mode http://beginrescueend.com/rvm/install/

As the RVM documentation points out, this must be installed from a user account in the rvm group. I played around with su and sudo both inside chroot and booted through the built kernel and had no luck. What worked was ssh'ing into the box. What would be ideal for me is to have the first postinstall run as root and the second postinstall run as vagrant.

Might be similar to issue #57, more flexibility with user declarations... Might be able to make this backward compatible by reusing the same login if only one is specified.