From 3fcfa93fc4314f6ad18ab996221fd39599903a62 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 14 Mar 2017 12:06:07 -0700 Subject: [PATCH] Enable mod_status on openQA server boxes This should stop collectd generating tons of 404 requests. --- roles/openqa/server/tasks/main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/roles/openqa/server/tasks/main.yml b/roles/openqa/server/tasks/main.yml index 1cfac40077..b3f4d2c1ec 100644 --- a/roles/openqa/server/tasks/main.yml +++ b/roles/openqa/server/tasks/main.yml @@ -35,9 +35,9 @@ ## FIXME: this only works for pgsql ATM # - deployment_type ## string - Fedora Infrastructure thing; for this role, decides -## whether to monkeypatch the repo URLs in the templates -## to work inside Fedora infrastructure. Don't set it -## unless your deployment is running in Fedora infra. +## whether to enable some openQA plugins and an Apache +## module that should be enabled only in Fedora infra. +## Don't set it on deployments outside Fedora infra. # # If openqa_dbhost is set, the others must be too, and the server will be # configured to use a pgsql database accordingly. If openqa_dbhost is not @@ -178,6 +178,14 @@ tags: - config +- name: Enable mod_status (for Fedora infrastructure) + template: src="{{ files }}/httpd/apachestatus.conf" dest=/etc/httpd/conf.d/apachestatus.conf + when: deployment_type is defined + notify: + - reload httpd + tags: + - config + - name: OpenQA config template: src=openqa.ini.j2 dest=/etc/openqa/openqa.ini owner=geekotest group=root mode=0644 tags: