]> birchwood-abbey.net Git - Network.git/commitdiff
Add section Configure Gitweb on Core.
authorMatt Birkholz <matt@birchwood-abbey.net>
Wed, 31 Dec 2025 03:12:39 +0000 (20:12 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Wed, 31 Dec 2025 03:19:03 +0000 (20:19 -0700)
Much like section Configure Gitweb on Front.  Both sections now have
source code blocks containing ~<<gitweb-tasks>>~ (formerly
~<<apache-gitweb-tasks>>~) and ~<<git-handlers>>~, tangling them into
the role.  (They were previously tangled in in the "Configure
Apache..." sections).

README.org
roles_t/abbey-core/handlers/main.yml
roles_t/abbey-front/handlers/main.yml

index c02bbc00015c0f6b281e2346c878f09958ecc210..577c2cac6ce3381126981c32c9f2af2690191c68 100644 (file)
@@ -308,6 +308,11 @@ like ~git-tasks~ and ~git-handlers~.
 #+CAPTION: ~git-handlers~
 #+BEGIN_SRC conf
 
+- name: Reload systemd.
+  become: yes
+  systemd:
+    daemon-reload: yes
+
 - name: Restart git-daemon.
   become: yes
   systemd:
@@ -381,8 +386,14 @@ directive.  The global Perl configuration file, =/etc/gitweb.conf=,
 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
@@ -419,8 +430,14 @@ web site =/favicon.ico=.
     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
@@ -505,8 +522,6 @@ rest of the Let's Encrypt configuration is discussed in the following
 #+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:
@@ -522,12 +537,6 @@ rest of the Let's Encrypt configuration is discussed in the following
   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
@@ -591,16 +600,6 @@ The replacement =logrotate-mailer= does, and includes it in a
   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.
@@ -993,8 +992,8 @@ e.g. ~mythtv@mythtv.birchwood.private~, locally.)
 ** 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
@@ -1008,6 +1007,25 @@ services on Front and Core.  See [[Configure Git Daemon on Front]] and
 <<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,
@@ -1018,8 +1036,6 @@ site on Front.  Their configurations include the same [[apache-abbey][~apache-ab
 #+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:
@@ -1047,12 +1063,6 @@ site on Front.  Their configurations include the same [[apache-abbey][~apache-ab
   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
index 1612e5f00fbd9ab696bcb68d01a77e1c84746528..d62ac626a2988a7b63e1c7fd1fffe64cfb152b3e 100644 (file)
@@ -4,6 +4,11 @@
   command: newaliases
   tags: actualizer
 
+- name: Reload systemd.
+  become: yes
+  systemd:
+    daemon-reload: yes
+
 - name: Restart git-daemon.
   become: yes
   systemd:
index 41e84cd5858b61b48d9093193702d986e546ec8c..de939e3bc2d8f768380c2252b630a884df906e76 100644 (file)
@@ -4,6 +4,11 @@
   command: newaliases
   tags: actualizer
 
+- name: Reload systemd.
+  become: yes
+  systemd:
+    daemon-reload: yes
+
 - name: Restart git-daemon.
   become: yes
   systemd:
     state: restarted
   tags: actualizer
 
-- name: Reload systemd.
-  become: yes
-  systemd:
-    daemon_reload: yes
-  tags: actualizer
-
 - name: Import root@core's public key.
   become: yes
   command: gpg --import ~/.gnupg-root-pub.pem