From 7455fd6a6351e5f6c99f90688839e2edb5496092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Tue, 19 May 2015 15:28:33 +0200 Subject: [PATCH] make lighttpd happy so it can start --- roles/copr/backend/files/lighttpd/lighttpd.conf | 4 ++-- roles/copr/backend/tasks/main.yml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/roles/copr/backend/files/lighttpd/lighttpd.conf b/roles/copr/backend/files/lighttpd/lighttpd.conf index c2526f1962..fd8c0e2be8 100644 --- a/roles/copr/backend/files/lighttpd/lighttpd.conf +++ b/roles/copr/backend/files/lighttpd/lighttpd.conf @@ -75,7 +75,7 @@ var.socket_dir = home_dir + "/sockets" ####################################################################### ## ## Load the modules. -include "modules.conf" +#include "modules.conf" server.modules = ( "mod_access", "mod_setenv", @@ -210,7 +210,7 @@ server.network-backend = "linux-sendfile" ## ## With SELinux enabled, this is denied by default and needs to be allowed ## by running the following once : setsebool -P httpd_setrlimit on -#server.max-fds = 2048 +server.max-fds = 2048 ## ## Stat() call caching. diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index c0f403cb2f..b2aa7fcaf4 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -80,6 +80,12 @@ when: not devel include: "install_certs.yml" +- name: allow lighttpd set fds limit + seboolean: name=httpd_setrlimit state=yes persistent=yes + +- name: create directory for compress module of lighttpd + file: path=/var/cache/lighttpd/compress owner=lighttpd group=lighttpd mode=0644 state=directory + # mime default to text/plain and enable dirlisting for indexes - name: update lighttpd configs copy: src="lighttpd/{{ item }}" dest="/etc/lighttpd/conf.d/{{ item }}" owner=root group=root mode=0644