Hi,

Note: I try to post my answer a third time, but I am "suffering" from a 
very annoying anti-spam filter problem (the two deleted messages are mine, 
mitchellh is aware of that problem, sorry for the noise)

*I'm asking for the `vagrant` user to not be created and instead a user 
account with a configurable name to be employed and used instead for all 
other interactions with the vm (provisioning, login, etc).*

Typical Vagrant baseboxes come with preinstalled `vagrant` user (with 
default insecure public key), but if needed you can build your own vagrant 
box (e.g. with Packer) with the predefined user(s) you want.

*Is it possible to have Vagrant establish a vm and invoke provisioning 
(Ansible) with a username other than `vagrant`?*

 Alvaro said: if you specify a new user with config.ssh.username then you 
can use that other user and not have vagrant user at all..

Alvaro's comment is fully correct, but you have to be aware that some 
Ansible settings can bypass Vagrant's `config.ssh.username`. See "WHY DOES 
THE ANSIBLE PROVISIONER CONNECT AS THE WRONG USER?" section at the end of 
http://docs.vagrantup.com/v2/provisioning/ansible.html. It also means that 
you can use these settings to control the ansible provisioning user... 

Le mardi 22 avril 2014 20:28:52 UTC+2, Edward Bridges a écrit :
>
> Hi,
>
> Is it possible to have Vagrant establish a vm and invoke provisioning 
> (Ansible) with a username other than `vagrant`?
>
> To be clear, I'm aware of `config.ssh.username`, but that appears to 
> simply control the username that is used to log into the vm.  I'm asking 
> for the `vagrant` user to not be created and instead a user account with a 
> configurable name to be employed and used instead for all other 
> interactions with the vm (provisioning, login, etc).
>
> Thanks,
> Ed
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to