I want to automate customizing a user home directory when running GCE instance - like ~/.profile, ~/.vimrc, add some files into ~/.vim directory...
Seems to be very basic, but somehow I cannot figure out how to do this.
- --startup-script parameter of the gcloud command runs as a root, so I cannot refer to $HOME in it.
- the user is already created by the time startup script runs, so no point in adding files to /etc/skel directory.