summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-10-14 12:20:15 -0500
committerAndy Doan <andy.doan@linaro.org>2016-10-18 16:55:44 +0000
commit25dbdcf24109674d863acda040a82047905a452d (patch)
tree980beca0981df9afe52b507b54e79b49e1d9f8f8 /per-service
parent8bb52f894032b216c7e81321474580f104ac5756 (diff)
downloadansible-playbooks-25dbdcf24109674d863acda040a82047905a452d.tar.gz
cgit: manage the git-linaro.png image
This was never put into VCS and just happens to work for git.l.o. This puts the file under source control and deploys it where cgit will use it. Change-Id: Ia9cab14d0fa8b77b11c97017154da9d06c2fe264 Reviewed-on: https://review.linaro.org/14771 Reviewed-by: Ben Copeland <ben.copeland@linaro.org> Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r--per-service/git-servers/roles/cgit/files/git-logo.pngbin0 -> 1631 bytes
-rw-r--r--per-service/git-servers/roles/cgit/tasks/main.yml3
-rw-r--r--per-service/git-servers/roles/cgit/templates/cgitrc3
3 files changed, 4 insertions, 2 deletions
diff --git a/per-service/git-servers/roles/cgit/files/git-logo.png b/per-service/git-servers/roles/cgit/files/git-logo.png
new file mode 100644
index 0000000..000a6ca
--- /dev/null
+++ b/per-service/git-servers/roles/cgit/files/git-logo.png
Binary files differ
diff --git a/per-service/git-servers/roles/cgit/tasks/main.yml b/per-service/git-servers/roles/cgit/tasks/main.yml
index d3dfbac..82a6a61 100644
--- a/per-service/git-servers/roles/cgit/tasks/main.yml
+++ b/per-service/git-servers/roles/cgit/tasks/main.yml
@@ -34,6 +34,9 @@
dest={{ apache_root }}/cgit/cgit-css/cgit.css
state=link
+- name: Copy the site logo
+ copy: src=git-logo.png dest={{ apache_root }}/cgit/cgit-css/ mode=0755
+
- name: Install header.html
template: src=header.html dest={{ apache_root }}/cgit/header.html mode=0755
diff --git a/per-service/git-servers/roles/cgit/templates/cgitrc b/per-service/git-servers/roles/cgit/templates/cgitrc
index a95fd1f..b91acc5 100644
--- a/per-service/git-servers/roles/cgit/templates/cgitrc
+++ b/per-service/git-servers/roles/cgit/templates/cgitrc
@@ -4,7 +4,7 @@
# see cgitrc(5) for details
css=/cgit-css/cgit.css
-logo=/cgit-css/cgit.png
+logo=/cgit-css/git-logo.png
virtual-root=/cgit/
strict-export=git-daemon-export-ok
@@ -17,7 +17,6 @@ header={{apache_root}}/cgit/header.html
root-title={{host_site_name}}
root-desc={{host_site_desc}}
-logo=https://{{git_host}}/git-logo.png
max-repo-count=2000