Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Issue with puppet source keys and gitolite preseed. #17

Merged
merged 1 commit into from

2 participants

@sadin999

When puppet:///host/key.pub source type of a key is used, the preseed file is written with the URI instead of the file location. This commit changes so that in either case, source or content, the #{git_home}/#{git_user}.pub location is used to match gitolite.pp filename.

@sbadia
Owner

Hi, oh yes indeed! I had not noticed that,

However, we should add a "require" on the public key

'/var/cache/debconf/gitolite.preseed':
  [...]                                   
  require => File["${git_home}/${git_user}.pub"],                          

Thanks !

@sbadia sbadia merged commit d280965 into sbadia:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 13, 2012
  1. @sadin999

    Changed gitolite.preseed.erb template as it had issues when puppet://…

    sadin999 authored
    …/host/key.pub source based key was used
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  templates/gitolite.preseed.erb
View
2  templates/gitolite.preseed.erb
@@ -1,3 +1,3 @@
gitolite gitolite/gituser string <%= git_user %>
-gitolite gitolite/adminkey string <%= git_admin_pubkey %>
+gitolite gitolite/adminkey string <%= "#{git_home}/#{git_user}.pub" %>
gitolite gitolite/gitdir string <%= git_home %>
Something went wrong with that request. Please try again.