From: Matt Birkholz Date: Sat, 28 Jun 2025 16:51:43 +0000 (-0600) Subject: Update README.html. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=a4ce8189d2518982902757cd5b6708c7f12779d1;p=Network Update README.html. --- diff --git a/README.html b/README.html index cd63406..df943f3 100644 --- a/README.html +++ b/README.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Birchwood Abbey Networks @@ -24,8 +24,8 @@ idiosyncrasies. The roles herein are abbey specific, emphasized by the abbey- prefix on their names. These roles are applied after the generic institutional roles (again, documented here).

-
-

1. Overview

+
+

1. Overview

A Small Institute makes security and privacy top priorities but @@ -64,7 +64,7 @@ map is very similar, with differences mainly in terminology, philosophy, attitude.

-
+
                 |                                                   
                 =                                                   
               _|||_                                                 
@@ -103,8 +103,8 @@ philosophy, attitude.
 
-
-

2. The Abbey Particulars

+
+

2. The Abbey Particulars

The abbey's public particulars are included below. They are the @@ -134,8 +134,8 @@ into private_ex/vars-abbey.yml.

-
-

3. The Abbey Front Role

+
+

3. The Abbey Front Role

Birchwood Abbey's front door is a Digital Ocean Droplet configured as @@ -144,8 +144,8 @@ with Apache2, spooling email with Postfix and serving it with Dovecot-IMAPd, and hosting a VPN with WireGuard™.

-
-

3.1. Install Emacs

+
+

3.1. Install Emacs

The monks of the abbey are masters of the staff (bo) and Emacs. @@ -160,8 +160,8 @@ The monks of the abbey are masters of the staff (bo) and Emacs.

-
-

3.2. Configure Public Email Aliases

+
+

3.2. Configure Public Email Aliases

The abbey uses several additional email aliases. These are the public @@ -200,8 +200,8 @@ from there, forwarding sysadm to a real person.

-
-

3.3. Configure Git Daemon on Front

+
+

3.3. Configure Git Daemon on Front

The abbey publishes member Git repositories with git-daemon. If @@ -276,7 +276,7 @@ like git-tasks and git-handlers.

-git-tasks
- name: Install git daemon.
+git-tasks
- name: Install git daemon.
   become: yes
   apt: pkg=git-daemon-sysvinit
 
@@ -314,7 +314,7 @@ like git-tasks and git-handlers.
 
-git-handlers

+git-handlers

 - name: Restart git daemon.
   become: yes
   command: systemctl restart git-daemon
@@ -322,8 +322,8 @@ like git-tasks and git-handlers.
 
-
-

3.4. Configure Gitweb on Front

+
+

3.4. Configure Gitweb on Front

The abbey provides an HTML interface to members' public Git @@ -350,7 +350,7 @@ lists the repositories found in /var/www/git/.

-apache-gitweb

+apache-gitweb

 Alias /gitweb-static/ /usr/share/gitweb/static/
 <Directory "/usr/share/gitweb/static/">
     Options MultiViews
@@ -408,7 +408,7 @@ web site /favicon.ico.
 

-apache-gitweb-tasks
- name: Enable Apache2 rewrite module for Gitweb.
+apache-gitweb-tasks
- name: Enable Apache2 rewrite module for Gitweb.
   become: yes
   apache2_module: name=rewrite
   notify: Restart Apache2.
@@ -445,7 +445,7 @@ web site /favicon.ico.
 
-apache-gitweb-handlers
- name: Restart Apache2.
+apache-gitweb-handlers
- name: Restart Apache2.
   become: yes
   systemd:
     service: apache2
@@ -454,8 +454,8 @@ web site /favicon.ico.
 
-
-

3.5. Configure Apache for Abbey Documentation

+
+

3.5. Configure Apache for Abbey Documentation

Some of the directives added to the -vhost.conf file are needed by @@ -473,7 +473,7 @@ filename suffixes.

-apache-abbey
<Directory {{ docroot }}/Abbey/>
+apache-abbey
<Directory {{ docroot }}/Abbey/>
     AllowOverride Indexes FileInfo
     Options +Indexes +FollowSymLinks
 </Directory>
@@ -496,8 +496,8 @@ AddType text/plain private pub public_vpn req rev sample txt yml
 
-
-

3.6. Configure Photos URLs on Front

+
+

3.6. Configure Photos URLs on Front

Some of the directives added to the -vhost.conf file map the abbey's @@ -509,7 +509,7 @@ matching configurations for accurate previews and tests.

-apache-photos

+apache-photos

 RedirectMatch /Photos$ /Photos/
 RedirectMatch /Photos/(20[0-9][0-9])_([0-9][0-9])_([0-9][0-9])$ \
               /Photos/$1_$2_$3/
@@ -522,8 +522,8 @@ AliasMatch /Photos/$ {{ docroot }}/Photos/index.html
 
-
-

3.7. Configure Apache on Front

+
+

3.7. Configure Apache on Front

The abbey needs to add some Apache2 configuration directives to the @@ -534,11 +534,11 @@ The abbey simply creates a birchwood-abbey.net-vhost.conf file in

-The following task adds the apache-abbey, apache-photos, and -apache-gitweb directives described above to the -vhost.conf file, +The following task adds the apache-abbey, apache-photos, and +apache-gitweb directives described above to the -vhost.conf file, and includes options-ssl-apache.conf from /etc/letsencrypt/. The rest of the Let's Encrypt configuration is discussed in the following -Install Let's Encrypt section. +Install Let's Encrypt section.

