#+CAPTION: ~git-handlers~
#+BEGIN_SRC conf
+- name: Reload systemd.
+ become: yes
+ systemd:
+ daemon-reload: yes
+
- name: Restart git-daemon.
become: yes
systemd:
overrides the relative URLs Gitweb normally generates, and uses the
web site =/favicon.ico=.
-#+NAME: apache-gitweb-tasks
-#+CAPTION: ~apache-gitweb-tasks~
+#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
+#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml :noweb no-export
+
+<<gitweb-tasks>>
+#+END_SRC
+
+#+NAME: gitweb-tasks
+#+CAPTION: ~gitweb-tasks~
#+BEGIN_SRC conf
- name: Enable Apache2 rewrite module for Gitweb.
become: yes
mode: u=rw,g=r,o=r
#+END_SRC
-#+NAME: apache-gitweb-handlers
-#+CAPTION: ~apache-gitweb-handlers~
+#+CAPTION: [[file:roles_t/abbey-front/handlers/main.yml][=roles_t/abbey-front/handlers/main.yml=]]
+#+BEGIN_SRC conf :tangle roles_t/abbey-front/handlers/main.yml :noweb no-export
+
+<<gitweb-handlers>>
+#+END_SRC
+
+#+NAME: gitweb-handlers
+#+CAPTION: ~gitweb-handlers~
#+BEGIN_SRC conf
- name: Restart Apache2.
become: yes
#+CAPTION: [[file:roles_t/abbey-front/tasks/main.yml][=roles_t/abbey-front/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-front/tasks/main.yml :noweb no-export
-<<apache-gitweb-tasks>>
-
- name: Configure Apache.
become: yes
vars:
notify: Restart Apache2.
#+END_SRC
-#+CAPTION: [[file:roles_t/abbey-front/handlers/main.yml][=roles_t/abbey-front/handlers/main.yml=]]
-#+BEGIN_SRC conf :tangle roles_t/abbey-front/handlers/main.yml :noweb no-export
-
-<<apache-gitweb-handlers>>
-#+END_SRC
-
** Configure Apache Log Archival
These tasks hack Apache's ~logrotate(8)~ configuration to rotate
notify: Reload systemd.
#+END_SRC
-#+CAPTION: [[file:roles_t/abbey-front/handlers/main.yml][=roles_t/abbey-front/handlers/main.yml=]]
-#+BEGIN_SRC conf :tangle roles_t/abbey-front/handlers/main.yml
-
-- name: Reload systemd.
- become: yes
- systemd:
- daemon_reload: yes
- tags: actualizer
-#+END_SRC
-
Note that the first setting for ~ExecStart~ is intended to clear the
system's ~ExecStart~ in =/lib/systemd/system/logrotate.service=. (A
~oneshot~ service like this can have multiple ~ExecStart~ settings.
** Configure Git Daemon on Core
These tasks are identical to those executed on Front, for similar Git
-services on Front and Core. See [[Configure Git Daemon on Front]] and
-[[*Configure Gitweb on Front][Configure Gitweb on Front]] for more information.
+services on Front and Core. See [[Configure Git Daemon on Front]] for
+more information.
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
<<git-handlers>>
#+END_SRC
+** Configure Gitweb on Core
+
+The tasks that configure Apache to run Gitweb on Core should be
+(nearly) identical to those on Front, so that the Gitweb service on
+Core provides a preview of the service on Front. See [[*Configure Gitweb on Front][Configure Gitweb
+on Front]] for more information.
+
+#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
+#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
+
+<<gitweb-tasks>>
+#+END_SRC
+
+#+CAPTION: [[file:roles_t/abbey-core/handlers/main.yml][=roles_t/abbey-core/handlers/main.yml=]]
+#+BEGIN_SRC conf :tangle roles_t/abbey-core/handlers/main.yml :noweb no-export
+
+<<gitweb-handlers>>
+#+END_SRC
+
** Configure Apache on Core
The Apache2 configuration on Core specifies three web sites (live,
#+CAPTION: [[file:roles_t/abbey-core/tasks/main.yml][=roles_t/abbey-core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml :noweb no-export
-<<apache-gitweb-tasks>>
-
- name: Configure live website.
become: yes
vars:
notify: Restart Apache2.
#+END_SRC
-#+CAPTION: [[file:roles_t/abbey-core/handlers/main.yml][=roles_t/abbey-core/handlers/main.yml=]]
-#+BEGIN_SRC conf :tangle roles_t/abbey-core/handlers/main.yml :noweb no-export
-
-<<apache-gitweb-handlers>>
-#+END_SRC
-
** Configure Documentation URLs
The institute serves its =/usr/share/doc/= on the house (campus) web