aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/gitolite.pp26
1 files changed, 26 insertions, 0 deletions
diff --git a/manifests/gitolite.pp b/manifests/gitolite.pp
index 68d655e..a56735e 100644
--- a/manifests/gitolite.pp
+++ b/manifests/gitolite.pp
@@ -104,5 +104,31 @@ class gitolite inherits git {
ensure => present,
require => File['/usr/local/sbin/git-mass-update-server-info'],
}
+
+ # git-annex integration
+ package { 'git-annex':
+ ensure => present,
+ }
+
+ # wheezy onwards
+ # http://git-annex.branchable.com/tips/using_gitolite_with_git-annex/
+ file { [ '/var/git/adc', '/var/git/adc/ua' ]:
+ ensure => $::lsbdistcodename ? {
+ 'squeeze' => absent,
+ default => present,
+ },
+ owner => gitolite,
+ group => gitolite,
+ mode => 0755,
+ require => File['/var/git'],
+ }
+
+ exec { 'git-annex-shell-copier':
+ command => 'cp /usr/share/doc/gitolite/examples/adc/git-annex-shell /var/git/adc/ua/git-annex-shell',
+ user => root,
+ creates => '/var/git/adc/ua/git-annex-shell',
+ onlyif => "test -f /usr/share/doc/gitolite/examples/adc/git-annex-shell",
+ require => [ Package['git-annex'], File['/var/git/adc/ua'] ],
+ }
}