From fbccedc4e63c81dc0a870060531d05696f75e853 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 24 Apr 2015 17:17:53 +0000 Subject: [PATCH] Try adding a custom cgit header for staging. --- roles/distgit/files/cgitrc-staging | 3 +++ roles/distgit/tasks/main.yml | 6 ++++++ roles/distgit/templates/cgit-header.html | 1 + 3 files changed, 10 insertions(+) create mode 100644 roles/distgit/templates/cgit-header.html diff --git a/roles/distgit/files/cgitrc-staging b/roles/distgit/files/cgitrc-staging index bfa8be01a0..cdf0411e0e 100644 --- a/roles/distgit/files/cgitrc-staging +++ b/roles/distgit/files/cgitrc-staging @@ -8,6 +8,9 @@ cache-size=1000 # Specify some default clone prefixes clone-prefix=git://pkgs.fedoraproject.org ssh://pkgs.fedoraproject.org http://pkgs.fedoraproject.org/git +# Some header information to throw at the top of each page. +header=/usr/share/cgit/cgit-header-fedora.html + # Specify the css url css=/cgit-data/cgit.css diff --git a/roles/distgit/tasks/main.yml b/roles/distgit/tasks/main.yml index 44285ca1c2..54203b5e4b 100644 --- a/roles/distgit/tasks/main.yml +++ b/roles/distgit/tasks/main.yml @@ -219,6 +219,12 @@ notify: - restart httpd +- name: install our custom header for cgit + template: cgit-header.html dest=/usr/share/cgit/cgit-header-fedora.html + tags: distgit + notify: + - restart httpd + - name: install the CGit-related httpd config copy: src=redirect.conf dest=/etc/httpd/conf.d/pkgs.fedoraproject.org/redirect.conf tags: distgit diff --git a/roles/distgit/templates/cgit-header.html b/roles/distgit/templates/cgit-header.html new file mode 100644 index 0000000000..75b93c8189 --- /dev/null +++ b/roles/distgit/templates/cgit-header.html @@ -0,0 +1 @@ +

This is a test. The environment is {{env}}.