@@ -568,8 +568,8 @@ rest of the Let's Encrypt configuration is discussed in the following
-
-

3.8. Configure Apache Log Archival

+
+

3.8. Configure Apache Log Archival

These tasks hack Apache's logrotate(8) configuration to rotate @@ -701,8 +701,8 @@ encrypting and sending to sendmail.

-
-

3.9. Install Let's Encrypt

+
+

3.9. Install Let's Encrypt

The abbey uses a Let's Encrypt certificate to authenticate its public @@ -711,7 +711,7 @@ certificate is a terminal session affair (with prompts and lines entered as shown below).

-
+
 $ sudo apt install python3-certbot-apache
 $ sudo certbot --apache -d birchwood-abbey.net
 ...
@@ -821,8 +821,8 @@ restarted manually.
 
-
-

3.10. Rotate Let's Encrypt Log

+
+

3.10. Rotate Let's Encrypt Log

The following task arranges to rotate Certbot's logs files. @@ -850,8 +850,8 @@ The following task arranges to rotate Certbot's logs files.

-
-

3.11. Archive Let's Encrypt Data

+
+

3.11. Archive Let's Encrypt Data

A backup copy of Let's Encrypt's data (/etc/letsencrypt/) is sent to @@ -930,8 +930,8 @@ imported into root@front's GnuPG key file.

-
-

4. The Abbey Core Role

+
+

4. The Abbey Core Role

Birchwood Abbey's core is a mini-PC (System76 Meerkat) configured as A @@ -941,8 +941,8 @@ with Postfix and Dovecot, and providing essential localnet services: NTP, DNS and DHCP.

-
-

4.1. Include Abbey Variables

+
+

4.1. Include Abbey Variables

In this abbey specific document, most abbey particulars are not @@ -961,8 +961,8 @@ directory, playbooks/.

-
-

4.2. Install Additional Packages

+
+

4.2. Install Additional Packages

The scripts that maintain the abbey's web site use a number of @@ -980,8 +980,8 @@ The house task list uses JQuery.

-
-

4.3. Configure Private Email Aliases

+
+

4.3. Configure Private Email Aliases

The abbey uses several additional email aliases. These are the campus @@ -1021,13 +1021,13 @@ e.g. mythtv@mythtv.birchwood.private, locally.)

-
-

4.4. Configure Git Daemon on Core

+
+

4.4. Configure Git Daemon on Core

These tasks are identical to those executed on Front, for similar Git -services on Front and Core. See 3.3 and -Configure Gitweb on Front for more information. +services on Front and Core. See 3.3 and +Configure Gitweb on Front for more information.

@@ -1043,14 +1043,14 @@ services on Front and Core. See 3.3 and
-
-

4.5. Configure Apache on Core

+
+

4.5. Configure Apache on Core

The Apache2 configuration on Core specifies three web sites (live, test, and campus). The live and test sites must operate just like the -site on Front. Their configurations include the same apache-abbey, -apache-photos, and apache-gitweb used on Front. +site on Front. Their configurations include the same apache-abbey, +apache-photos, and apache-gitweb used on Front.

@@ -1092,15 +1092,15 @@ site on Front. Their configurations include the same
-
-

4.6. Configure Documentation URLs

+
+

4.6. Configure Documentation URLs

The institute serves its /usr/share/doc/ on the house (campus) web site. This is a debugging convenience, making some HTML documentation more accessible, especially the documentation of software installed on Core and not on typical desktop clients. Also included: the Apache2 -directives that enable user Git publishing with Gitweb (defined here). +directives that enable user Git publishing with Gitweb (defined here).

-
-

4.8. Use Cloister Apt Cache

+
+

4.8. Use Cloister Apt Cache

Core itself will benefit from using the package cache, but should @@ -1163,8 +1163,8 @@ so caching their packages is not a priority.)

-
-

4.9. Configure NAGIOS

+
+

4.9. Configure NAGIOS

A small institute uses nagios4 to monitor the health of its network, @@ -1178,8 +1178,8 @@ customized check_sensors plugin (abbey_pisensors) in

-
-

4.10. Monitoring The Home Disk

+
+

4.10. Monitoring The Home Disk

The abbey adds monitoring of the space remaining on the volume at @@ -1215,8 +1215,8 @@ remaining on roots.)

-
-

4.11. Custom NAGIOS Monitor abbey_pisensors

+
+

4.11. Custom NAGIOS Monitor abbey_pisensors

The check_sensors plugin is included in the package @@ -1311,26 +1311,24 @@ recognizable temperature in the sensors output.

-
-

4.12. Monitoring The Cloister

+
+

4.12. Monitoring The Cloister

-The abbey adds monitoring for more servers: Kamino, Kessel, and Ord -Mantell. They are abbey-cloister servers, so they are configured as -small institute campus servers, like Gate, with an NRPE (a NAGIOS -Remote Plugin Executor) server and an inst_sensors command. +The abbey adds monitoring for more servers: Kessel, and Ord Mantell. +They are abbey-cloister servers, so they are configured as small +institute campus servers, like Gate, with an NRPE (a NAGIOS Remote +Plugin Executor) server and an inst_sensors command.

