Ask Your Question
0

How to git clone private repos within Vagrant VM, using host's SSH keys?

asked 2014-03-03 12:38:55 -0500

apennebaker gravatar image

I'm able to use PuppetLabs vcsrepo to clone public git repos, but I'd like to also be able to clone private repos, using the host's SSH keys.

What would the configuration look like for Vagrantfile and/or manifests/default.pp in order to accomplish this?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-05-03 11:08:14 -0500

binford2k gravatar image

To connect to your source repository via SSH (such as 'username@server:…'), we recommend managing your SSH keys with Puppet and using the require metaparameter to make sure they are present before the vcsrepo resource is applied.

See the module docs for information.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-03-03 12:38:55 -0500

Seen: 636 times

Last updated: May 03