]> birchwood-abbey.net Git - Network.git/commitdiff
Move Gitweb configuration and fixup whitespace. Wordsmith.
authorMatt Birkholz <matt@birchwood-abbey.net>
Sun, 11 Jan 2026 21:53:11 +0000 (14:53 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Sun, 11 Jan 2026 21:53:11 +0000 (14:53 -0700)
Took out obsolete instructions for configuring a Raspberry Pi.

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

index ab7d358c98fa6bd98143a1918b5ff01c424031c3..63bcb5927cd41a724ed7802f53031c3c47670252 100644 (file)
@@ -339,7 +339,6 @@ lists the repositories found in =/var/www/git/=.
 #+NAME: apache-gitweb
 #+CAPTION: ~apache-gitweb~
 #+BEGIN_SRC conf
-
 Alias /gitweb-static/ /usr/share/gitweb/static/
 <Directory "/usr/share/gitweb/static/">
     Options MultiViews
@@ -390,7 +389,7 @@ web site =/favicon.ico=.
 #+NAME: gitweb-tasks
 #+CAPTION: ~gitweb-tasks~
 #+BEGIN_SRC conf
-- name: Enable Apache2 rewrite module for Gitweb.
+- name: Enable Apache2 rewrite module.
   become: yes
   apache2_module: name=rewrite
   notify: Restart Apache2.
@@ -400,7 +399,7 @@ web site =/favicon.ico=.
   apache2_module: name=cgid
   notify: Restart Apache2.
 
-- name: Install libcgi-pm-perl for Gitweb.
+- name: Install libcgi-pm-perl.
   become: yes
   apt: pkg=libcgi-pm-perl
 
@@ -489,7 +488,6 @@ matching configurations for accurate previews and tests.
 #+NAME: apache-photos
 #+CAPTION: ~apache-photos~
 #+BEGIN_SRC conf
-
 RedirectMatch /Photos$ /Photos/
 RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
               /Photos/$1_$2_$3/
@@ -523,9 +521,11 @@ rest of the Let's Encrypt configuration is discussed in the following
     docroot: /home/www
   copy:
     content: |
+        <<apache-gitweb>>
+
         <<apache-abbey>>
+
         <<apache-photos>>
-        <<apache-gitweb>>
 
         IncludeOptional /etc/letsencrypt/options-ssl-apache.conf
     dest: /etc/apache2/sites-available/birchwood-abbey.net-vhost.conf
@@ -1038,9 +1038,11 @@ site on Front.  Their configurations include the same [[apache-abbey][~apache-ab
     docroot: /WWW/live
   copy:
     content: |
+        <<apache-gitweb>>
+
         <<apache-abbey>>
+
         <<apache-photos>>
-        <<apache-gitweb>>
     dest: /etc/apache2/sites-available/live-vhost.conf
     mode: u=rw,g=r,o=r
   notify: Restart Apache2.
@@ -1051,9 +1053,11 @@ site on Front.  Their configurations include the same [[apache-abbey][~apache-ab
     docroot: /WWW/test
   copy:
     content: |
+        <<apache-gitweb>>
+
         <<apache-abbey>>
+
         <<apache-photos>>
-        <<apache-gitweb>>
     dest: /etc/apache2/sites-available/test-vhost.conf
     mode: u=rw,g=r,o=r
   notify: Restart Apache2.
@@ -1078,6 +1082,7 @@ directives that enable user Git publishing with Gitweb (defined [[apache-gitweb]
       <Directory /usr/share/doc/>
           Options Indexes
       </Directory>
+
       <<apache-gitweb>>
     dest: /etc/apache2/sites-available/www-vhost.conf
     mode: u=rw,g=r,o=r
@@ -3210,11 +3215,6 @@ SSD.  A fresh install should go something like this:
 - Right click on the desktop (background) and choose Preferences.  In
   the Control Centre choose Interfaces in the left side bar and toggle
   SSH on.
-
-- Run ~sudo raspi-config~ and use the following menu items.
-  + S4 Hostname (Set name for this computer on a network): new
-  + I1 SSH (Enable/disable remote command line access using SSH): enable
-  + A1 Expand Filesystem (Ensures that all of the SD card is available)
 - [[*Update From Cloister Apt Cache][Update From Cloister Apt Cache]]
 - [[*Authorize Remote Administration][Authorize Remote Administration]]
 - [[*Configure with Ansible][Configure with Ansible]]
index cd99079a6d391712f8572f6d432a28fa137b2446..b6700db9f7d30a2f2f212d804acb1e6c7c8261ff 100644 (file)
@@ -95,7 +95,7 @@
     service: git-daemon
     enabled: yes
 
-- name: Enable Apache2 rewrite module for Gitweb.
+- name: Enable Apache2 rewrite module.
   become: yes
   apache2_module: name=rewrite
   notify: Restart Apache2.
   apache2_module: name=cgid
   notify: Restart Apache2.
 
-- name: Install libcgi-pm-perl for Gitweb.
+- name: Install libcgi-pm-perl.
   become: yes
   apt: pkg=libcgi-pm-perl
 
     docroot: /WWW/live
   copy:
     content: |
+        Alias /gitweb-static/ /usr/share/gitweb/static/
+        <Directory "/usr/share/gitweb/static/">
+            Options MultiViews
+        </Directory>
+        RewriteEngine on
+        RewriteRule ^/git(/.*)?$ \
+                    /cgi-bin/gitweb.cgi$1 [QSA,L,PT]
+        RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
+                    /cgi-bin/gitweb.cgi$2 \
+                    [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
+
         <Directory {{ docroot }}/Abbey/>
             AllowOverride Indexes FileInfo
             Options +Indexes +FollowSymLinks
         </Directory>
-        
+
         RedirectMatch /Photos$ /Photos/
         RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
                       /Photos/$1_$2_$3/
         AliasMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])/$ \
                    {{ docroot }}/Photos/$1/$2/$3/index.html
         AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
-        
+    dest: /etc/apache2/sites-available/live-vhost.conf
+    mode: u=rw,g=r,o=r
+  notify: Restart Apache2.
+
+- name: Configure test website.
+  become: yes
+  vars:
+    docroot: /WWW/test
+  copy:
+    content: |
         Alias /gitweb-static/ /usr/share/gitweb/static/
         <Directory "/usr/share/gitweb/static/">
             Options MultiViews
         RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
                     /cgi-bin/gitweb.cgi$2 \
                     [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
-    dest: /etc/apache2/sites-available/live-vhost.conf
-    mode: u=rw,g=r,o=r
-  notify: Restart Apache2.
 
-- name: Configure test website.
-  become: yes
-  vars:
-    docroot: /WWW/test
-  copy:
-    content: |
         <Directory {{ docroot }}/Abbey/>
             AllowOverride Indexes FileInfo
             Options +Indexes +FollowSymLinks
         </Directory>
-        
+
         RedirectMatch /Photos$ /Photos/
         RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
                       /Photos/$1_$2_$3/
         AliasMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])/$ \
                    {{ docroot }}/Photos/$1/$2/$3/index.html
         AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
-        
-        Alias /gitweb-static/ /usr/share/gitweb/static/
-        <Directory "/usr/share/gitweb/static/">
-            Options MultiViews
-        </Directory>
-        RewriteEngine on
-        RewriteRule ^/git(/.*)?$ \
-                    /cgi-bin/gitweb.cgi$1 [QSA,L,PT]
-        RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
-                    /cgi-bin/gitweb.cgi$2 \
-                    [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
     dest: /etc/apache2/sites-available/test-vhost.conf
     mode: u=rw,g=r,o=r
   notify: Restart Apache2.
       <Directory /usr/share/doc/>
           Options Indexes
       </Directory>
-      
+
       Alias /gitweb-static/ /usr/share/gitweb/static/
       <Directory "/usr/share/gitweb/static/">
           Options MultiViews
index 11b3a7230ec2ff67f14308e2d8f34ec7f12e2273..2615f655452047cbac0bc7073b8d182ed0546408 100644 (file)
@@ -94,7 +94,7 @@
     service: git-daemon
     enabled: yes
 
-- name: Enable Apache2 rewrite module for Gitweb.
+- name: Enable Apache2 rewrite module.
   become: yes
   apache2_module: name=rewrite
   notify: Restart Apache2.
   apache2_module: name=cgid
   notify: Restart Apache2.
 
-- name: Install libcgi-pm-perl for Gitweb.
+- name: Install libcgi-pm-perl.
   become: yes
   apt: pkg=libcgi-pm-perl
 
     docroot: /home/www
   copy:
     content: |
+        Alias /gitweb-static/ /usr/share/gitweb/static/
+        <Directory "/usr/share/gitweb/static/">
+            Options MultiViews
+        </Directory>
+        RewriteEngine on
+        RewriteRule ^/git(/.*)?$ \
+                    /cgi-bin/gitweb.cgi$1 [QSA,L,PT]
+        RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
+                    /cgi-bin/gitweb.cgi$2 \
+                    [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
+
         <Directory {{ docroot }}/Abbey/>
             AllowOverride Indexes FileInfo
             Options +Indexes +FollowSymLinks
         </Directory>
-        
+
         RedirectMatch /Photos$ /Photos/
         RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
                       /Photos/$1_$2_$3/
         AliasMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])/$ \
                    {{ docroot }}/Photos/$1/$2/$3/index.html
         AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
-        
-        Alias /gitweb-static/ /usr/share/gitweb/static/
-        <Directory "/usr/share/gitweb/static/">
-            Options MultiViews
-        </Directory>
-        RewriteEngine on
-        RewriteRule ^/git(/.*)?$ \
-                    /cgi-bin/gitweb.cgi$1 [QSA,L,PT]
-        RewriteRule ^/\~([^\/]+)/git(/.*)?$ \
-                    /cgi-bin/gitweb.cgi$2 \
-                    [QSA,E=GITWEB_PROJECTROOT:/home/$1/Public/Git/,L,PT]
 
         IncludeOptional /etc/letsencrypt/options-ssl-apache.conf
     dest: /etc/apache2/sites-available/birchwood-abbey.net-vhost.conf