The configurations for the servers are very similar to Gate's, but are -idiosyncratically in flux. In particular, Kamino does not irritate -check_total_procs, yet Kessel does. Both are Pop!_OS 22.04, but -Kessel is a wireless host while Kamino is wired. Ord Mantell, the -Raspberry Pi OS (ARM64) machine, uses the abbey_pisensors monitor. +idiosyncratically in flux. For example Ord Mantell, the Raspberry Pi +OS (ARM64) machine, uses the abbey_pisensors monitor.

-
-

4.12.1. Cloister Network Addresses

+
-
-

4.12.2. Installing NAGIOS Configurations

+
+

4.12.2. Installing NAGIOS Configurations

-The following task installs each host's NAGIOS configuration. Note -that Kamino is not included. It is currently unmonitored as it is now -rarely powered up. +The following task installs each host's NAGIOS configuration.

@@ -1369,8 +1364,8 @@ rarely powered up.
-
-

4.12.3. NAGIOS Monitoring of Ord-Mantell

+
+

4.12.3. NAGIOS Monitoring of Ord-Mantell

roles_t/abbey-core/templates/nagios-ord-mantell.cfg
define host {
@@ -1424,65 +1419,10 @@ rarely powered up.
 
-
-

4.12.4. NAGIOS Monitoring of Kamino

+
+

4.12.4. NAGIOS Monitoring of Kessel

-roles_t/abbey-core/templates/nagios-kamino.cfg
define host {
-    use                     linux-server
-    host_name               kamino
-    address                 {{ kamino_addr }}
-}
-
-define service {
-    use                     generic-service
-    host_name               kamino
-    service_description     Root Partition
-    check_command           check_nrpe!inst_root
-}
-
-define service {
-    use                     generic-service
-    host_name               kamino
-    service_description     Current Load
-    check_command           check_nrpe!check_load
-}
-
-define service {
-    use                     generic-service
-    host_name               kamino
-    service_description     Zombie Processes
-    check_command           check_nrpe!check_zombie_procs
-}
-
-# define service {
-#     use                     generic-service
-#     host_name               kamino
-#     service_description     Total Processes
-#     check_command           check_nrpe!check_total_procs
-# }
-
-define service {
-    use                     generic-service
-    host_name               kamino
-    service_description     Swap Usage
-    check_command           check_nrpe!inst_swap
-}
-
-define service {
-    use                     generic-service
-    host_name               kamino
-    service_description     Temperature Sensors
-    check_command           check_nrpe!inst_sensors
-}
-
-
-
-
-
-

4.12.5. NAGIOS Monitoring of Kessel

-
-
roles_t/abbey-core/templates/nagios-kessel.cfg
define host {
     use                     linux-server
     host_name               kessel
@@ -1535,8 +1475,8 @@ rarely powered up.
 
-
-

4.13. Install Munin

+
+

4.13. Install Munin

The abbey is experimenting with Munin. NAGIOS is all about notifying @@ -1623,8 +1563,8 @@ next task configures libsensors to ignore them.

-
-

4.14. Install Analog

+
+

4.14. Install Analog

The abbey's public web site's access and error logs are emailed @@ -1678,8 +1618,8 @@ the campus as http://www/analog.html.

-
-

4.15. Add Monkey to Web Server Group

+
+

4.15. Add Monkey to Web Server Group

Monkey needs to be in www-data so that it can run @@ -1701,8 +1641,8 @@ user cloud accounts, found in files owned by www-data, files like

-
-

4.16. Install netpbm For Photo Processing

+
+

4.16. Install netpbm For Photo Processing

Monkey's photo processing scripts use netpbm commands like @@ -1718,99 +1658,22 @@ Monkey's photo processing scripts use netpbm commands like

-
-

4.17. Install Samba

-
-

-The abbey core provides NAS (Network Attached Storage) service to the -cloister network. It also provides writable shares for a Home -Assistant appliance (Raspberry Pi). -

- -
    -
  • Install samba.
  • -
  • Create system user hass.
  • -
  • Create /home/hass/{media,backup,share}/ with appropriate -permissions.
  • -
- -
-roles_t/abbey-core/tasks/main.yml

-- name: Install Samba.
-  become: yes
-  apt: pkg=samba
-
-- name: Add system user hass.
-  become: yes
-  user:
-    name: hass
-    system: yes
-
-- name: Add {{ ansible_user }} to hass group.
-  become: yes
-  user:
-    name: "{{ ansible_user }}"
-    append: yes
-    groups: hass
-
-- name: Configure shares.
-  become: yes
-  blockinfile:
-    block: |
-      [Shared]
-      path = /Shared
-      guest ok = yes
-      read only = yes
-
-      [HASS-backup]
-      comment = Home Assistant backup
-      path = /home/hass/backup
-      valid users = hass
-      read only = no
-
-      [HASS-media]
-      comment = Home Assistant media
-      path = /home/hass/media
-      valid users = hass
-      read only = yes
-
-      [HASS-share]
-      comment = Home Assistant share
-      path = /home/hass/share
-      valid users = hass
-      read only = no
-    dest: /etc/samba/smb.conf
-    marker: "# {mark} ABBEY MANAGED BLOCK"
-  notify: New shares.
-
-
- -
-roles_t/abbey-core/handlers/main.yml

-- name: New shares.
-  become: yes
-  systemd:
-    service: smbd
-    state: reloaded
-
-
-
-
-
-

5. The Abbey Gate Role

+
+

5. The Abbey Gate Role

Birchwood Abbey's gate is a $110 µPC configured as A Small Institute Gate, thus providing a campus VPN on a campus Wi-Fi access point. It routes network traffic from its wild and lan interfaces to its -isp interface (and back) with NAT. That is all the abbey requires -of its gate, so there is no additional Ansible configuration in this -chapter (yet). +isp interface (and back) with NAT. The abbey adds masquerading +between its private interfaces (lan and wg0) and wild. This +allows access to the Abbey's IoT appliances: a HomeAssistant and an +Ecowitt hub.

-
-

5.1. The Abbey Gate's Network Interfaces

+
+

5.1. The Abbey Gate's Network Interfaces

The abbey gate's lan interface is the PC's built-in Ethernet @@ -1831,10 +1694,76 @@ The MAC address of each interface is set in private/vars.yml (see

-
-

5.2. The Abbey's Starlink Configuration

+
+

5.2. The Abbey's IoT Network

+To allow masquerading between the private subnets and wild, the +following iptables(8) rules are added. They are very similar to the +nat and filter table rules used by a small institute to masquerade +its lan to its isp (see the UFW Rules of a Small Institute). +

+ +
+iot-nat
-A POSTROUTING -s {{   private_net_cidr }} -o wild -j MASQUERADE
+-A POSTROUTING -s {{ public_wg_net_cidr }} -o wild -j MASQUERADE
+-A POSTROUTING -s {{ campus_wg_net_cidr }} -o wild -j MASQUERADE
+
+
+ +
+iot-forward
-A ufw-user-forward -i lan -o wild -j ACCEPT
+-A ufw-user-forward -i wg0 -o wild -j ACCEPT
+
+
+ +

+The lan interface encompasses the private LAN and the public VPN. +The second rule includes the campus VPN. +

+
+
+
+

5.3. Configure UFW for IoT

+
+

+The following tasks install the additional rules in before.rules +and user.rules (as in Configure UFW). +

+ +
+roles_t/abbey-gate/tasks/main.yml
---
+- name: Configure UFW NAT rules for IoT.
+  become: yes
+  blockinfile:
+    block: |
+      *nat
+      <<iot-nat>>
+      COMMIT
+    dest: /etc/ufw/before.rules
+    marker: "# {mark} ABBEY MANAGED BLOCK"
+    insertafter: EOF
+    prepend_newline: yes
+
+- name: Configure UFW FORWARD rules for IoT.
+  become: yes
+  blockinfile:
+    block: |
+      *filter
+      <<iot-forward>>
+      COMMIT
+    dest: /etc/ufw/user.rules
+    marker: "# {mark} ABBEY MANAGED BLOCK"
+    insertafter: EOF
+    prepend_newline: yes
+
+
+
+
+
+

5.4. The Abbey's Starlink Configuration

+
+

The abbey connects to Starlink via Ethernet, and disables Starlink's Wi-Fi access point. An Ethernet adapter add-on (ordered separately) was installed on the Starlink cable, and a second USB-Ethernet dongle @@ -1880,9 +1809,9 @@ at least our local network traffic out of view of our ISPs.

-
-

5.3. Alternate ISPs

-
+
+

5.5. Alternate ISPs

+

The abbey used to use a cell phone on a USB tether to get Internet service. At that time, Gate's /etc/netplan/60-isp.yaml file was the @@ -1926,8 +1855,8 @@ service, using a 60-isp.yaml file similar to the lines below.

-
-

6. The Abbey Cloister Role

+
+

6. The Abbey Cloister Role

Birchwood Abbey's cloister is a small institute campus. The campus @@ -1942,7 +1871,7 @@ tasks, namely configuration required on Raspberry Pi OS machines.

Wireless clients are issued keys for the cloister VPN by the ./abbey client command which is currently identical to the ./inst client -command (described in The Client Command). The wireless, cloistered +command (described in The Client Command). The wireless, cloistered hosts never roam, are not associated with a member, and so are "campus" clients, issued keys with commands like this:

@@ -1951,8 +1880,8 @@ hosts never roam, are not associated with a member, and so are ./abbey client campus new-host-name
-
-

6.1. Use Cloister Apt Cache

+
+

6.1. Use Cloister Apt Cache

The Apt-Cacher:TNG program does not work well on the frontier, so is @@ -1986,13 +1915,13 @@ local host.

-
-

6.2. Configure Cloister NRPE

+
+

6.2. Configure Cloister NRPE

Each cloistered host is a small institute campus host and thus is already running an NRPE server (a NAGIOS Remote Plugin Executor -server) with a custom inst_sensors monitor (described in Configure +server) with a custom inst_sensors monitor (described in Configure NRPE of A Small Institute). The abbey adds one complication: yet another check_sensors variant, abbey_pisensors, installed on Raspberry Pis (architecture aarch64) only. @@ -2030,8 +1959,8 @@ Raspberry Pis (architecture aarch64) only.

-
-

6.3. Install Munin Node

+
+

6.3. Install Munin Node

Each cloistered host is a Munin node. @@ -2074,8 +2003,8 @@ them.

-
-

6.4. Install Emacs

+
+

6.4. Install Emacs

The monks of the abbey are masters of the staff and Emacs. @@ -2091,8 +2020,8 @@ The monks of the abbey are masters of the staff and Emacs.

-
-

7. The Abbey Weather Role

+
+

7. The Abbey Weather Role

Birchwood Abbey now uses Home Assistant to record and display weather @@ -2119,16 +2048,16 @@ entities. These were labeled and organized on an "Abbey" dashboard.

-
-

8. The Abbey DVR Role

+
+

8. The Abbey DVR Role

The abbey uses AgentDVR to record video from PoE IP HD security cameras. It is installed and configured as described here.

-
-

8.1. AgentDVR Installation

+
+

8.1. AgentDVR Installation

AgentDVR is installed at the abbey according to the iSpy web site's @@ -2151,8 +2080,8 @@ bash <(curl -s "https://raw.githubusercontent.com/\< preparations.

-
-

8.1.1. AgentDVR Installation Preparation

+
+

8.1.1. AgentDVR Installation Preparation

AgentDVR runs in the abbey as a system user, agentdvr, which @@ -2187,8 +2116,8 @@ sudo mv ~/01agentdvr /etc/sudoers.d/

-
-

8.1.2. AgentDVR Installation Execution

+
+

8.1.2. AgentDVR Installation Execution

With the above preparations, the system administrator can get a shell @@ -2209,8 +2138,8 @@ Ansible is run again.

-
-

8.1.3. AgentDVR Installation Completion

+
+

8.1.3. AgentDVR Installation Completion

When Ansible is run a second time, after the installation script, it @@ -2233,8 +2162,8 @@ sudo rm /etc/sudoers.d/01agentdvr

-
-

8.2. Create User agentdvr

+
+

8.2. Create User agentdvr

AgentDVR runs as the system user agentdvr, which is created here. @@ -2271,8 +2200,8 @@ AgentDVR runs as the system user agentdvr, which is created here.

-
-

8.3. Test For AgentDVR/

+
+

8.3. Test For AgentDVR/

The following task probes for the /home/agentdvr/AgentDVR/ @@ -2295,8 +2224,8 @@ remaining installation steps are skipped unless

-
-

8.4. Create AgentDVR Service

+
+

8.4. Create AgentDVR Service

This service definition came from the template downloaded (from here) @@ -2346,8 +2275,8 @@ by install.sh.

-
-

8.5. Create AgentDVR Storage

+
+

8.5. Create AgentDVR Storage

The abbey uses a separate volume to store surveillance recordings, @@ -2381,11 +2310,11 @@ location do not fail.

-
-

8.6. Configure IP Cameras

+
+

8.6. Configure IP Cameras

-A new security camera is setup as described in Cloistering, after +A new security camera is setup as described in Cloistering, after which the camera should be accessible by name on the abbey networks. Assuming ping -c1 new works, the camera's web interface will be accessible at http://new/. @@ -2404,8 +2333,8 @@ long duration logs, thus fewer frames per second.

-
-

8.7. Configure AgentDVR's Cameras

+
+

8.7. Configure AgentDVR's Cameras

After Ansible has configured and started the AgentDVR service, its web @@ -2442,8 +2371,8 @@ AgentDVR's Live View.

-
-

8.8. Configure AgentDVR's Default Storage

+
+

8.8. Configure AgentDVR's Default Storage

AgentDVR's web interface is also used to configure a default storage @@ -2455,8 +2384,8 @@ pressed before the task is complete.

-
-

8.9. Configure AgentDVR's Recordings

+
+

8.9. Configure AgentDVR's Recordings

After a default storage location has been configured, AgentDVR's @@ -2488,8 +2417,8 @@ parameters are set (in the Recording and Storage tabs).

-
-

9. The Abbey TVR Role

+
+

9. The Abbey TVR Role

The abbey has a few TV tuners and a subscription to Schedules Direct @@ -2504,8 +2433,8 @@ interface on the master server. It configures the Apache web server to serve MythWeb pages at e.g. http://new/mythweb/.

-
-

9.1. Building MythTV and MythWeb

+
+

9.1. Building MythTV and MythWeb

Neither Debian nor the MythTV project provide binary packages of @@ -2536,19 +2465,19 @@ video source and capture card, after which the backend can be started.

-
-

9.2. TVR Machine Setup

+
+

9.2. TVR Machine Setup

-A new TVR machine needs only Cloistering to prepare it for +A new TVR machine needs only Cloistering to prepare it for Ansible. As part of that process, it should be added to the tvrs group in the hosts file. An existing server can become a TVR machine simply by adding it to the tvrs group.

-
-

9.3. Include Abbey Variables

+
+

9.3. Include Abbey Variables

Private variables in private/vars-abbey.yml are needed, as in the @@ -2564,8 +2493,8 @@ directory, playbooks/.

-
-

9.4. Install MythTV Build Requisites

+
+

9.4. Install MythTV Build Requisites

A number of developer packages are needed to build MythTV. The wiki @@ -2651,8 +2580,8 @@ MythTV is built and installed.

-
-

9.5. Build and Install MythTV

+
+

9.5. Build and Install MythTV

After a successful "first" run of e.g. ./abbey config new, the @@ -2700,8 +2629,8 @@ Several of the remaining installation steps are skipped unless

-
-

9.6. Create MythTV User

+
+

9.6. Create MythTV User

MythTV Backend needs to run as its own user: mythtv. @@ -2718,8 +2647,8 @@ MythTV Backend needs to run as its own user: mythtv.

-
-

9.7. Create MythTV DB

+
+

9.7. Create MythTV DB

MythTV's MariaDB database is created by the following task, when the @@ -2746,8 +2675,8 @@ privileged DB user, the mythconverg database is created manually

-
-

9.8. Create MythTV DB User

+
+

9.8. Create MythTV DB User

The DB user's password is taken from the mythtv_dbpass variable, @@ -2779,8 +2708,8 @@ created above.

-
-

9.9. Manually Create MythTV DB and DB User

+
+

9.9. Manually Create MythTV DB and DB User

The MythTV database and database user are created manually with the @@ -2805,8 +2734,8 @@ exit;

-
-

9.10. Load DB Timezone Info

+
+

9.10. Load DB Timezone Info

Starting with MythTV version 0.26, the time zone tables must be loaded @@ -2830,8 +2759,8 @@ e.g. 2022-09-13 20:15:41.

-
-

9.11. Create MythTV Backend Service

+
+

9.11. Create MythTV Backend Service

This task installs the mythtv-backend.service file. @@ -2875,8 +2804,8 @@ This task installs the mythtv-backend.service file.

-
-

9.12. Set PHP Timezone

+
+

9.12. Set PHP Timezone

This task checks PHP's timezone. If unset, MythTV's backend logs @@ -2917,8 +2846,8 @@ bitter complaints.

-
-

9.13. Create MythTV Storage Area

+
+

9.13. Create MythTV Storage Area

The backend does not have a default storage area for its recordings. @@ -2942,8 +2871,8 @@ creates that directory and ensures it has appropriate permissions.

-
-

9.14. Configure MythTV Backend

+
+

9.14. Configure MythTV Backend

With MythTV built and installed, and the post-installation tasks @@ -2983,12 +2912,12 @@ directory: /home/mythtv/Recordings.

-
-

9.15. Configure Tuner

+
+

9.15. Configure Tuner

The abbey has a Silicon Dust Homerun HDTV Duo (with two tuners). It -is setup as described in Cloistering, after which the tuner is +is setup as described in Cloistering, after which the tuner is accessible by name (e.g. new) on the cloister network. Assuming ping -c1 new works, the tuner should be accessible via the hdhomerun_config_gui command, a graphical interface contributed to @@ -2999,8 +2928,8 @@ tuner's domain name or IP address can also be entered.

-
-

9.16. Add HDHomerun and Mr.Antenna

+
+

9.16. Add HDHomerun and Mr.Antenna

In MythTV Setup: @@ -3043,8 +2972,8 @@ any case, do not run mythfilldatabase.

-
-

9.17. Scan for New Channels

+
+

9.17. Scan for New Channels

In MythTV Setup: @@ -3065,8 +2994,8 @@ channels is presented. Delete All unused transports.

-
-

9.18. Configure XMLTV

+
+

9.18. Configure XMLTV

The xmltv package, specifically its tv_grab_zz_sdjson program, is @@ -3101,7 +3030,7 @@ the list of "inputs" available in a postal code typically ends with the OTA (over the air) broadcasts.

-
+
 $ tv_grab_zz_sdjson --configure --config-file .mythtv/Mr.Antenna.xml
 Cache file for lineups, schedules and programs.
 Cache file: [/home/mythtv/.xmltv/tv_grab_zz_sdjson.cache]
@@ -3151,8 +3080,8 @@ backend is running, so it is not run until then.
 

-
-

9.19. Debug XMLTV

+
+

9.19. Debug XMLTV

If the mythfilldatabase command fails or expected listings do not @@ -3191,8 +3120,8 @@ Running a similar command (without --quiet) might be more revealing

-
-

9.20. Configure MythTV Backend Logging

+
+

9.20. Configure MythTV Backend Logging

The abbey directs MythTV log messages to /var/log/mythtv.log (and @@ -3229,8 +3158,8 @@ away from /var/log/syslog) and rotates the log file.

-
-

9.21. Start MythTV Backend

+
+

9.21. Start MythTV Backend

After configuring with mythtv-setup as discussed above, start and @@ -3246,8 +3175,8 @@ sudo -u mythtv mythfilldatabase

-
-

9.22. Install MythWeb

+
+

9.22. Install MythWeb

MythWeb, like MythTV, is installed from a Git repository. The @@ -3363,14 +3292,14 @@ The following tasks take care of the rest of the installation.

-
-

9.23. Change Broadcast Area

+
+

9.23. Change Broadcast Area

The abbey changes location almost weekly, so its HDTV broadcast area changes frequently. At the start of a long stay the administrator uses the MythTV Setup program to scan for the new area's channels, as -described in Scan for New Channels. +described in Scan for New Channels.

@@ -3388,7 +3317,7 @@ program as user mythtv.

The program will prompt for the zip code and offer a list of "inputs" -available in that area, as described in Configure XMLTV. +available in that area, as described in Configure XMLTV.

@@ -3411,8 +3340,8 @@ And the mythtv account can run mythfilldatabase.

-
-

10. The Ansible Configuration

+
+

10. The Ansible Configuration

The abbey's Ansible configuration, like that of A Small Institute, is @@ -3439,7 +3368,7 @@ specific versions.

-NOTE: if you have not read at least the Overview of A Small Institute +NOTE: if you have not read at least the Overview of A Small Institute you are lost.

@@ -3469,8 +3398,8 @@ rest are built up piecemeal by (tangled from) this document, README.org, and Institute/README.org.

-
-

10.1. ansible.cfg

+
+

10.1. ansible.cfg

This is much like the example (test) institutional configuration file, @@ -3487,11 +3416,11 @@ except the roles are found in Institute/roles/ as well as roles/.

-
-

10.2. hosts

+
+

10.2. hosts

-hosts
all:
+hosts
all:
   vars:
     ansible_user: sysadm
     ansible_ssh_extra_args: -i Secret/ssh_admin/id_rsa
@@ -3505,8 +3434,6 @@ except the roles are found in Institute/roles/ as well as roles/.
     dantooine:
       ansible_become_password: "{{ become_dantooine }}"
     # Campus
-    kamino:
-      ansible_become_password: "{{ become_kamino }}"
     kessel:
       ansible_become_password: "{{ become_kessel }}"
     ord-mantell:
@@ -3536,7 +3463,6 @@ except the roles are found in Institute/roles/ as well as roles/.
     campus:
       hosts:
         anoat:
-        kamino:
         kessel:
         ord-mantell:
     dvrs:
@@ -3547,7 +3473,6 @@ except the roles are found in Institute/roles/ as well as roles/.
         dantooine:
     webtvs:
       hosts:
-        kamino:
         kessel:
         ord-mantell:
     notebooks:
@@ -3557,13 +3482,13 @@ except the roles are found in Institute/roles/ as well as roles/.
     builders:
       hosts:
         sullust:
-        kamino:
+        kessel:
 
-
-

10.3. playbooks/site.yml

+
+

10.3. playbooks/site.yml

This playbook provisions the entire network by applying first the @@ -3582,7 +3507,7 @@ institutional roles, then the liturgical roles. - name: Configure Gate hosts: gate - roles: [ gate ] + roles: [ gate, abbey-gate ] - name: Configure Core hosts: core @@ -3604,17 +3529,17 @@ institutional roles, then the liturgical roles.

-
-

11. The Abbey Commands

+
+

11. The Abbey Commands

The ./abbey script encodes the abbey's canonical procedures. It -includes The Institute Commands and adds a few abbey-specific +includes The Institute Commands and adds a few abbey-specific sub-commands.

-
-

11.1. Abbey Command Overview

+
+

11.1. Abbey Command Overview

Institutional sub-commands: @@ -3642,8 +3567,8 @@ and _architecture for all hosts.

-
-

11.2. Abbey Command Script

+
+

11.2. Abbey Command Script

The script begins with the following prefix and trampolines. @@ -3666,7 +3591,7 @@ The script begins with the following prefix and trampolines. The small institute's ./inst command expects to be running in Institute/, not ./, but it only references public/, private/, Secret/ and playbooks/check-inst-vars.yml, and will find the abbey -specific versions of these. The roles_path setting in ansible.cfg +specific versions of these. The roles_path setting in ansible.cfg effectively merges the institutional roles into the distinctly named abbey specific roles. The roles likewise reference files with relative names, and will find the abbey specific private/ @@ -3685,8 +3610,8 @@ code block "duplicates" the action of the institute's

-
-

11.3. The Upgrade Command

+
+

11.3. The Upgrade Command

The script implements an upgrade sub-command that runs apt update @@ -3751,8 +3676,8 @@ a limit pattern. For example:

-
-

11.4. The Reboots Command

+
+

11.4. The Reboots Command

The script implements a reboots sub-command that looks for @@ -3783,8 +3708,8 @@ The script implements a reboots sub-command that looks for

-
-

11.5. The Versions Command

+
+

11.5. The Versions Command

The script implements a versions sub-command that reports the @@ -3811,8 +3736,8 @@ operating system version of all abbey managed machines.

-
-

11.6. The TZ Command

+
+

11.6. The TZ Command

The abbey changes location almost weekly, so its timezone changes @@ -3910,8 +3835,8 @@ last host in the previous play.

-
-

11.7. Abbey Command Help

+
+

11.7. Abbey Command Help

abbey
my $ops = "config,new,old,pass,client,upgrade,reboots,versions,tz";
@@ -3921,8 +3846,8 @@ last host in the previous play.
 
-
-

12. Cloistering

+
+

12. Cloistering

This is how a new machine is brought into the cloister. The process @@ -3931,8 +3856,8 @@ narrows down to the common preparation of all machines administered by Ansible.

-
-

12.1. IoT Devices

+
+

12.1. IoT Devices

A wireless IoT device (smart TV, Blu-ray deck, etc.) cannot install @@ -3948,8 +3873,8 @@ given a private domain name as described in the following steps.

@@ -3959,12 +3884,12 @@ last step:

-
-

12.2. Raspberry Pis

+
+

12.2. Raspberry Pis

The abbey's Raspberry Pi runs the Raspberry Pi OS desktop off an @@ -3983,8 +3908,8 @@ Ethernet, and power up.

  • new username: sysadm
  • new password: fubar
  • -
  • Add to Core DHCP
  • -
  • Create Wired Domain Name
  • +
  • Add to Core DHCP
  • +
  • Create Wired Domain Name
  • Log in as sysadm on the console.
  • Run sudo raspi-config and use the following menu items.
      @@ -3992,9 +3917,9 @@ Ethernet, and power up.
    • 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
  • -
  • Authorize Remote Administration
  • -
  • Configure with Ansible
  • +
  • Update From Cloister Apt Cache
  • +
  • Authorize Remote Administration
  • +
  • Configure with Ansible
  • @@ -4003,14 +3928,14 @@ steps are taken.

    -
    -

    12.3. PCs

    +
    +

    12.3. PCs

    Most of the abbey's machines, like Core and Gate, are general-purpose @@ -4030,18 +3955,18 @@ Ethernet, and power up. Choose to boot from the USB drive.

  • new username: sysadm
  • new password: fubar
  • -
  • Add to Core DHCP
  • -
  • Create Wired Domain Name
  • +
  • Add to Core DHCP
  • +
  • Create Wired Domain Name
  • Log in as sysadm on the console.
  • -
  • Update From Cloister Apt Cache
  • +
  • Update From Cloister Apt Cache
  • Install OpenSSH. Plain Debian does not come with OpenSSH installed.

     sudo apt install openssh-server
     
  • -
  • Authorize Remote Administration
  • -
  • Configure with Ansible
  • +
  • Authorize Remote Administration
  • +
  • Configure with Ansible
  • @@ -4050,14 +3975,14 @@ steps are taken.

    -
    -

    12.4. Add to Core DHCP

    +
    +

    12.4. Add to Core DHCP

    When a new machine is connected to the cloister Ethernet, its MAC @@ -4118,12 +4043,12 @@ reporting 1 packets transmitted, 1 received, 0% packet loss....

    -
    -

    12.5. Create Wired Domain Name

    +
    +

    12.5. Create Wired Domain Name

    A wired device is assigned an IP address when it is added to Core's -DHCP configuration (as in Add to Core DHCP). A private domain name is +DHCP configuration (as in Add to Core DHCP). A private domain name is then associated with this address. If the device is intended to operate wirelessly, the name for its address is modified with a -w suffix. Thus new-w.small.private would be the name of the new @@ -4166,8 +4091,8 @@ resolvectl query 192.168.56.4

    -
    -

    12.6. Update From Cloister Apt Cache

    +
    +

    12.6. Update From Cloister Apt Cache

    • Log in as sysadm on the console.
    • @@ -4190,8 +4115,8 @@ sudo reboot
    -
    -

    12.7. Authorize Remote Administration

    +
    +

    12.7. Authorize Remote Administration

    To remotely administer new-w, Ansible must be authorized to login as @@ -4225,11 +4150,11 @@ key.

    -
    -

    12.8. Configure with Ansible

    +
    +

    12.8. Configure with Ansible

    -With remote administration authorized and tested (as in Authorize +With remote administration authorized and tested (as in Authorize Remote Administration), and the machine connected to the cloister Ethernet, the configuration of new-w can be completed by Ansible. Note that if the machine is staying on the cloister Ethernet, its @@ -4237,7 +4162,7 @@ domain name will be new (having had no -w suffix added

    -First new-w is added to Ansible's inventory in hosts. A new-w +First new-w is added to Ansible's inventory in hosts. A new-w section is added to the list of all hosts, and an empty section of the same name is added to the list of campus hosts. If the machine uses the usual privileged account name, sysadm, the ansible_user key in @@ -4285,8 +4210,8 @@ configuration files.

    -
    -

    12.9. Connect to Cloister Wi-Fi

    +
    +

    12.9. Connect to Cloister Wi-Fi

    On an IoT device, or a Debian or Android "desktop", the cloister Wi-Fi @@ -4327,8 +4252,8 @@ desktop connected to the Wi-Fi using the following ping command.

    -
    -

    12.10. Connect to Cloister VPN

    +
    +

    12.10. Connect to Cloister VPN

    Wireless devices (with the cloister Wi-Fi password) can get an IP @@ -4341,14 +4266,14 @@ however, are not accessible except via the cloister VPN.

    Connections to the cloister VPN are authorized by the ./abbey -client... command (aka The Client Command), which registers a new +client... command (aka The Client Command), which registers a new client's public key and installs new WireGuard™ configurations on the servers. Private keys are kept on the clients (e.g. in /etc/wireguard/private-key).

    -
    -

    12.10.1. Campus Desktops and Servers

    +
    +

    12.10.1. Campus Desktops and Servers

    Wireless Debian desktops (with NetworkManager) as well as servers @@ -4434,8 +4359,8 @@ sudo systemctl enable wg-quick@wg0

    -
    -

    12.10.2. Private Desktops

    +
    +

    12.10.2. Private Desktops

    Member notebooks are private machines not remotely administered by the @@ -4547,8 +4472,8 @@ password is included in Secret/become.yml.

    -
    -

    12.10.3. Android

    +
    +

    12.10.3. Android

    Android phones and tablets are authorized to connect to the cloister @@ -4585,8 +4510,8 @@ public VPN.

    -
    -

    12.11. Create Wireless Domain Name

    +
    +

    12.11. Create Wireless Domain Name

    A wireless machine is assigned a Wi-Fi address when it connects to the @@ -4641,7 +4566,7 @@ be added to private/db.campus_vpn.)

    Author: Matt Birkholz

    -

    Created: 2025-06-15 Sun 19:03

    +

    Created: 2025-06-28 Sat 10:20

    Validate