/[adm]/puppet/modules/git/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/git/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 805 by misc, Sun Jan 16 13:15:28 2011 UTC revision 806 by misc, Sun Jan 16 13:15:29 2011 UTC
# Line 43  class git { Line 43  class git {
43          #          #
44      }      }
45    
46      define repository($description = '') {      define repository($description = '',
47                          $group ) {
48    
49            include git::server
50          # http://eagleas.livejournal.com/18907.html          # http://eagleas.livejournal.com/18907.html
51          # TODO --shared=group + set g+ws          # TODO group permission should be handled here too
52          exec { "git init --bare $name":          exec { "/usr/local/bin/create_git_repo.sh $name":
53                user => root,
54                group => $group
55              creates => $name,              creates => $name,
56          }          }
57    
58          file { "$name/git-daemon-export-ok":          file { "$name/git-daemon-export-ok":
59              ensure => present,              ensure => present,
60              requires => Exec["git init --bare $name"]              requires => Exec["/usr/local/bin/create_git_repo.sh $name"]
61          }          }
62                    
63          file { "$name/description":          file { "$name/description":

Legend:
Removed from v.805  
changed lines
  Added in v.806

  ViewVC Help
Powered by ViewVC 1.1.30