Ajout : vm_hosted : rule_xinetd_configure .
authorJulien Moutinho <julm+burette@autogeree.net>
Sat, 16 Mar 2013 00:06:58 +0000 (01:06 +0100)
committerJulien Moutinho <julm+burette@autogeree.net>
Tue, 19 Mar 2013 09:42:37 +0000 (10:42 +0100)
etc/xinetd.d/git [new file with mode: 0644]
vm_hosted

diff --git a/etc/xinetd.d/git b/etc/xinetd.d/git
new file mode 100644 (file)
index 0000000..2501692
--- /dev/null
@@ -0,0 +1,21 @@
+service git
+ {
+       disable        = no
+       env            =
+       group          = git-daemon
+       groups         = no
+       id             = git
+       instances      = 5
+       log_on_failure += HOST
+       log_on_success += PID HOST DURATION
+       max_load       = 5
+       passenv        =
+       port           = 9418
+       protocol       = tcp
+       server         = /usr/bin/git
+       server_args    = daemon --inetd --verbose --base-path=/home/git/pub/git --interpolated-path=/home/git/srv/git/%H%D --syslog --user-path=pub/git -- /home/git/pub/git
+       socket_type    = stream
+       type           = UNLISTED
+       user           = git-daemon
+       wait           = no
+ }
index eb6869f..f63df93 100755 (executable)
--- a/vm_hosted
+++ b/vm_hosted
@@ -1285,6 +1285,17 @@ rule_user_root_configure () {
         do sudo gpg --import "$key"
         done
  }
+rule_xinetd_configure () {
+       rule apt_get_install xinetd
+       local -; set +f
+       for conf in "$tool"/etc/xinetd.d/*
+        do conf=${conf#"$tool"/etc/xinetd.d/}
+               sudo install -m 660 -o root -g root \
+                "$tool"/etc/xinetd.d/"$conf" \
+                       /etc/xinetd.d/"$conf"
+        done
+       sudo service xinetd restart
+ }
 rule_configure () {
        rule apt_configure
        rule git_configure
@@ -1304,6 +1315,7 @@ rule_configure () {
        rule nginx_configure
        rule php5_fpm_configure
        rule gitolite_configure
+       rule xinetd_configure
  }
 
 rule_luks_key_change () {