Created
April 26, 2012 21:04
-
-
Save GregSutcliffe/2503242 to your computer and use it in GitHub Desktop.
Gitolite config example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class test { | |
| # Create the admin repo in the inital call, using defaults | |
| class { 'gitolite': } | |
| # Optionally override with your own config and keys | |
| #class { 'gitolite': } | |
| # authfile => 'puppet:///modules/test/admin.conf', | |
| # keydir => 'puppet:///modules/test/admin-keys', | |
| #} | |
| # More options: | |
| class { 'gitolite': | |
| base = "/etc/gitolite" # default /var/lib/gitolite | |
| user = "git" # default gitolite | |
| group = "git" # default gitolite | |
| } | |
| # Add extra repos | |
| gitolite::repo { 'puppet': | |
| authfile => 'puppet:///modules/test/puppet.conf', | |
| keydir => 'puppet:///modules/test/puppet-keys', | |
| } | |
| # Another repo, sharing the keys | |
| gitolite::repo { 'external': | |
| authfile => 'puppet:///modules/test/external.conf', | |
| keydir => 'puppet:///modules/test/puppet-keys', | |
| } | |
| } | |
| # cat test/files/puppet.conf: | |
| @ops = gsutcliffe | |
| repo puppet | |
| RW+ = @ops | |
| # ls test/files/puppet-keys/ | |
| gsutcliffe.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment