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}}.