linux - Puppet pass SSH keys to VM for us in Git -
i'm using vagrant provision vm onto digitalocean using config puphpet. need clone private git repo. i've created ssh key used authenticate request using puppet vcsrepo module seems ssh key isn't being picked properly.
i've set vagrant config.ssh.forward_agent
true , config.ssh.private_key_path
points local rsa file on mac. used digitalocean key.
i can see key in ~/.ssh/authorized_keys
on vm.
the git clone
fails if it's private repo. tried public repo , successful.
here puppet vcsrepo command:
vcsrepo { '/var/www/html': ensure => present, provider => git, source => 'https://******@bitbucket.org/****.git', require => '~/.ssh/authorized_keys', }
this gives error no title provided , "~/.ssh/authorized_keys" not valid resource reference @ /tmp/vagrant-puppet/manifests-893fcd
i tried identity property:
vcsrepo { '/var/www/html': ensure => present, provider => git, source => 'https://******@bitbucket.org/****.git', identity => '~/.ssh/authorized_keys', force => true }
this gives fatal: not read password 'https://billyjones@bitbucket.org': no such device or address
using debian 7.
Comments
Post a Comment