]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/rgw: include mod_authz
authorSage Weil <sage@redhat.com>
Sat, 16 Aug 2014 20:56:15 +0000 (13:56 -0700)
committerSage Weil <sage@redhat.com>
Mon, 18 Aug 2014 00:15:41 +0000 (17:15 -0700)
As per http://www.webhostingtalk.com/showthread.php?t=1173594

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 27b7eceeae1e48d0ad8dd820c3b84442bfffa406)

tasks/rgw.py

index 3a620f07031d1e66f816c42447680f13f027da5d..c5ccad6c7a3a5795bd3226eaa0d1a0b4de79a3e2 100644 (file)
@@ -94,7 +94,11 @@ def ship_apache_configs(ctx, config, role_endpoints):
             group = 'www-data'
             apache24_modconfig = '''
   IncludeOptional /etc/apache2/mods-available/mpm_event.conf
-  IncludeOptional /etc/apache2/mods-available/mpm_event.load'''
+  IncludeOptional /etc/apache2/mods-available/mpm_event.load
+  <IfModule !authx_core_module>
+    LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so
+  </IfModule>
+'''
         else:
             mod_path = '/usr/lib64/httpd/modules'
             print_continue = 'off'