aboutsummaryrefslogtreecommitdiff
path: root/manifests/git-daemon.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-06 11:12:38 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-06 11:12:38 -0200
commit10165927fe1847be3451413a72c631fe1a99c1f9 (patch)
treebbfb7d485ac1db9d6124223114f89f3b8c936386 /manifests/git-daemon.pp
downloadpuppet-git-10165927fe1847be3451413a72c631fe1a99c1f9.tar.gz
puppet-git-10165927fe1847be3451413a72c631fe1a99c1f9.tar.bz2
Initial import
Diffstat (limited to 'manifests/git-daemon.pp')
-rw-r--r--manifests/git-daemon.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/git-daemon.pp b/manifests/git-daemon.pp
new file mode 100644
index 0000000..bd3bc68
--- /dev/null
+++ b/manifests/git-daemon.pp
@@ -0,0 +1,17 @@
+# This class configures the git-daemon service. It ensures the packages is
+# installed and a line is present in /etc/inetd.conf, which configures it.
+# It depends on a "line" definition, which can be found here:
+#
+# http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText
+
+class git-daemon inherits gitosis {
+ # the needed packages and services
+ include inetd
+
+ # git-daemon config in inetd
+ line { "git-daemon-inetd":
+ file => "/etc/inetd.conf",
+ line => "git stream tcp nowait gitosis /usr/bin/git git daemon --inetd --verbose --base-path=/var/git/repositories /var/git/repositories",
+ ensure => present,
+ }
+}