From: Matt Birkholz abbey-
prefix on their names. These roles are applied after
the generic institutional roles (again, documented here).
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.
The abbey's public particulars are included below. They are the
@@ -134,8 +134,8 @@ into private_ex/vars-abbey.yml
.
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â¢.
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.
The abbey uses several additional email aliases. These are the public
@@ -200,8 +200,8 @@ from there, forwarding sysadm
to a real person.
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
.
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
.
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
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
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.
These tasks hack Apache's logrotate(8)
configuration to rotate
@@ -701,8 +701,8 @@ encrypting and sending to sendmail
.
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.
The following task arranges to rotate Certbot's logs files. @@ -850,8 +850,8 @@ The following task arranges to rotate Certbot's logs files.
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.
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.
In this abbey specific document, most abbey particulars are not
@@ -961,8 +961,8 @@ directory, playbooks/
.
The scripts that maintain the abbey's web site use a number of @@ -980,8 +980,8 @@ The house task list uses JQuery.
The abbey uses several additional email aliases. These are the campus
@@ -1021,13 +1021,13 @@ e.g. mythtv@mythtv.birchwood.private
, locally.)
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.
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.
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).
The abbey uses the Apt-Cacher:TNG package cache on Core. The @@ -1138,8 +1138,8 @@ The abbey uses the Apt-Cacher:TNG package cache on Core. The
Core itself will benefit from using the package cache, but should @@ -1163,8 +1163,8 @@ so caching their packages is not a priority.)
A small institute uses nagios4
to monitor the health of its network,
@@ -1178,8 +1178,8 @@ customized check_sensors
plugin (abbey_pisensors
) in
The abbey adds monitoring of the space remaining on the volume at @@ -1215,8 +1215,8 @@ remaining on roots.)
abbey_pisensors
abbey_pisensors
The check_sensors
plugin is included in the package
@@ -1311,26 +1311,24 @@ recognizable temperature in the sensors
output.
-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.
The IP addresses of all three hosts are nice to use in the NAGIOS
@@ -1340,20 +1338,17 @@ included in private/vars-abbey.yml
.
private_ex/vars-abbey.yml
---
-kamino_addr: 192.168.56.14
kessel_addr: 10.84.138.8
ord_mantell_addr: 10.84.138.10
-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.
roles_t/abbey-core/templates/nagios-ord-mantell.cfg
define host {
@@ -1424,65 +1419,10 @@ rarely powered up.
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
-}
-
-roles_t/abbey-core/templates/nagios-kessel.cfg
define host {
use linux-server
host_name kessel
@@ -1535,8 +1475,8 @@ rarely powered up.
The abbey is experimenting with Munin. NAGIOS is all about notifying
@@ -1623,8 +1563,8 @@ next task configures libsensors
to ignore them.
The abbey's public web site's access and error logs are emailed
@@ -1678,8 +1618,8 @@ the campus as http://www/analog.html
.
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
Monkey's photo processing scripts use netpbm
commands like
@@ -1718,99 +1658,22 @@ Monkey's photo processing scripts use netpbm
commands like
-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). -
- -samba
.hass
./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
-
-
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.
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
+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.
+
+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
+
+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.
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.
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:
The Apt-Cacher:TNG program does not work well on the frontier, so is @@ -1986,13 +1915,13 @@ local host.
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.
Each cloistered host is a Munin node. @@ -2074,8 +2003,8 @@ them.
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.
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.
The abbey uses AgentDVR to record video from PoE IP HD security cameras. It is installed and configured as described here.
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.
AgentDVR runs in the abbey as a system user, agentdvr
, which
@@ -2187,8 +2116,8 @@ sudo mv ~/01agentdvr /etc/sudoers.d/
With the above preparations, the system administrator can get a shell @@ -2209,8 +2138,8 @@ Ansible is run again.
When Ansible is run a second time, after the installation script, it @@ -2233,8 +2162,8 @@ sudo rm /etc/sudoers.d/01agentdvr
agentdvr
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.
AgentDVR/
AgentDVR/
The following task probes for the /home/agentdvr/AgentDVR/
@@ -2295,8 +2224,8 @@ remaining installation steps are skipped unless
This service definition came from the template downloaded (from here)
@@ -2346,8 +2275,8 @@ by install.sh
.
The abbey uses a separate volume to store surveillance recordings, @@ -2381,11 +2310,11 @@ location do not fail.
-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.
After Ansible has configured and started the AgentDVR service, its web @@ -2442,8 +2371,8 @@ AgentDVR's Live View.
AgentDVR's web interface is also used to configure a default storage @@ -2455,8 +2384,8 @@ pressed before the task is complete.
After a default storage location has been configured, AgentDVR's @@ -2488,8 +2417,8 @@ parameters are set (in the Recording and Storage tabs).
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/
.
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.
-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.
Private variables in private/vars-abbey.yml
are needed, as in the
@@ -2564,8 +2493,8 @@ directory, playbooks/
.
A number of developer packages are needed to build MythTV. The wiki @@ -2651,8 +2580,8 @@ MythTV is built and installed.
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
MythTV Backend needs to run as its own user: mythtv
.
@@ -2718,8 +2647,8 @@ MythTV Backend needs to run as its own user: mythtv
.
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
The DB user's password is taken from the mythtv_dbpass
variable,
@@ -2779,8 +2708,8 @@ created above.
The MythTV database and database user are created manually with the @@ -2805,8 +2734,8 @@ exit;
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
.
This task installs the mythtv-backend.service
file.
@@ -2875,8 +2804,8 @@ This task installs the mythtv-backend.service
file.
This task checks PHP's timezone. If unset, MythTV's backend logs @@ -2917,8 +2846,8 @@ bitter complaints.
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.
With MythTV built and installed, and the post-installation tasks
@@ -2983,12 +2912,12 @@ directory: /home/mythtv/Recordings
.
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.
In MythTV Setup:
@@ -3043,8 +2972,8 @@ any case, do not run mythfilldatabase
.
In MythTV Setup: @@ -3065,8 +2994,8 @@ channels is presented. Delete All unused transports.
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.
If the mythfilldatabase
command fails or expected listings do not
@@ -3191,8 +3120,8 @@ Running a similar command (without --quiet
) might be more revealing
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.
After configuring with mythtv-setup
as discussed above, start and
@@ -3246,8 +3175,8 @@ sudo -u mythtv mythfilldatabase
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.
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
.
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.
ansible.cfg
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/
.
hosts
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:
playbooks/site.yml
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.
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.
Institutional sub-commands:
@@ -3642,8 +3567,8 @@ and _architecture
for all hosts.
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
The script implements an upgrade
sub-command that runs apt update
@@ -3751,8 +3676,8 @@ a limit pattern. For example:
The script implements a reboots
sub-command that looks for
@@ -3783,8 +3708,8 @@ The script implements a reboots
sub-command that looks for
The script implements a versions
sub-command that reports the
@@ -3811,8 +3736,8 @@ operating system version of all abbey managed machines.
The abbey changes location almost weekly, so its timezone changes @@ -3910,8 +3835,8 @@ last host in the previous play.
abbey
my $ops = "config,new,old,pass,client,upgrade,reboots,versions,tz";
@@ -3921,8 +3846,8 @@ last host in the previous play.
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.
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:
The abbey's Raspberry Pi runs the Raspberry Pi OS desktop off an @@ -3983,8 +3908,8 @@ Ethernet, and power up.
sysadm
on the console.sudo raspi-config
and use the following menu items.
@@ -4003,14 +3928,14 @@ steps are taken.
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.
sysadm
on the console.Install OpenSSH. Plain Debian does not come with OpenSSH installed.
sudo apt install openssh-server
@@ -4050,14 +3975,14 @@ steps are taken.
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...
.
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
sysadm
on the console.
To remotely administer new-w
, Ansible must be authorized to login as
@@ -4225,11 +4150,11 @@ key.
-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.
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.
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
).
Wireless Debian desktops (with NetworkManager) as well as servers @@ -4434,8 +4359,8 @@ sudo systemctl enable wg-quick@wg0
Member notebooks are private machines not remotely administered by the
@@ -4547,8 +4472,8 @@ password is included in Secret/become.yml
.
Android phones and tablets are authorized to connect to the cloister @@ -4585,8 +4510,8 @@ public VPN.
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
.)