From 7e414cced08b85d1c6c66ccd58a00ad7f24eaff3 Mon Sep 17 00:00:00 2001 From: Valentin Gologuzov Date: Fri, 3 Apr 2015 10:45:53 +0200 Subject: [PATCH] [copr] put banner at dev instance of copr-front --- roles/copr/frontend/files/banner-include.html | 8 ++++++++ roles/copr/frontend/tasks/main.yml | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 roles/copr/frontend/files/banner-include.html diff --git a/roles/copr/frontend/files/banner-include.html b/roles/copr/frontend/files/banner-include.html new file mode 100644 index 0000000000..2b539819d1 --- /dev/null +++ b/roles/copr/frontend/files/banner-include.html @@ -0,0 +1,8 @@ +
+

+ Warning! This is a development server. +

+

+ Production instance: https://copr.fedoraproject.org/ +

+
diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index 2c714391a2..9fc76ddb55 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -87,3 +87,7 @@ - name: set acl for logstash to access httpd logs acl: name=/var/log/httpd entity=logstash etype=user permissions=rx state=present + +- name: set dev banner for dev instance + when: devel + copy: src=banner-include.html dst=/var/lib/copr/