Revision
796
Author
misc
Date
2011-01-14 03:40:27 +0100 (Fri, 14 Jan 2011)

Log Message

add basic git hosting, using xinetd

Modified Paths

Modified: puppet/modules/git/manifests/init.pp
===================================================================
--- puppet/modules/git/manifests/init.pp	2011-01-14 02:40:26 UTC (rev 795)
+++ puppet/modules/git/manifests/init.pp	2011-01-14 02:40:27 UTC (rev 796)
@@ -5,9 +5,17 @@
     }
 
     class server inherits common {
+        $git_base_path = '/git/'
+
+        xinetd::service { "git":
+            content => template('git/xinetd')
+        }
+
+        file { "$git_base_path":
+            ensure => directory
+        }
+
         # TODO
-        # integration with xinetd for anonymous co
-        # creation of /git
         # define common syntax check, see svn 
         #        proper policy : no-fast-forward
         #            no branch ?