Hello,
The gitfs [1] docs could use some love :-). A short example on how to configure a gitfs remote over SSH would prove very useful to the community.
Let's say for example I have a remote located at g...@git.domain.tld:salt-states.git (gitolite installation there).
How would I configure the master in this case?
Would the following be enough? First some information about my environment.
OS
--
$ uname -a
Linux godzilla 3.2.0-0.bpo.4-amd64 #1 SMP Debian 3.2.41-2~bpo60+1 x86_64 GNU/Linux
Salt Master
--
$ salt-master --version
salt-master 0.15.1
/etc/salt/master
--
$ grep gitfs_remotes /etc/salt/master
gitfs_remotes: git+ssh://g...@git.domain.tld:salt-states.git
The connection is done over SSH with keys. How would one specify which user and key to use for the connection?
For example I would like to have a user, salt-master, with a key saved in /etc/salt/pki/master/id_rsa. This user would have read access granted in gitolite to the repo salt-states. User in this case is a gitolite user *only*.
salt-master is running as root. Is the /root/.ssh/id_[rd]sa key used by salt-master when cloning the remote? In this case is simple, one would just generate root keys without passphrase and insert them in gitolite under salt-master user.
Another approach would be to run salt-master under another user, salt for example, and use that user's key.
Thoughts?
Cheers and Goodwill,