Issue #4077 has been updated by Joe Hillenbrand.
Here is an example of what I have been doing to emulate this feature:
file { "/root/.ssh":
ensure => directory,
owner => "root",
group => "root",
mode => "600",
}
file { "/root/.ssh/puppet_git_rsa":
ensure => present,
source => "puppet:///modules/backend/puppet_git_rsa",
owner => "root",
group => "root",
mode => "400",
}
file { "/root/.ssh/puppet_github_rsa":
ensure => present,
source => "puppet:///modules/backend/puppet_github_rsa",
owner => "root",
group => "root",
mode => "400",
}
file { "/root/.ssh/config":
ensure => present,
owner => "root",
group => "root",
content => "
Host localgit
HostName 192.168.0.10
User gitosis
IdentityFile /root/.ssh/puppet_git_rsa
PasswordAuthentication no
ForwardAgent no
Host github
HostName github.com
User git
IdentityFile /root/.ssh/puppet_github_rsa
PasswordAuthentication no
ForwardAgent no
",
}
vcsrepo { "/path/to/repo":
ensure => latest,
provider => git,
source => 'ssh://github/repo/repo.git',
}
vcsrepo { "/path/to/otherrepo":
ensure => latest,
provider => git,
source => 'localgit:repo',
}
----------------------------------------
Feature #4077: Vcsrepo: the git provider should be able to recive a path to a
certificate
https://projects.puppetlabs.com/issues/4077
Author: Silviu Paragina
Status: Accepted
Priority: Normal
Assignee: James Turnbull
Category:
Target version:
Keywords:
Branch:
Module: vcsrepo
The git provider for vcsrepo should be able to receive a path to a certificate
and use it for authentication.
This should be useful for closed repositories.
The current implementation uses the current user certificate in
/root/.ssh/id_{rsa|dsa}, so I can't say it doesn't work, but it would be a
useful feature in some cases.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.