Append chain if exists
[mirror/dsa-puppet.git] / modules / apache2 / manifests / init.pp
index 41c1403..8be585b 100644 (file)
@@ -47,6 +47,8 @@ class apache2 {
 
        if has_role('udd') {
                $memlimit = 512 * 1024 * 1024
+       } elsif has_role('dgit_git') {
+               $memlimit = 512 * 1024 * 1024
        } elsif has_role('sso') {
                $memlimit = 512 * 1024 * 1024
        } elsif has_role('popcon') {
@@ -141,4 +143,11 @@ class apache2 {
                description     => 'Allow web access',
                rule            => '&SERVICE(tcp, (http https))'
        }
+
+       exec { 'service apache2 reload':
+               path        => '/usr/bin:/usr/sbin:/bin:/sbin',
+               command     => 'service apache2 reload',
+               refreshonly => true,
+               require =>  Package['apache2'],
+       }
 }