]> WPIA git - infra.git/blobdiff - environments/production/manifests/gitweb.pp
add: git smart HTTP daemon
[infra.git] / environments / production / manifests / gitweb.pp
index fc13d5fdab9a5e19281a1bf4c820f8ce6d6688c2..a13d2a6a556eaacbed14900b1fac424142592781 100644 (file)
@@ -7,6 +7,9 @@ node gitweb {
   package{ 'libcgi-fast-perl':
     ensure => 'installed'
   }
+  package{ 'fcgiwrap':
+    ensure => 'installed'
+  }
   user{'git':
     ensure => 'present',
     system => 'yes',
@@ -53,4 +56,30 @@ node gitweb {
     provider => 'systemd',
     enable => true
   }
+  file{ '/etc/systemd/system/fcgiwrap.socket.d':
+    ensure => 'directory'
+  }
+  file{ '/etc/systemd/system/fcgiwrap.socket.d/ListenStream.conf':
+    ensure => 'file',
+    source => 'puppet:///modules/gitweb/fcgiwrap-ListenStream.conf',
+    notify => Service['fcgiwrap.socket']
+  }
+  file{ '/etc/systemd/system/fcgiwrap.service.d':
+    ensure => 'directory'
+  }
+  file{ '/etc/systemd/system/fcgiwrap.service.d/sandbox.conf':
+    ensure => 'file',
+    source => 'puppet:///modules/gitweb/fcgiwrap-sandbox.conf',
+    notify => Service['fcgiwrap.socket']
+  }
+  file{ '/etc/default/fcgiwrap':
+    ensure => 'file',
+    source => 'puppet:///modules/gitweb/fcgiwrap-default',
+    notify => Service['fcgiwrap.socket']
+  }
+  service{'fcgiwrap.socket':
+    ensure => 'running',
+    provider => 'systemd',
+    enable => true
+  }
 }