X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=environments%2Fproduction%2Fmanifests%2Fgitweb.pp;fp=environments%2Fproduction%2Fmanifests%2Fgitweb.pp;h=a13d2a6a556eaacbed14900b1fac424142592781;hb=b9831c0a779e038d8bb4f3650c91d64be63a932d;hp=fc13d5fdab9a5e19281a1bf4c820f8ce6d6688c2;hpb=e55c9b41481003f4a3f371a863e66d163b92a19f;p=infra.git diff --git a/environments/production/manifests/gitweb.pp b/environments/production/manifests/gitweb.pp index fc13d5f..a13d2a6 100644 --- a/environments/production/manifests/gitweb.pp +++ b/environments/production/manifests/gitweb.pp @@ -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 + } }