/[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 899 by misc, Mon Jan 24 16:57:59 2011 UTC revision 942 by misc, Wed Feb 2 19:38:47 2011 UTC
# Line 67  class git { Line 67  class git {
67          }          }
68      }      }
69    
70        define svn_repository($source,
71                              $std_layout = true,
72                              $refresh = '*/5') {
73            include git::client
74            include git::server
75            # a cron job
76            # a exec
77            if $std_layout {
78                $options = "-s"
79            } else {
80                $options = " "
81            }
82    
83            exec { "/usr/bin/git svn clone $options $source $name":
84                creates => $name,
85            }
86    
87            cron { "update $name":
88                command => "cd $name && /usr/bin/git svn rebase" ,
89                minute => $refresh
90            }
91            # TODO find a way to prevent commit
92            file { "$name/.git/hooks/pre-receive":
93                ensure => present,
94                owner => root,
95                group => root,
96                mode => 755,
97                content => "#!bin/bash\nfalse"
98            }
99        }
100    
101      class client inherits common {      class client inherits common {
102    
103    

Legend:
Removed from v.899  
changed lines
  Added in v.942

  ViewVC Help
Powered by ViewVC 1.1.30