From 73165d103e32d7f578095c7048c43f819ed6f6cc Mon Sep 17 00:00:00 2001 From: Valentin Gologuzov Date: Fri, 13 Mar 2015 13:36:03 +0100 Subject: [PATCH] [copr] frontend: add statistic related stuff --- roles/copr/frontend/tasks/main.yml | 3 +++ roles/copr/frontend/templates/copr.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index 61c3a3fd03..de8b7aa8bc 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -18,6 +18,9 @@ tags: - config +- name: enable and start redis # TODO: .service in copr-backend should depend on redis + service: name=redis enabled=yes state=started + - name: copy apache files to conf.d copy: src="httpd/{{ item }}" dest="/etc/httpd/conf.d/{{ item }}" with_items: diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index 3792039c3a..c9f0e1e742 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -36,3 +36,6 @@ SEND_EMAILS = True PUBLIC_COPR_HOSTNAME = "{{ copr_frontend_public_hostname }}" LOG_FILENAME = "/var/log/copr/frontend.log" + +# to accept stat events from logstash +INTRANET_IPS = ["127.0.0.1", "172.16.5.0/24"]