Skip to content

Instantly share code, notes, and snippets.

@GregSutcliffe
Created April 26, 2012 21:04
Show Gist options
  • Save GregSutcliffe/2503242 to your computer and use it in GitHub Desktop.
Save GregSutcliffe/2503242 to your computer and use it in GitHub Desktop.
Gitolite config example
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