1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Compare commits

..

1239 commits

Author SHA1 Message Date
A Holt
423e21c52c
Merge pull request #3958 from holta/locale.conf
iiab-diagnostics: Also record /etc/locale.conf (e.g. for Debian 13 Trixie)
2025-03-01 11:58:31 -05:00
A Holt
96ddd6620d
iiab-diagnostics: Fix comments 2025-03-01 11:51:09 -05:00
A Holt
cb42942699
iiab-diagnostics: Clarify that Ubuntu too uses /etc/locale.conf 2025-03-01 11:46:21 -05:00
A Holt
ac12c6db0b
iiab-diagnostics.README.md: Update line number 2025-03-01 11:42:37 -05:00
A Holt
2461a8fde3
iiab-diagnostics: Also record /etc/locale.conf 2025-03-01 11:41:34 -05:00
A Holt
89b1487dc2
Update Nextcloud 31.0.0 disk footprint sizes 2025-02-27 15:40:39 -05:00
A Holt
8dac889ad9
Merge pull request #3957 from holta/ansible-core-2.18.3
Recommend ansible-core 2.18.3
2025-02-24 19:30:59 -06:00
A Holt
6d5fcdbcc2
Recommend ansible-core 2.18.3 2025-02-24 18:25:07 -06:00
A Holt
1308fb8670
Update Nextcloud 30.0.6 disk footprint sizes 2025-02-19 15:21:00 -05:00
A Holt
96324233d8
Clarify PR #3950: 'pip install psycopg' is NEW "Psycopg 3" for PostgreSQL 2025-02-17 04:21:44 -05:00
A Holt
e2c67e43f0
Merge pull request #3950 from holta/pip-installs-to-ansible-venv
pip install {pymysql, psycopg, passlib} to Ansible venv, on demand — to fix 6 IIAB Apps with new `interpreter_python=/usr/local/ansible/bin/python3` in ansible.cfg
2025-02-17 02:59:43 -06:00
A Holt
36e4322775
mysql/tasks/install.yml: Respect original typography 'PyMySQL' 2025-02-17 03:56:40 -05:00
root
957a89d67c pip install {pymysql,psycopg,passlib} to Ansible venv, on demand 2025-02-17 03:24:04 -05:00
A Holt
d1dd071c81
jupyterhub/tasks/install.yml: Mention disk footprint is ~316 MB 2025-02-16 22:02:54 -05:00
A Holt
f16bd2a6b5
jupyterhub/tasks/install.yml touchup: Comment out virtualenv_site_packages: no as tested on PR #3948 2025-02-16 15:02:50 -05:00
A Holt
b8555f86e1
Merge pull request #3948 from jvonau/jubhub
JupHub [JupyterHub fix & cleanup for Debian 13 Trixie, using full path to Python 3.13 in /opt/iiab/iiab/ansible.cfg]
2025-02-16 13:59:59 -06:00
Jerry Vonau
bbdd45365d update ansible.cfg for use with python3.13 2025-02-16 12:36:27 -06:00
Jerry Vonau
2ef96ad0ff jupyterhub drop python3-psutil 2025-02-16 02:49:09 -06:00
Jerry Vonau
66a35ee950 jupyterhub drop --system-site-packages 2025-02-16 02:42:17 -06:00
A Holt
e80b912eea
usb_lib/tasks/main.yml: Tiny comment update RE: iiab.conf.j2 2025-02-15 15:12:20 -05:00
A Holt
5267ef87a6
Merge pull request #3943 from avni/usb_lib_doc
usb_lib/tasks/main.yml: update USB_LIB description to be more clear
2025-02-15 13:59:54 -06:00
root
f52b390821 usb_lib/tasks/main.yml: updating USB_LIB description to be more clear about the two-way information/data exchange between teachers and students 2025-02-15 18:36:28 +00:00
A Holt
14d24fda49
Merge pull request #3942 from avni/jerry
usb_lib: building on to top of @jvonau's work in #3940. Using existence of /media to determine if a USB stick is mounted or not for both count and upload location; changing tabs to spaces for upload2usb.php
2025-02-14 16:18:30 -06:00
avni
fe6516b2e9
Add lockfile removal before exit in usbmount script per Jerry's recommendation.
Add lockfile removal before exit in usbmount script per Jerry's recommendation. Also adjusted spacing! 

Read up on file locking a bit: 
- https://www.baeldung.com/linux/file-locking
- https://linux.die.net/man/1/lockfile-create
2025-02-14 15:56:09 -05:00
root
a96b46c223 upload2usb/upload2usb.php: using existence of /media to determine if a USB stick is mounted or not for both count and upload location; changing tabs to spaces for the whole file 2025-02-13 15:50:02 -05:00
root
728704b250 Merge branch 'umnt3' of https://github.com/jvonau/iiab into jerry 2025-02-13 11:15:44 -05:00
Jerry Vonau
ebceb4a6ac upload2usb.php add 'grep media' to device filter 2025-02-12 13:28:05 -06:00
Jerry Vonau
bd8c131ef6 clearer dependencies 2025-02-12 11:45:04 -06:00
Jerry Vonau
52da42c146 touchups and ordering 2025-02-12 11:19:54 -06:00
Jerry Vonau
9a95a046c4 lockfile-remove for fstab check 2025-02-12 10:36:22 -06:00
Jerry Vonau
759126414e #set -e, lockfile-remove, typo, missing debug line 2025-02-12 10:26:21 -06:00
A Holt
cf606c417b
Merge pull request #3941 from avni/swinglink
upload2usb/header.php: update swing logo to point to /usb/
2025-02-12 09:11:45 -05:00
root
fda19ad7f9 upload2usb/header.php: update swing logo to point to /usb/ instead of /upload2usb/ 2025-02-12 02:18:16 -05:00
Jerry Vonau
9bc2006ba3 exclude usb based device that host usbbooted filesytems 2025-02-11 17:10:02 -06:00
A Holt
543a0e9b0e
Merge pull request #3939 from holta/force-link-to-usb
70-usb-library.j2: Forcibly delete e.g. stale symlink /library/www/html/local_content/USB0 during USB stick insertion
2025-02-11 11:38:10 -05:00
A Holt
1ec743a654
70-usb-library.j2: Fix logger string quotation marks 2025-02-11 10:42:05 -05:00
A Holt
94ca58aa0c
70-usb-library.j2: Cleaner logging & error handling (e.g. exit code 1) 2025-02-11 03:45:52 -05:00
A Holt
2398313918
70-usb-library.j2: Forcibly delete e.g. stale /library/www/html/local_content/USB0 2025-02-11 03:13:51 -05:00
A Holt
c2c36b178e
iiab-check-firmware: Mention 'sudo iiab-network' 2025-02-06 08:07:00 -06:00
A Holt
f084785452
Merge pull request #3932 from avni/rpi-automount-docs
usb_lib/README.rst, usb_lib/tasks/install.yml: docs on how to disable RPI Desktop auto-mount
2025-02-02 16:26:42 -05:00
A Holt
3596963d5c
Further update usb_lib/README.rst 2025-02-02 16:22:38 -05:00
A Holt
38a860d3c5
Update usb_lib/README.rst 2025-02-02 16:12:11 -05:00
root
8eed5e3fac usb_lib/README.rst, usb_lib/tasks/install.yml: Add docs on how to disable Desktop auto-mount functionality on RPi Desktop; other minor doc cleanup 2025-02-02 20:44:02 +00:00
A Holt
11f65e7689
Merge pull request #3931 from holta/tz-hack
Restore both GitHub Actions workflows simulating Raspberry Pi
2025-02-01 09:35:27 -05:00
A Holt
fb787e0649
Update USB_LIB description for iiab.ini 2025-02-01 01:24:47 -05:00
A Holt
f22ba85c49
php-settings.yml: More complete shell hack, equiv to timedatectl 2025-02-01 00:54:47 -05:00
A Holt
c975dd21fc
php-settings.yml: TZ hack that avoids systemd, for GHA 2025-02-01 00:35:54 -05:00
A Holt
810c70e85b
Merge pull request #3930 from holta/detected_network-touchups
Invert rejected country red error; Clarify 3 channel / WiFi country code vars for iiab.ini (in detected_network.yml)
2025-01-31 05:25:55 -05:00
A Holt
b6b2f3a0d7
usbmount copyright URL clarifs for PR #3929 2025-01-31 04:24:07 -05:00
root
3077a39cd6 Invert rejected country red error; Clarify 3 channel/country vars for iiab.ini 2025-01-31 04:08:33 -05:00
A Holt
073939a542
Merge pull request #3929 from holta/usbmount-refine
usb_lib and usbmount refinements built on PR #3916
2025-01-31 03:38:52 -05:00
root
6b4b94dae2 usb_lib / usbmount: Refine, lint, clarify 2025-01-31 01:41:23 -05:00
A Holt
7e56a53549
Merge pull request #3928 from jvonau/race
delay hostapd to allow ap0 to stabilize
2025-01-30 22:08:22 -05:00
Jerry Vonau
80bdfc677e
Update roles/usb_lib/tasks/install.yml
missed during rebase

Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-30 14:13:26 -06:00
Jerry Vonau
97eeae4845 wording 2025-01-30 14:07:51 -06:00
Jerry Vonau
78924e84ba create /media/usb0-7 2025-01-30 13:53:05 -06:00
Jerry Vonau
0dec3fe810 indent 2025-01-30 13:51:28 -06:00
Jerry Vonau
eca12605b9 forgot the dependencies 2025-01-30 13:51:28 -06:00
Jerry Vonau
daa3deb034 Update roles/usb_lib/templates/iiab-clean-usb.sh
to restore previous search-ability

Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-30 13:51:28 -06:00
Jerry Vonau
190d66409f Update roles/usb_lib/templates/iiab-clean-usb.sh
to restore previous search-ability

Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-30 13:51:28 -06:00
root
76d5b5fc17 usb_lib: Minor whitespace typos 2025-01-30 13:51:24 -06:00
Jerry Vonau
e6051088fc RuntimeDirectory=usbmount 2025-01-30 13:50:00 -06:00
Jerry Vonau
34b4a8a7ad ConditionPathExists=/var/run 2025-01-30 13:50:00 -06:00
Jerry Vonau
640ab00d26 update iiab-clean-usb.sh 2025-01-30 13:49:56 -06:00
Jerry Vonau
257dc008ec bump number of lock tries 2025-01-30 13:43:32 -06:00
Jerry Vonau
60ca24d63a replace deb with local files 2025-01-30 13:43:32 -06:00
Jerry Vonau
f58ef26768 just exit to quite down systemd logging of umount failed on stuff we don't care about 2025-01-30 13:43:32 -06:00
Jerry Vonau
a5af8c89d4 move mkdir and copyright 2025-01-30 13:43:32 -06:00
Jerry Vonau
36485a109d turn on debug 2025-01-30 13:43:32 -06:00
Jerry Vonau
229a913ba4 filesystems supported 2025-01-30 13:43:32 -06:00
Jerry Vonau
57fa6bb08f Files from usbmount_0.0.22_all.deb 2025-01-30 13:43:28 -06:00
Jerry Vonau
6c5b4c35ec delay hostapd to allow ap0 to stabilize 2025-01-30 12:24:44 -06:00
A Holt
18c287fe27
Merge pull request #3925 from jvonau/1520
1520 [systemctl daemon_reload if not no_net_restart or...]
2025-01-30 12:27:04 -05:00
A Holt
4e7541fc1e
usb_lib/README.rst: Punctuation cleanup & link to PR #3916 WIP 2025-01-29 14:00:56 -05:00
A Holt
519daacc2a
iiab-network: Run Ansible with --extra-vars "{\"skip_role_on_error\":false}" 2025-01-29 11:05:07 -05:00
A Holt
0c0045f1c8
Merge pull request #3923 from holta/pp
Replacement for PR #3915, cleaning up merge conflict mess [prevent cheating (copying) of usb_lib homework uploads]
2025-01-29 04:50:50 -05:00
A Holt
078bab6d15
Merge pull request #3913 from avni/renamevar
vars/* and usb_lib/*: rename usb_lib_umask0000_for_kolibri
2025-01-29 04:50:37 -05:00
A Holt
4da759a84b
php-settings.yml: Note lack of systemd on chroot GHA runners for RPi 2025-01-29 03:43:03 -05:00
A Holt
668d57cb97
php-settings.yml; Fix typo in TZ explanation (PR #3927, GHA) 2025-01-29 02:26:49 -05:00
A Holt
3bccc1f452
Merge pull request #3927 from holta/php-defaults-way-too-low
PHP's own defaults are Way Too Low, so run www_options/tasks/php-settings.yml every time
2025-01-29 01:46:10 -05:00
A Holt
957cf6976a
PHP defaults TOO LOW, so run www_options/tasks/php-settings.yml every time 2025-01-29 01:20:22 -05:00
A Holt
2d412405fa
Merge pull request #3926 from holta/iiab-diagnostics_locale
iiab-diagnostics: 3 commands to record locale info
2025-01-29 00:54:48 -05:00
A Holt
18efafc23e
iiab-diagnostics.README.md: Update lines numbers 2025-01-29 00:53:18 -05:00
A Holt
16b745d734
iiab-diagnostics: 3 commands to record locale info 2025-01-29 00:42:08 -05:00
Jerry Vonau
00d45099ea 1520 2025-01-28 11:25:04 -06:00
root
f5e2f4ad79 usb_lib/tasks/install.yml: Resolve merge conflict w/ PR #3919 2025-01-27 20:17:44 -05:00
A Holt
178134ba36
Merge pull request #3922 from holta/ansible-core-2.18.2
Recommend ansible-core 2.18.2
2025-01-27 15:56:31 -05:00
A Holt
765d7854c3
Recommend ansible-core 2.18.2 2025-01-27 15:45:34 -05:00
A Holt
e57ea34590
Merge pull request #3919 from avni/u2u25
upload2usb: moving app out of local_content, relaxing mime type requirements, link swing back to homepage
2025-01-26 22:09:59 -05:00
root
c49c7b0d8d usb_lib/files/upload/upload2usb.php: allow zip files given some MacOS files, e.g., Pages files, have a mimetype of application/aip 2025-01-26 21:26:16 -05:00
root
48f4fc56f8 usb_lib/files/upload/header.php: link swing image back to upload2usb main page 2025-01-26 21:20:12 -05:00
root
fb07b9e3e5 nginx/templates/iiab.conf.j2, usb_lib/files/upload/header.php, usb_lib/tasks/install.yml: move app out of local_content and into /library/www/html/ 2025-01-26 21:18:30 -05:00
A Holt
8cbcff710e
Merge pull request #3918 from avni/uf-fix
upload/upload-file.php: fix var name bug and add better error handling
2025-01-26 10:56:08 -05:00
avni
1795276b20 upload/upload-file.php: fix var name bug and add better error handling 2025-01-26 16:36:43 +01:00
A Holt
7812edfed0
Fix 2 typos (explanation of when: not usb_lib_writable_sticks) 2025-01-26 09:32:49 -05:00
A Holt
cea4cac7f2
Clarify reset of FS_MOUNTOPTIONS in /etc/usbmount/usbmount.conf, if usb_lib_writable_sticks False 2025-01-26 09:28:48 -05:00
A Holt
d4e66748f3
usb_lib/install.yml: Clarify usb_lib_writable_sticks and umask=0000 2025-01-26 00:42:32 -05:00
avni
5663a84d27
70-usb-library.j2: update comment explaining PUBLIC folder better (from @holta)
Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 23:57:27 -05:00
avni
920235d54c 70-usb-library.j2: use findmnt instead of UM_DEVICE from usbmount to find device given the missing leading /; adding comment about public folder 2025-01-26 04:41:10 +01:00
avni
27e286b8ae
70-usb-library.j2: comm
Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 20:55:13 -05:00
A Holt
425cbf494c
iiab-clean-usb.sh: $() instead of `` for command substitution 2025-01-25 20:54:32 -05:00
avni
cd160da679
70-usb-library.j2: syntax change to CONTENT_LINK_USB var
Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 20:52:04 -05:00
avni
2401ff3d60
70-usb-library.j2: Add additional logging of lib/root/boot mount points
Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 20:49:12 -05:00
A Holt
d0a00da601
usb_lib/README.rst: Clarify usbmount supported filesystems line 2025-01-25 20:08:37 -05:00
avni
427dc57ed0
70-usb-library.j2: revert duplicate comment
Revert duplicate comment

Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 17:45:54 -05:00
avni
2462bba6f5
70-usb-library.j2: Fix symlink from/to in comment
Thank you!

Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 17:45:11 -05:00
avni
64756b6772
Update roles/usb_lib/templates/mount.d/70-usb-library.j2
Add thanks and reference to PR #3254

Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 17:35:43 -05:00
avni
18c5fe711d
Update roles/usb_lib/templates/mount.d/70-usb-library.j2
Add thanks and reference to PR #3254

Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 17:30:14 -05:00
avni
f9538a4834
mount.d/70-usb-library.j2: move lib/root/boot check above check for PUBLIC dir
Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 17:04:46 -05:00
avni
341df04d90 Merge branch 'pp' of https://github.com/avni/iiab into pp 2025-01-25 22:44:19 +01:00
avni
13f5227824 vars/local_vars*, vars/default_vars.yml, roles/usb_lib/tasks/main.yml: reverting comment of iiab_usb_lib_show_all 2025-01-25 22:39:00 +01:00
avni
6562a4a12d
70-usb-library.j2: remove blank at EOF
Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-25 16:02:01 -05:00
root
d15493b399 Begin to remove iiab_usb_lib_show_all and IIAB_USB_LIB_SHOW_ALL 2025-01-25 15:47:56 -05:00
root
fe633b2cd7 Upload2USB initial doc cleanup 2025-01-25 15:36:05 -05:00
avni
7c2f0c9c6e usb_lib/*, vars/*: prevent Cheating (Copying) of homeworks, when teacher creates 'PUBLIC' folder on their USB stick 2025-01-25 21:30:36 +01:00
avni
44e2772ccc
Update README to clarify Kolibri exports 2025-01-25 09:44:02 -05:00
A Holt
b0ef084ac8
Merge pull request #3914 from avni/updateerror2
error.php: updating FAQ reference to refer to new upload2usb FAQ
2025-01-25 08:26:19 -05:00
avni
286890b0d0 error.php: updating FAQ reference to refer to new upload2usb-specific FAQ. 2025-01-25 08:14:44 +01:00
avni
3b9edfdfc0 multiple files in vars/ and usb_lib/: rename usb_lib_umask0000_for_kolibri to usb_lib_writable_sticks so it is more generally applicable 2025-01-25 07:13:09 +01:00
A Holt
a20aebf9c2
Merge pull request #3911 from jvonau/usbmount
use systemd-udev-trigger.service BUGFIX
2025-01-24 12:13:29 -05:00
A Holt
ae1ecdfd89
Merge pull request #3908 from jvonau/dmesg
detect Firmware rejected country setting
2025-01-24 10:07:18 -05:00
A Holt
eecf6f8306
Wifi Country Code might in the middle of dmesg line (not on the right) 2025-01-24 10:06:30 -05:00
Jerry Vonau
e319b394e8
Update roles/network/tasks/detected_network.yml
future proof

Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-24 08:14:42 -06:00
Jerry Vonau
dcc9862527 use systemd-udev-trigger.service 2025-01-23 15:36:19 -06:00
Jerry Vonau
9991273391 grep & stdout 2025-01-23 12:36:55 -06:00
A Holt
dd4a9088b4
Merge pull request #3875 from avni/master
Initial commit of upload2usb App for homework assignments for students and teachers worldwide! [and, upload photos/projects to community's USB stick]
2025-01-23 09:44:06 -05:00
Jerry Vonau
eb21c8654a UNSET 2025-01-23 06:45:38 -06:00
Jerry Vonau
0cc63d8895 detect cmdline country code passed 2025-01-23 02:38:56 -06:00
avni
6dfda009e4 upload2usb.php: allow all word files, be more specific about xml mimetypes; log error message if user uploads invalid mimetype 2025-01-23 06:51:43 +01:00
avni
68dafdbc39 button.html: change button href to point to /usb/upload instead of /local_content/upload 2025-01-23 06:27:32 +01:00
avni
91533f5fb3 iiab.conf.j2: modify config to route /usb/upload/*.php to the upload2usb app! 2025-01-23 06:19:25 +01:00
avni
ad175fb3ca index.php, upload-file.php: change 'submit' to 'upload' in user-facing text 2025-01-23 06:19:13 +01:00
A Holt
89a06d6e5e
Update iiab-diagnostics.README.md for PR #3909 2025-01-22 18:26:43 -05:00
A Holt
b6153b9a05
Merge pull request #3909 from holta/iiab-diagnostics_dmesg_fixes
iiab-diagnostics: Refine 3+ 'sudo dmesg | grep ...' cmds
2025-01-22 18:20:26 -05:00
A Holt
765e1cd4b1
iiab-diagnostics: Use sudo with journalctl (in all 6 cases_ 2025-01-22 17:42:56 -05:00
A Holt
01baaa661a
iiab-diagnostics: Refine 3+ 'sudo dmesg | grep ...' cmds 2025-01-22 16:53:44 -05:00
avni
335d8ad4c1 nginx/templates/iiab.conf.j2, usb_lib/files/upload/button.html: Adding button to upload2usb app on every usb/ directory listing page. 2025-01-22 10:22:38 +01:00
avni
f79a43e305 install.yml: merging comments related to usb_lib_umask0000_for_kolibri 2025-01-22 10:16:21 +01:00
avni
024defc89c install.yml: merging umask comments 2025-01-22 05:40:55 +01:00
Avni Khatri/Fein
0caa16491d
install.yml: adding e.g. to make clear that variable doesn't have to be in local_vars.yml" roles/usb_lib/tasks/install.yml
Co-authored-by: A Holt <holta@users.noreply.github.com>
2025-01-21 23:27:45 -05:00
avni
f15a50610e install.yml: Adding instructions on how to unmount and mount drive manually if writing to the USB stick still doesn't work. 2025-01-22 05:18:41 +01:00
Jerry Vonau
0994a5786d detect Firmware rejected country setting 2025-01-20 08:53:25 -06:00
A Holt
8e7888a51a
Merge pull request #3905 from jvonau/hotspot-on-off
replace is_raspbian with dhcpcd_result == enabled
2025-01-19 15:51:02 -05:00
avni
e4bdc4ddab install.yml: add comment that usb_lib_umask0000_for_kolibri must be set to true in order to write to USB sticks. 2025-01-19 09:04:01 +01:00
avni
9426e6ac98 upload-file.php: throw error when user uploads a file that has the same content and name as an already uploaded file on the same day. 2025-01-19 08:21:27 +01:00
Jerry Vonau
f60a61ea4b replace is_raspbian with dhcpcd_result == enabled 2025-01-18 14:04:33 -06:00
A Holt
0cdf077113
Merge pull request #3902 from holta/revert-arm-ci-to-ubuntu-2204
GitHub Actions CI: Revert ARM tests to run on Ubuntu 22.04 (for now)
2025-01-18 02:50:44 -05:00
root
6f63de1622 Clarify & tighten up all 3 GHA workflow names (titles) 2025-01-18 02:42:28 -05:00
root
66fd7fad39 Cleaner 30min-iiab-test-install-raspios-on-zero2w.yml 2025-01-18 01:46:50 -05:00
root
d6b7114afc CI: Revert ARM tests to run on Ubuntu 22.04 for now 2025-01-18 01:35:36 -05:00
A Holt
cb0788b7ba
Merge pull request #3901 from holta/iiab-diagnostics_cleaner_cmd-not-found
iiab-diagnostics: Cleaner output if COMMAND NOT FOUND
2025-01-18 00:24:36 -05:00
root
803197e817 iiab-diagnostics.README.md: Update key line numbers 2025-01-18 00:23:47 -05:00
root
a81856db5d iiab-diagnostics: Cleaner output if COMMAND NOT FOUND 2025-01-18 00:09:09 -05:00
avni
271da50114 upload-file.php: Allow upload of redundant files 2025-01-17 23:03:01 +01:00
A Holt
e2113c5da0
Merge pull request #3899 from holta/iiab-diagnostics-wifi-etc
iiab-diagnostics: A bit more logging around wpa_supplicant, NetworkManager, dmesg | grep Firmware, rpi-eeprom-update to show bootloader version
2025-01-17 13:18:12 -05:00
A Holt
d09842245b
iiab-diagnostics: Clarify RPi WiFi firmware / HW models 2025-01-17 13:09:48 -05:00
A Holt
720e328ab6
iiab-diagnostics: Cap NetworkManager logging at 100 lines for now 2025-01-17 10:55:43 -05:00
A Holt
59f1d1b090
iiab-diagnostics: rpi-eeprom-update to show bootloader version 2025-01-17 10:23:36 -05:00
A Holt
ebbe9c066e
iiab-diagnostics: wpa_supplicant, NetworkManager, dmesg | grep Firmware 2025-01-17 10:16:37 -05:00
avni
f8b743dafc error.php, index.php, upload-file.php, upload2usb.php: Updating error message to refer to FAQs, titles to be more succinct, adding exception when directory can't be created. 2025-01-17 09:34:15 +01:00
A Holt
c00ceb7f2a
Merge pull request #3892 from jvonau/wpa
don't restart wpa_supplicant when network_manager_active is set
2025-01-16 14:47:25 -05:00
A Holt
c2046a1a91
Merge pull request #3891 from jvonau/firmware
Firmware [WiFi]
2025-01-16 10:01:38 -05:00
A Holt
a5e90f6511
network/tasks/main.yml: Blank line 2025-01-16 09:54:44 -05:00
A Holt
ca22622c7d
detected_network.yml: Record WiFi firmware vars (43430 & 43455) 2025-01-16 09:51:32 -05:00
Jerry Vonau
d52fe013cd don't restart wpa_supplicant when network_manager_active is set 2025-01-16 07:07:51 -06:00
Jerry Vonau
3bb41e2e07 move firmware replacement 2025-01-15 04:43:20 -06:00
Jerry Vonau
a16be49be5 add recording of firmware selection and force wifi_up_down false when required 2025-01-15 04:43:20 -06:00
Tim Moody
0c4df6c42c
Merge pull request #3889 from tim-moody/8.2.3-www-data
set www_data poweroff false with rename
2025-01-14 11:44:54 -05:00
A Holt
d3730b9494
Merge pull request #3886 from jvonau/HT-new2
dont start hostapd when no_net_restart is True
2025-01-13 22:20:39 -05:00
A Holt
3fa91b821a
Merge pull request #3885 from jvonau/HT-new
Ht new
2025-01-13 22:20:20 -05:00
A Holt
2981a7deaa
hostapd.yml: "Disable the Access Point 'hostapd' service if hostapd_enabled False" 2025-01-13 22:19:43 -05:00
tim-moody
e75a8e5449 set www_data poweroff false with rename 2025-01-13 19:43:02 -05:00
A Holt
34326f7318
Merge pull request #3887 from jvonau/tailscale
deal with tailscale0
2025-01-13 18:33:57 -05:00
Jerry Vonau
fb008640ef deal with tailscale0 2025-01-13 17:17:58 -06:00
Jerry Vonau
a9c916e219 dont start hostapd when no_net_restart is True 2025-01-13 17:10:56 -06:00
Jerry Vonau
fa8cc5637e move channel detection also 2025-01-13 17:06:19 -06:00
Jerry Vonau
9391d37f40 move country code detection 2025-01-13 17:06:19 -06:00
Jerry Vonau
917c6840d6 better visual feedback when running 2025-01-13 17:06:19 -06:00
avni
312ddce9ec Adding PR number to beginning of upload2usb block 2025-01-12 12:07:37 +01:00
avni
30f940a5f4 error.php, header.php, footer.php - Add custom exception handling, header, footer; index.php, upload-file.php, upload-2-usb.php - Require exactly 1 USB stick to be inserted, allow same file name but different content (using incremental numbering), reject duplicate content, restrict file types 2025-01-12 12:04:47 +01:00
avni
956257f6cb usb_lib/upload/*.php, usb_lib/tasks/install.yml: Moving app from upload2usb/ to upload/; Fixing UK image on upload-file page; Minor formatting changes 2025-01-08 11:45:00 +01:00
A Holt
1da4d45509
Update LICENSING.md 2025-01-06 00:29:57 -05:00
A Holt
6fe7b11511
Merge pull request #3879 from avni/usbcup
usb_lib/templates/content_dir.conf.unused: mark unused [Apache] file as such
2025-01-06 00:23:54 -05:00
root
8fb5656189 usb_lib/templates/content_dir.conf.unused: rename unused file 2025-01-05 23:43:52 -05:00
avni
99ff433a90 usb_lib/files/upload2usb/*: renaming app to Upload To USB instead of HW Submission, other minor cleanup/styling 2025-01-06 04:48:19 +01:00
avni
2706381a38 usb_lib/tasks/install.yml: Fixing yaml so upload2usb directory is created before files are copied 2025-01-06 04:46:28 +01:00
avni
8d167ab981 roles/usb_lib/tasks/install.yml: Add yaml to copy upload2usb app files to local_content folder 2025-01-06 01:12:24 +01:00
root
8d0f45bd4d Initial commit(x3) of Upload2USB stick app: 3 *.php files + UK logo 2025-01-05 16:35:38 -05:00
A Holt
886e98c0cb
Merge pull request #3874 from holta/launch-8.3-cycle
default_vars.yml: Launch 8.3 Release Cycle
2025-01-01 01:22:01 -05:00
A Holt
59956f2a91
default_vars.yml: Launch 8.3 Release Cycle 2024-12-31 22:20:48 -05:00
A Holt
b4319bf787
Merge pull request #3873 from holta/mediawiki-1.43.0
New MediaWiki 1.43.0 LTS
2024-12-31 22:00:14 -05:00
A Holt
3ebf210c99
New MediaWiki 1.43.0 LTS 2024-12-31 21:56:16 -05:00
A Holt
150c14ab54
Merge pull request #3872 from avni/patch-2
Update iiab-vpn to fix ANSI color codes on macOS and change text color on blue bg
2024-12-28 16:34:54 -05:00
Avni Khatri/Fein
1950a5ba6d
Update iiab-vpn to fix ANSI color codes on OSX and change text color on blue bg.
- Update iiab-vpn to fix ANSI color codes on OSX by using \033 instead of \e
- Change text color to light gray when using blue bg
2024-12-28 15:59:56 -05:00
A Holt
afa8ae0eeb
roles/usb_lib/README.rst: Fix 2 URLs 2024-12-22 13:44:30 -05:00
A Holt
6a6030b40b
Merge pull request #3870 from holta/mediawiki-1.42.4
New MediaWiki 1.42.4
2024-12-21 10:16:00 -05:00
A Holt
079c7f5fa2
New MediaWiki 1.42.4 2024-12-21 10:11:53 -05:00
Tim Moody
04e02587c5
Merge pull request #3869 from tim-moody/8.2.1-www-data
rename apache_allow_sudo and make True default
2024-12-21 08:16:38 -05:00
A Holt
6b96085050
iiab-vpn: Update 3 Headscale doc URLs (Android, Apple, Windows) 2024-12-19 23:26:00 -05:00
tim-moody
3c32db26bd rename apache_allow_sudo and make True default 2024-12-19 14:28:03 -05:00
A Holt
d886f39bbf
Merge pull request #3867 from holta/wifi-unblock
Refine PR #3866 to unblock WiFi hotspot on newer RasPiOS with NM (NetworkManager)
2024-12-19 12:52:12 -05:00
A Holt
1c9a784d2a
WiFi unblock via "rpi_debian.yml wasn't enough, especially with NM" 2024-12-18 22:59:25 -05:00
root
4a3e9517dc Clarify 'raspi-config nonint do_wifi_country XX' 2024-12-18 19:55:14 -05:00
Jerry Vonau
6a6d153034 deal with unblocking wifi while NM is active on newer RaspiOS 2024-12-18 08:47:43 -06:00
A Holt
299228e31e
Merge pull request #3865 from holta/rfkill-unblock-wifi
rpi_debian.yml: rfkill unblock wifi
2024-12-17 08:26:00 -05:00
A Holt
f722cd783e
rpi_debian.yml: rfkill unblock wifi 2024-12-17 00:04:20 -05:00
A Holt
b8a868e231
Fix Ansible comment RE: python3-netifaces (PR #3852) 2024-12-16 22:25:36 -05:00
A Holt
5665b68b13
Merge pull request #3864 from holta/imagemagick-7
Bypass /etc/ImageMagick-6/policy.xml PDF surgery w/ ImageMagick 7+
2024-12-16 21:44:42 -05:00
A Holt
9db5dbe3a4
Merge pull request #3862 from deldesir/deldesir-patch-5
Check if older version of 'library' (xklb) is installed
2024-12-16 21:40:34 -05:00
A Holt
f244669068
Merge pull request #3852 from jvonau/calweb-no-netif
drop netifaces workaround - replaced with netifaces-plus
2024-12-16 21:40:25 -05:00
A Holt
8b5ea641d4
Bypass /etc/ImageMagick-6/policy.xml PDF surgery w/ ImageMagick 7+ 2024-12-16 21:30:00 -05:00
A Holt
9e235424dc
Merge pull request #3863 from holta/asterisk-22
Asterisk 22 (instead of 21, tested on Debian 13)
2024-12-16 18:43:35 -05:00
root
325d27a32b Asterisk 22 (instead of 21, tested on Debian 13) 2024-12-16 18:37:47 -05:00
Blondel MONDESIR
943dcccf7d
Make yt-dlp symlink failsafe 2024-12-16 07:31:07 -05:00
Blondel MONDESIR
7f37ccd8db
Remove grep step 2024-12-16 07:25:06 -05:00
Blondel MONDESIR
58c5e8e71f
Enhance library existence check 2024-12-15 22:00:40 -05:00
Blondel MONDESIR
59470cd134
Update install.yml to check if older xklb is present 2024-12-15 21:42:07 -05:00
Blondel MONDESIR
577a8f171f
Ensure script continues even if 'library' is not installed 2024-12-15 21:20:52 -05:00
Blondel MONDESIR
ad57789c65
Check if older version of 'library' (xklb) is installed 2024-12-15 21:00:30 -05:00
A Holt
0bf49da18b
Merge pull request #3860 from holta/xklb-rename-to-library
Rename `xklb` to `library` for pipx
2024-12-13 18:58:52 -05:00
A Holt
9dfaccef74
scripts/iiab-update: Rename xklb to library for pipx 2024-12-13 18:50:35 -05:00
A Holt
e2d646ee18
calibre-web/tasks/install.yml: Rename xklb to library for pipx 2024-12-13 18:48:37 -05:00
A Holt
8a9945f014
Merge pull request #3859 from holta/labwc
Permit autostart of Chrome browser & pop-up warnings {iiab-netwarn, iiab-pwdwarn-labwc} w/ compositor labwc (no longer Wayfire) on new Raspberry Pi OS
2024-12-12 17:57:03 -05:00
root
36a5cd458f Parallelize 3 autostart cmds in ~/.config/labwc/autostart 2024-12-12 23:51:09 +01:00
root
ae40f78d23 Put iiab-netwarn & iiab-pwdwarn-labwc in ~/.config/labwc/autostart 2024-12-12 22:54:44 +01:00
root
7544b79285 Enact Chrome browser autostart w/ compositor labwc (no longer wayfire) for RasPiOS 2024-12-12 22:19:27 +01:00
A Holt
adfc1cc696
RasPiOS compositor change (wayfire to labwc) so Chrome browser autostart needs work 2024-12-09 13:44:56 -05:00
A Holt
01304ab133
Nextcloud 30.0.4 disk footprint estimates 2024-12-09 13:14:53 -05:00
Jerry Vonau
0e68361814 drop netifaces workaround - replaced with netifaces-plus 2024-12-08 12:08:42 -06:00
A Holt
5e818c9fd1
Merge pull request #3848 from holta/ansible-core-2.18.1
Recommend ansible-core 2.18.1
2024-12-02 13:07:42 -05:00
A Holt
c16d76ac29
MIN_ANSIBLE_VER=2.16.14 2024-12-02 12:59:26 -05:00
A Holt
676f3eebef
Recommend ansible-core 2.18.1 2024-12-02 12:58:02 -05:00
A Holt
537c6a84c2
Update README.md 2024-11-19 17:04:54 -05:00
A Holt
defa139a34
Update CONTRIBUTING.md 2024-11-19 17:00:50 -05:00
A Holt
123a0cc5f1
Update README.md link to RENAMED Contributors Guide 2024-11-19 11:39:41 -05:00
A Holt
750c15ade1
Update CONTRIBUTING.md link 2024-11-19 11:38:15 -05:00
A Holt
72ff97ef9f
Merge pull request #3845 from holta/transmission-bug-ongoing-on-2504
Defer initial install of Transmission... on Ubuntu 25.04 too!
2024-11-16 18:22:22 -05:00
A Holt
13557b1172
Defer install of Transmission on Ubuntu 25.04 too 2024-11-16 18:17:35 -05:00
A Holt
0554e48f81
Merge pull request #3844 from holta/lokole-unmaintained-warnings
Mention that Lokole in UNMAINTAINED (in 5 local_vars.yml files)
2024-11-09 10:46:19 -05:00
A Holt
a646a45aea
local_vars_large.yml: Mention that Lokole is UNMAINTAINED 2024-11-09 10:43:23 -05:00
A Holt
aae6729632
local_vars_medium.yml: Mention that Lokole is UNMAINTAINED 2024-11-09 10:43:08 -05:00
A Holt
7b63f0b30e
local_vars_small.yml: Mention that Lokole is UNMAINTAINED 2024-11-09 10:42:49 -05:00
A Holt
1234d11630
local_vars_unittest.yml: Mention that Lokole in UNMAINTAINED 2024-11-09 10:42:28 -05:00
A Holt
6f7855f3d9
default_vars.yml: Mention that Lokole in UNMAINTAINED 2024-11-09 10:42:09 -05:00
A Holt
baecd48c7c
Merge pull request #3843 from holta/gha-tmp-hack-forcing-u2404
10min-iiab-test-install.yml: Tmp GHA hack using ubuntu-24.04 [and recommend ansible-core 2.18.0]
2024-11-08 19:39:33 -05:00
A Holt
abe1895024
Recommend ansible-core 2.18.0 2024-11-08 19:31:06 -05:00
A Holt
8ff3c7c221
10min-iiab-test-install.yml: Tmp GHA hack using ubuntu-24.04 2024-11-08 19:27:32 -05:00
A Holt
9d8637abda
Merge pull request #3842 from holta/MIN_ANSIBLE_VER
ansible-core 2.15 EOL November 2024, MIN_ANSIBLE_VER=2.16.13
2024-11-08 15:44:26 -05:00
A Holt
129f284286
2.15 EOL November 2024, MIN_ANSIBLE_VER=2.16.13 2024-11-08 15:42:08 -05:00
A Holt
8cb5a79933
Merge pull request #3828 from holta/u2504
Ubuntu 25.04 pre-release testing + actively discourage 3 old OS's
2024-11-08 15:18:47 -05:00
A Holt
d13110d2f3
Merge pull request #3838 from holta/tailscale-tab-completion-fix
Fix tailscale tab completion, when /etc/bash_completion.d does not yet exist
2024-10-28 12:47:28 -06:00
A Holt
0616e1c097
Fix tailscale tab completion (mkdir -p /etc/bash_completion.d) 2024-10-28 14:33:41 -04:00
A Holt
763fe075ac
Merge pull request #3837 from holta/revert_python3-cryptography
Revert PR #3815: python3-cryptography no longer needed
2024-10-27 10:29:48 -06:00
A Holt
ef868120a1
Revert PR #3815: python3-cryptography no longer needed 2024-10-27 10:19:18 -06:00
Tim Moody
1d9c0199cb
Merge pull request #3835 from tim-moody/zimit
only support versioned zims if have YYYY-MM ending
2024-10-23 10:27:15 -04:00
tim-moody
965d494412 only support versioned zims if have YYYY-MM ending 2024-10-23 09:25:13 -04:00
A Holt
759ebb48dd
iiab-vpn: Revert 018b0d2, as online/offline colors failed on some terminals 2024-10-18 08:24:47 -04:00
A Holt
018b0d21b8
PR #3834: Tighten iiab-vpn output of online/offline 2024-10-18 00:07:22 -04:00
A Holt
735683f509
Merge pull request #3834 from holta/iiab-vpn_status5
Fix iiab-vpn output, when tag:username is missing from any Tailscale peer/node (IP address) — avoiding jq error "Cannot iterate over null (null)"
2024-10-17 15:34:34 -04:00
A Holt
f00f225e28
iiab-vpn: Fix PR #3813 output, when Tailscale tag is missing 2024-10-17 15:22:57 -04:00
A Holt
ec348fcc02
moodle/defaults/install.yml: 4.6dev -> 5.0dev for #3826 2024-10-15 21:36:33 -04:00
A Holt
75f9f61358
moodle/defaults/main.yml: 4.6dev -> 5.0dev for #3826 2024-10-15 21:35:47 -04:00
A Holt
194ac9b469
README.md: Mention 50+ FAQ.IIAB.IO questions + answers 2024-10-12 21:48:14 -04:00
A Holt
5a9b929901
Merge pull request #3829 from holta/iiab-summary_vpn_cleanup
iiab-summary: Clean output, when tailscale has no IP
2024-10-11 14:57:28 -04:00
A Holt
aedc893bd1
iiab-summary: Clean output, when tailscale has no IP 2024-10-11 14:49:58 -04:00
root
d07ae98898 Ubuntu 25.04 pre-release testing; Discourage 3 old OS's 2024-10-11 01:46:02 -04:00
A Holt
3651ac666e
Merge pull request #3826 from holta/moodle-4.5
New Moodle 4.5 LTS
2024-10-09 00:52:50 -04:00
A Holt
4be68d3ac1
moodle/tasks/install.yml: Revise disk footprint estimates 2024-10-09 00:51:57 -04:00
A Holt
49d7160116
moodle/defaults/main.yml: Install 4.5 LTS by default, or... 2024-10-09 00:27:55 -04:00
A Holt
ab8c071374
moodle/tasks/install.yml: Install 4.6dev if PHP >= 8.4 2024-10-09 00:25:05 -04:00
A Holt
b91e953444
Merge pull request #3825 from holta/ansible-core-2.17.5
Recommend ansible-core 2.17.5
2024-10-07 16:03:58 -04:00
A Holt
8e09f02bed
Recommend ansible-core 2.17.5 2024-10-07 15:47:00 -04:00
A Holt
ccf87c8b90
iiab-diagnostics: Note https://temp.sh for pastebin-like large file xfer 2024-10-02 21:07:50 -04:00
A Holt
07cf519467
Merge pull request #3818 from holta/wireless-tools_dying
RIP apt package `wireless-tools` (Ansible output will auto-highlight distros that increasingly deprecate it, to help us monitor Debian 13/14/etc)
2024-10-02 17:09:08 -04:00
root
297afc3b72 RIP apt package 'wireless-tools' (or Debian 13+ might keep it?) 2024-10-02 16:49:25 -04:00
A Holt
ace3b3df32
Merge pull request #3817 from holta/unittest_faster_without_network
local_vars_unittest.yml: SKIP roles/network, for FASTER UNIT TESTING
2024-10-02 13:37:59 -04:00
A Holt
e7eb246a1d
local_vars_unittest.yml: SKIP roles/network, for FASTER UNIT TESTING 2024-10-02 13:24:45 -04:00
A Holt
b7b1b59763
Merge pull request #3815 from deldesir/deldesir-patch-3
Experimenting with various apt package installs [e.g. python3-cryptography, so Calibre-Web unit test works on Raspberry Pi OS]
2024-10-02 09:24:16 -04:00
A Holt
8493040b96
Merge pull request #3816 from holta/iiab-update_tailscale_too
scripts/iiab-update: Also update /usr/bin/iiab-vpn
2024-10-01 20:20:03 -04:00
root
c7b566418b scripts/iiab-update: Also update /usr/bin/iiab-vpn 2024-10-01 19:58:33 -04:00
A Holt
23e92b5853
calibre-web/tasks/install.yml: Mention iiab/calibre-web#260 2024-10-01 18:52:20 -04:00
A Holt
1f75537309
calibre-web/tasks/install.yml: Explain python3-cryptography 2024-10-01 17:59:46 -04:00
Blondel MONDESIR
526dc22fb8
Make calibre-web role install cryptography 2024-10-01 16:39:22 -04:00
Blondel MONDESIR
9302dfbd65
Merge pull request #3 from iiab/master
Sync with upstream
2024-10-01 16:13:34 -04:00
A Holt
27e287e508
Merge pull request #3814 from holta/mediawiki-1.42.3
MediaWiki 1.42.3 (security & maintenance release)
2024-09-30 21:55:06 -04:00
A Holt
d941a8ffbe
MediaWiki 1.42.3 (security & maintenance release) 2024-09-30 21:52:11 -04:00
A Holt
772c5ec810
Merge pull request #3813 from holta/iiab-vpn_status4
Cleaner columns in iiab-vpn output, when tag &/or relay missing
2024-09-30 16:44:18 -04:00
A Holt
08f2f2191c
Cleaner columns in iiab-vpn output, when tag &/or relay missing 2024-09-30 16:39:47 -04:00
A Holt
90d6af32a7
Mention Calibre-Web's official upstream install instructions 2024-09-30 09:45:55 -04:00
A Holt
e30cefc393
Merge pull request #3811 from holta/internet_access_test-BETTER
Internet access test... more relevant... for live scraping of IIAB docs during IIAB installs (i.e. /usr/bin/iiab-refresh-wiki-docs)
2024-09-29 11:39:14 -04:00
root
278ec39f2c Internet access test..more relevant..for IIAB docs 2024-09-29 11:33:05 -04:00
A Holt
4c8c2a1c2f
Merge pull request #3810 from holta/unittest_with_nodocs
`nodocs: True` in local_vars_unittest.yml
2024-09-28 11:14:05 -04:00
A Holt
c81e3629ff
nodocs: True in local_vars_unittest.yml 2024-09-28 11:11:22 -04:00
A Holt
4dd927cfd0
Merge pull request #3804 from holta/iiab-vpn_status3
Tighten & brighten iiab-vpn status table output
2024-09-23 04:01:14 -04:00
root
13fcd0f9c5 Tighten & brighten iiab-vpn status table 2024-09-23 03:52:37 -04:00
A Holt
67458abfc0
Merge pull request #3803 from holta/iiab-vpn_status2
Refine iiab-vpn status table of Tailscale IPs/usernames/etc
2024-09-22 23:34:03 -04:00
root
95986ae681 Refine iiab-vpn status table of Tailscale IPs/usernames/etc 2024-09-22 23:20:07 -04:00
A Holt
4386d2f3d3
Merge pull request #3802 from holta/tailscale-doc-fixes
Doc quick fixes for Tailscale PRs #3798 & #3800
2024-09-22 19:27:30 -04:00
root
d72e60c87d Doc fixes for Tailscale PRs #3798 & #3800 2024-09-22 19:19:35 -04:00
A Holt
086087b65b
iiab-vpn PR #3800 doc: Table of IPs/usernames/etc 2024-09-18 19:51:15 -04:00
A Holt
e98cd76ec0
iiab-vpn: Trailing newline forgotten in PR #3800 2024-09-18 15:17:59 -04:00
A Holt
f21c4c0572
Merge pull request #3800 from holta/iiab-vpn_status
Improve iiab-vpn command, to show status of each IP in a table (+ better tips!)
2024-09-18 15:14:04 -04:00
A Holt
71f6d0371b
iiab-vpn shows status of each IP (+ better tips!) 2024-09-18 15:08:55 -04:00
A Holt
5414eb3c38
iiab-vpn tip: Show IPs tagged with usernames 2024-09-18 11:34:32 -04:00
A Holt
d3d0b9767c
iiab-vpn: Tailscale tips for Android, Mac/iOS, Windows 2024-09-16 09:39:44 -04:00
A Holt
35bdd1181b
iiab-vpn doc for #3798: tailscale ping --verbose [IP or HOSTNAME] 2024-09-16 08:22:46 -04:00
A Holt
c88f1418ad
nextcloud/README.md: Mention NEW Nextcloud 30 2024-09-15 05:48:08 -04:00
A Holt
f07832105d
Add openvpn to unmaintained-roles.txt, per PR #3798 2024-09-15 05:17:38 -04:00
A Holt
762fed228a
Merge pull request #3798 from holta/vpn
Introduce new VPN approach (roles/tailscale) with commands iiab-vpn and iiab-vpn-off in /usr/bin
2024-09-15 05:00:13 -04:00
root
c7000f330b Introduce roles/tailscale w/ /usr/bin/iiab-vpn etc 2024-09-15 03:51:07 -04:00
A Holt
814a97be9c
Merge pull request #3797 from holta/ansible-core-2.17.4
Recommend ansible-core 2.17.4
2024-09-09 15:49:41 -04:00
A Holt
bea4aea7a0
Recommend ansible-core 2.17.4 2024-09-09 15:45:33 -04:00
A Holt
d1bd41bf48
Merge pull request #3791 from holta/moodle-main-not-master
Moodle dev branch renamed from 'master' to 'main'
2024-08-22 21:42:14 -04:00
root
3bb74ec09a Moodle dev branch renamed from 'master' to 'main' 2024-08-22 21:32:24 -04:00
A Holt
86fa7bd49c test.yml: Tips to try ad hoc Ansible commands 2024-08-15 10:02:49 -04:00
A Holt
b88a3854df
Merge pull request #3787 from holta/ansible-core-2.17.3
Recommend ansible-core 2.17.3
2024-08-13 21:05:25 -04:00
A Holt
e1eb26ba68
Recommend ansible-core 2.17.3 2024-08-13 00:15:30 -04:00
A Holt
d79a0bde06
Merge pull request #3786 from holta/iiab-diagnostics_pastebin_centos
iiab-diagnostics: Try paste.centos.org instead of dpaste.com
2024-08-10 21:48:46 -04:00
A Holt
2c5398dfb2
iiab-diagnostics: Clarify termbin.com rudimentary/reliable option 2024-08-10 21:48:10 -04:00
A Holt
608d05e240
iiab-diagnostics: Try paste.centos.org instead of dpaste.com 2024-08-10 21:41:15 -04:00
A Holt
ee3781d38a
README.md: Fix link to FAQ app list / descriptions 2024-08-08 20:53:13 -04:00
A Holt
fdcb617677
Merge pull request #3785 from holta/kolibri-back-to-PPA
Revert to installing Kolibri (i.e. 0.17.0+) via PPA across the board, by default anyway, regardless whether or not Python >= 3.12
2024-08-08 00:03:59 -04:00
A Holt
0d0772aac9
Revert to installing Kolibri (i.e. 0.17.0+) via PPA, by default 2024-08-07 23:34:30 -04:00
A Holt
49b574409a
scripts/iiab-update: Touch up for PR #3784 2024-08-07 04:04:43 -04:00
A Holt
24def618bc
roles/iiab-admin/README.rst: Update 2 links 2024-08-07 03:34:02 -04:00
A Holt
8924349924
Merge pull request #3784 from holta/iiab-root-login
scripts/iiab-root-login: Set + Enable sftp password, for FileZilla uploads of local/community content to IIAB
2024-08-07 01:30:15 -04:00
root
cac1c873f4 scripts/iiab-root-login: Set + Enable sftp password, for FileZilla uploads 2024-08-07 01:08:52 -04:00
A Holt
aa5a020c16
Merge pull request #3783 from holta/kolibri-0.17.0
Kolibri 0.17.0 (final release process underway) if Python >= 3.12
2024-08-06 19:39:46 -04:00
A Holt
6e51ecbdd6
Kolibri 0.17.x: Clean/Clarify Python 3.12+ OS's / context 2024-08-06 19:37:56 -04:00
A Holt
fd3ff958b1
Kolibri 0.17.0 if Python >= 3.12 2024-08-06 19:29:48 -04:00
A Holt
13a25429ea
Merge pull request #3782 from holta/kolibri-0.17.0rc3
Kolibri 0.17 RC3 if Python >= 3.12
2024-08-05 18:52:46 -04:00
A Holt
0ab99a456e
kolibri/tasks/install.yml: Clarify 4 OS's now using Python 3.12 2024-08-05 18:51:04 -04:00
A Holt
01f87f5e38
Kolibri 0.17 RC3 if Python >= 3.12 2024-08-05 18:44:18 -04:00
A Holt
a0e789a111
pbx/README.adoc: FreePBX 17 links 2024-08-04 09:20:47 -04:00
A Holt
1c2548ed0c
Merge pull request #3780 from holta/kolibri-0.17.0rc2
Kolibri 0.17 RC2 if Python >= 3.12
2024-08-01 14:31:21 -04:00
A Holt
cd7baf4b4f
Kolibri 0.17 RC2 if Python >= 3.12 2024-08-01 14:19:53 -04:00
A Holt
06d3d537db
Merge pull request #3779 from holta/transmission-defer
Bypass initial install of Transmission on 24.04 & 24.10 & Linux Mint 22 [allowing smooth MEDIUM-sized & LARGE-sized IIAB installs]
2024-08-01 11:20:00 -04:00
root
f20493cdc4 Bypass initial install of Transmission on 24.04 & 24.10 & Mint 22 2024-08-01 11:10:37 -04:00
A Holt
6d2e5542a5
Merge pull request #3778 from holta/kolibri-0.17.0rc0
Kolibri 0.17 RC0 (Release Candidate 0) if Python >= 3.12
2024-07-30 19:48:23 -04:00
A Holt
1ddbf01dff
Kolibri 0.17 RC0 if Python >= 3.12 2024-07-30 19:42:47 -04:00
A Holt
8f1a72e049
pbx/README.adoc: Update FreePBX 17 pre-release news + link 2024-07-28 15:03:00 -04:00
A Holt
1116cbfb36
pbx/README.adoc: 2 more official FreePBX 17 install links 2024-07-28 14:48:01 -04:00
A Holt
078d896ef7
pbx/README.adoc: Link to official FreePBX 17 install script 2024-07-28 14:34:51 -04:00
A Holt
411240da74
Merge pull request #3777 from holta/cweb-git-pull-fix
'git pull' if upgrading Calibre-Web, bypassing Ansible's incomplete git module
2024-07-22 22:34:31 -04:00
root
4cb61cf8b8 'git pull' if upgrading Calibre-Web, bypassing Ansible 2024-07-22 22:26:35 -04:00
A Holt
dc6dae0b4c
Merge pull request #3776 from holta/kolibri-mainline
KA Lite is dying: Time for Kolibri to become mainline
2024-07-21 22:34:55 -04:00
root
46c1003f2c KA Lite dying: Time for Kolibri to become mainline 2024-07-21 21:49:07 -04:00
A Holt
ae2327e23a
Merge pull request #3775 from holta/iiab-update2
Improved upgrading of Calibre-Web via BOTH approaches: (1) `iiab-update -f` fast way, via bash (2) `iiab-update` slow/forcible/thorough way, via Ansible
2024-07-21 03:26:26 -04:00
root
220bea18dc Explain yt-dlp 'nightly' releases, in Ansible output 2024-07-21 03:24:26 -04:00
A Holt
ddfbbe7bf0
calibre-web/tasks/install.yml: Clarify yt-dlp "nightly" option 2024-07-21 02:46:48 -04:00
A Holt
663a35f5ce
Sharpen /usr/local/calibre-web-py3 disk usage estimates 2024-07-21 02:31:21 -04:00
root
06dbdb178a Allow Calibre-Web upgrades via Ansible too, much like 'iiab-update -f' 2024-07-21 01:51:06 -04:00
root
37c6a7ef29 Clarify yt-dlp "nightly" for better/experimental YouTube scraping 2024-07-20 13:43:35 -04:00
root
06a36706eb iiab-update: Tighten up Calibre-Web upgrader (WIP: Ansible equiv soon) 2024-07-20 11:52:53 -04:00
A Holt
dbce29b24e
Merge pull request #3774 from holta/iiab-update2
`iiab-update -f` installs Calibre-Web's latest requirements.txt + mentions alternative `iiab-update` w/o flags
2024-07-19 07:16:21 -04:00
root
33ed99c030 iiab-update -f: Install CWeb requirements.txt + sharpen warning 2024-07-19 06:26:19 -04:00
A Holt
b1b9d49327
Clean up RasPiOS Python/apt/pip doc links 2024-07-19 04:34:16 -04:00
A Holt
f73bce7935
Merge pull request #3773 from holta/iiab-update2
iiab-update: Skip Admin Console `./install` if it appears already up-to-date
2024-07-19 01:29:21 -04:00
root
af3660045f iiab-update: Skip Admin Console ./install if already up-to-date 2024-07-19 01:19:00 -04:00
A Holt
333dbf3be7
Merge pull request #3772 from holta/iiab-update2
iiab-update: Permit /opt/iiab/iiab untracked files like adm-run-roles-tmp.yml
2024-07-18 16:32:26 -04:00
A Holt
cdd94f84d9
iiab-update: Permit /opt/iiab/iiab untracked files like adm-run-roles-tmp.yml 2024-07-18 16:28:14 -04:00
A Holt
5debb5e650
Merge pull request #3771 from holta/iiab-update2
iiab-update: minor refinements for safety + usability
2024-07-18 16:04:30 -04:00
A Holt
732ddf8011
iiab-update: Clarify "cp -u" in live output too 2024-07-18 15:28:07 -04:00
A Holt
291c049919
iiab-update: Try "bash -e" (exit on error) and "cp -u" (--update) 2024-07-18 15:24:22 -04:00
A Holt
1b38d34a31
Merge pull request #3770 from holta/iiab-update2
Preload all of iiab-update (bash script) into RAM — serious/intermittent errors were arising from the script effectively overwriting itself
2024-07-18 14:39:57 -04:00
root
280cea8b9d untabify iiab-update + 'systemctl stop calibre-web' output 2024-07-18 14:36:01 -04:00
root
1e1998cb14 Preload all of iiab-update (bash script) into RAM for safety 2024-07-18 13:37:24 -04:00
A Holt
3d6a116352
scripts/iiab-update: Clarify summary/purpose for PR #3768 2024-07-18 05:19:38 -04:00
A Holt
cca3cd2395
Merge pull request #3769 from holta/yt-dlp_upgrading
Strengthen Calibre-Web's yt-dlp upgrading + document yt-dlp "nightly" version
2024-07-18 03:22:37 -04:00
A Holt
514f0ea714
calibre-web/README.rst: Refine "Upgrading" grammar 2024-07-18 03:21:01 -04:00
A Holt
4150ce342e
calibre-web/README.rst: Revise "Upgrading" section 2024-07-18 03:09:13 -04:00
A Holt
c6815a55f7
calibre-web/tasks/install.yml: Links to NEW iiab-update approach 2024-07-18 02:19:52 -04:00
A Holt
49f59830c8
Strengthen yt-dlp upgrading + document "nightly" version 2024-07-18 02:09:33 -04:00
A Holt
b1b42e958a
Merge pull request #3768 from holta/iiab-update
Very basic iiab-update command, that also upgrades IIAB Calibre-Web
2024-07-18 01:57:47 -04:00
A Holt
af4715df6a
Explain 'cp iiab-update iiab-summary iiab-diagnostics /usr/bin' 2024-07-18 01:32:16 -04:00
A Holt
7d004495d3
iiab-update: Document yt-dlp "nightly" option 2024-07-18 01:15:10 -04:00
A Holt
869ff84453
iiab-update: Tiny code cleanup (Calibre-Web section) 2024-07-18 00:25:50 -04:00
root
4f98de9331 Untracked files in venv /usr/local/calibre-web-py3 should NOT block upgrade 2024-07-17 23:38:02 -04:00
root
e3d9a9a36e Basic iiab-update command; also upgrades IIAB Calibre-Web 2024-07-17 22:26:11 -04:00
A Holt
fadee4caea
remote.it free/personal/non-commercial plan reconfirmed for 2024 2024-07-17 08:57:54 -04:00
A Holt
945d9c456f
Merge pull request #3767 from holta/kolibri-0.17.0b3
Kolibri 0.17.0 Beta 3 (if Python >= 3.12)
2024-07-16 00:35:12 -04:00
A Holt
89c3d78739
Kolibri 0.17.0 Beta 3 (if Python >= 3.12) 2024-07-16 00:33:24 -04:00
A Holt
e5ce5ca50a
Merge pull request #3766 from holta/ansible-core-7.2
Recommend ansible-core 2.17.2
2024-07-15 16:17:02 -04:00
A Holt
3b41fbca62
Recommend ansible-core 2.17.2 2024-07-15 16:12:49 -04:00
A Holt
2bb78b92a2
Merge pull request #3765 from holta/kolibri-0.17.0b2
Kolibri 0.17.0 Beta 2 (if Python >= 3.12)
2024-07-12 19:47:05 -04:00
A Holt
7c7f145b17
Kolibri 0.17.0 Beta 2 (if Python >= 3.12) 2024-07-12 19:44:36 -04:00
A Holt
8f63aec43a
Merge pull request #3763 from holta/kolibri-0.17b1
Kolibri 0.17.0 Beta 1 (if Python >= 3.12)
2024-07-11 19:27:38 -04:00
A Holt
2250f507fd
Kolibri 0.17.0 Beta 1 (if Python >= 3.12) 2024-07-11 19:18:26 -04:00
A Holt
afb7ed18fd
Update Moodle 4.5dev disk footprint estimates 2024-07-11 13:12:49 -04:00
A Holt
924f580277
Clarify current Moodle is 4.4 (or 4.5dev !) 2024-07-11 12:54:38 -04:00
A Holt
c1eea9d1a1
callbre-web/README.rst: Update issues reporting URL 2024-07-10 09:38:03 -04:00
A Holt
c6b0164cbe
transmission/README.rst: Ubuntu timeout / crashing issue #3756 2024-07-09 18:43:30 -04:00
A Holt
0c4e8d2cbb
Merge pull request #3761 from holta/kolibri-0.17b0
Install Kolibri 0.17 Beta 0 if Python >= 3.12
2024-07-03 23:20:55 -04:00
A Holt
9d31afdc9f
Install Kolibri 0.17b0 if Python >= 3.12 2024-07-03 23:18:07 -04:00
A Holt
fb918e7f2c
Merge pull request #3760 from holta/mediawiki-1.42.1
New MediaWiki 1.42.1
2024-06-27 12:03:10 -04:00
A Holt
a4a68604e1
New MediaWiki 1.42.1 2024-06-27 12:01:11 -04:00
A Holt
03610f8c35
Merge pull request #3759 from holta/kolibri-ppa-cleanup
Tighten up adding of Kolibri PPA
2024-06-25 18:58:07 -04:00
A Holt
d75d6a0cb2
Fix date in comment re: kolibri-proposed 2024-06-25 18:47:28 -04:00
A Holt
355ebbc65e
Tighten up adding of Kolibri PPA 2024-06-25 18:25:23 -04:00
A Holt
2ef70bf737
Merge pull request #3757 from holta/raspbian-13
Support experimental IIAB installs on Raspberry Pi OS 13 "Trixie"
2024-06-25 14:47:52 -04:00
root
199424d470 Support experimental install on RasPiOS 13 2024-06-25 14:35:19 -04:00
A Holt
2a5046cd84
Update IIAB Calibre-Web disk footprint estimates 2024-06-25 14:30:49 -04:00
A Holt
f274f36050
Clarify doc explanation of PR #3751 2024-06-25 13:10:01 -04:00
A Holt
29637bbb39
Merge pull request #3751 from holta/kolibri-on-python3.12
Install Kolibri 0.17 pre-release, when OS Python >= 3.12
2024-06-25 12:57:00 -04:00
A Holt
641b31d800
Nextcloud 29.0.3: Update disk footprint sizes 2024-06-25 12:56:33 -04:00
A Holt
2f4151ec2e
Temp hard-coding of Kolibri 0.17 Alpha 0, if Python >= 3.12 2024-06-25 11:55:31 -04:00
A Holt
c836694537
Merge pull request #3753 from holta/ansible-core-2.17.1
Recommend ansible-core 2.17.1
2024-06-17 14:54:01 -04:00
A Holt
da3a69a885
Recommend ansible-core 2.17.1 2024-06-17 14:48:43 -04:00
A Holt
db04024398
Merge pull request #3752 from holta/iiab-diagnostics_xklb_yt-dlp
Strengthen iiab-diagnostics for xklb & yt-dlp version number visibility
2024-06-15 08:57:42 -04:00
A Holt
2f83e7f266
iiab-diagnostics.README.md: Fix line number 2024-06-15 07:47:43 -04:00
A Holt
cc130d7e0f
iiab-diagnostics: xklb & yt-dlp version visibility 2024-06-15 07:45:54 -04:00
A Holt
7020423b6e
calibre-web/README.rst: Document xklb-metadata.db (for videos) 2024-06-14 09:14:23 -04:00
root
ddd09567e2 Kolibri on Python 3.12 OS's, during initial IIAB install 2024-06-13 14:32:15 -04:00
A Holt
27be239d9d
iiab-diagnostics: Tweak pastebinit syntax for PR #3749 2024-06-05 12:09:57 -04:00
A Holt
9b0ad93499
Merge pull request #3749 from holta/dpaste.com-fails-on-null-char
dpaste.com pastebin disallows null char — so make iiab-summary & iiab-diagnostics output safer (and force odd chars to be visible)
2024-06-05 09:35:00 -04:00
A Holt
14d605c643
iiab-diagnostics: Make all odd chars visible (pastebins can be picky!) 2024-06-05 09:24:29 -04:00
A Holt
b6ab7bf733
iiab-summary: Strip RPi model null char for dpaste.com 2024-06-05 09:18:32 -04:00
A Holt
7c44e2eb2f
Merge pull request #3748 from holta/dpaste.com-instead-of-sprunge.us
Let's try pastebin service dpaste.com (limited to 30 days, and ~1,000,000 characters unfortunately) — instead of problematic (flaky) sprunge.us
2024-06-04 10:24:14 -04:00
A Holt
17463eb810
iiab-diagnostics.README.md: sprunge.us -> dpaste.com 2024-06-04 10:21:20 -04:00
A Holt
ddca185401
iiab-diagnostics: try dpaste.com instead of sprunge.us 2024-06-04 10:20:02 -04:00
A Holt
9dc634f7de
calibre-web/tasks/install.yml: Refine venv tips 2024-05-31 00:27:54 -04:00
A Holt
1733512463
Merge pull request #3744 from holta/gitea-1.22
gitea/defaults/main.yml: gitea_version: "1.22"
2024-05-27 10:22:06 -04:00
A Holt
ed9c892946
gitea/defaults/main.yml: gitea_version: "1.22" 2024-05-27 10:19:50 -04:00
A Holt
ec4a884c4c
ansible-core 2.17 docs for PR #3743 2024-05-20 15:17:55 -04:00
A Holt
0cbfeec360
Merge pull request #3743 from holta/ansible-core-2.17.0
Recommend ansible-core 2.17.0
2024-05-20 15:13:13 -04:00
A Holt
6b80af6832
2.14 EOL, MIN_ANSIBLE_VER=2.15.12 2024-05-20 14:53:10 -04:00
A Holt
daafd61521
Recommend ansible-core 2.17.0 2024-05-20 14:51:21 -04:00
A Holt
a8ebf0c300
Merge pull request #3741 from holta/kolibri-block
Defer initial install of Kolibri on Ubuntu 24.04+ (for now!) awaiting Python 3.12 compatibility
2024-05-16 18:20:29 -04:00
A Holt
583fa9a898
Clarify Kolibri avoidance w/ Python 3.12+ during initial iiab-install 2024-05-16 18:19:42 -04:00
root
2788f10624 Safer avoidance of Kolibri, if Python 3.12+ (for now!) 2024-05-16 18:07:26 -04:00
root
9129644dff Avoid initial install of Kolibri on Ubuntu 24.04+ (for now!) 2024-05-16 17:24:27 -04:00
A Holt
485a619bfa
Merge pull request #3738 from holta/nodejs22
Transition to Node.js 22.x
2024-05-03 09:12:04 -04:00
root
d4c97f45b0 Node.js 22.x 2024-05-03 08:50:27 -04:00
A Holt
673fff90e2
Nextcloud 29: Update disk footprint sizes 2024-05-01 23:29:00 -04:00
A Holt
ff696899f3
CUPS: Update Ansible password hashing link (#3735) 2024-05-01 22:52:44 -04:00
A Holt
92a4d7543e
Merge pull request #3735 from holta/ansible217
'echo Admin:changeme | chpasswd' for CUPS w/ ansible-core 2.17+
2024-05-01 16:10:05 -04:00
root
ebb0e079af 'echo Admin:changeme | chpasswd' for CUPS w/ ansible-core 2.17+ 2024-05-01 15:52:06 -04:00
A Holt
d79822146e
Merge pull request #3734 from holta/ubuntu2410
Welcome Ubuntu 24.10 (Oracular Oriole) pre-releases
2024-05-01 10:45:01 -04:00
root
4ea8690dd3 Welcome Ubuntu 24.10 (Oracular Oriole) pre-releases 2024-05-01 10:31:09 -04:00
A Holt
4dcd8d8823
Merge pull request #3733 from holta/kalite-block
Bypass KA Lite install during initial install of IIAB, on recent OS's like Ubuntu 24.04+
2024-04-30 21:25:14 -04:00
root
a771260ce9 Bypass KA Lite install during initial install of IIAB, on recent OS's 2024-04-30 21:02:25 -04:00
A Holt
04cef50665
Merge pull request #3732 from holta/yt-dlp_paths
Safer /usr/local/bin/yt-dlp symlink creation
2024-04-30 18:44:04 -04:00
root
e6d5b6aa07 Safer /usr/local/bin/yt-dlp symlink creation 2024-04-30 18:22:34 -04:00
A Holt
b3668e42e9
Merge pull request #3730 from holta/moodle-4.4
New Moodle 4.4 instead of 4.3
2024-04-24 11:01:03 -04:00
A Holt
81be4dda9a
New Moodle 4.4 instead of 4.3 2024-04-24 10:34:32 -04:00
A Holt
61fa20ee64
Merge pull request #3729 from holta/ansible-core-2.16.6
Recommend ansible-core 2.16.6
2024-04-15 22:23:22 -04:00
A Holt
e279be79df
iiab-install: MIN_ANSIBLE_VER=2.14.16 2024-04-15 22:17:51 -04:00
A Holt
8079ca9a4b
Recommend ansible-core 2.16.6 2024-04-15 22:13:32 -04:00
A Holt
6f83c550de
Merge pull request #3728 from holta/sugarizer-1.8.0
New Sugarizer 1.8.0 (upgrade from 1.7.0)
2024-04-10 16:06:17 -04:00
A Holt
d6c4812343
Sugarizer 1.8.0 (upgrade from 1.7.0!) 2024-04-10 16:04:04 -04:00
A Holt
1018187e10
Merge pull request #3726 from holta/kolibri-via-apt
Restore apt install of Kolibri 0.16.1+, thx to upstream changes
2024-04-08 16:34:28 -04:00
A Holt
824469e280
kolibri/defaults/main.yml: Clarify apt for Kolibri 0.16.1+ 2024-04-08 11:54:59 -04:00
A Holt
812b549d33
Restore apt install of Kolibri 0.16.1+, thx to upstream changes 2024-04-08 11:48:53 -04:00
A Holt
20a48b3de0
Merge pull request #3725 from holta/mediawiki-1.41.1
MediaWiki 1.41.1 (security and maintenance release)
2024-03-28 19:08:38 -04:00
A Holt
837b4ccaff
MediaWiki 1.41.1 (security and maintenance release) 2024-03-28 19:07:51 -04:00
A Holt
fde199037a
Merge pull request #3723 from holta/ansible-core-2.16.5
Recommend ansible-core 2.16.5
2024-03-25 15:58:00 -04:00
A Holt
133cc0682b
iiab-install: Mandate MIN_ANSIBLE_VER=2.14.15 2024-03-25 15:49:14 -04:00
A Holt
9ce709e6e3
Recommend ansible-core 2.16.5 2024-03-25 15:47:52 -04:00
A Holt
2c6b565042
Merge pull request #3722 from holta/kolibri-force-0.16-for-now
Interim stub to force Kolibri 0.16.0 for now, awaiting upstream #11892
2024-03-17 13:35:04 -04:00
A Holt
ea47f27b9d
kolibri/defaults/main.yml: Clarify 0.16.0 install hack/stub 2024-03-17 13:31:28 -04:00
A Holt
b5e60c9875
Interim stub to force Kolibri 0.16.0 for now, awaiting upstream #11892 2024-03-17 13:24:08 -04:00
A Holt
4fb55f87c6
iiab-install: Mandate MIN_ANSIBLE_VER=2.14.14 2024-03-07 04:04:05 -05:00
A Holt
6860ede1ad
Merge pull request #3718 from holta/py2-better
Fix accidental running of install_python2.sh (also) being run on Ubuntu 24.04 (and introduce var is_linuxmint_22)
2024-03-07 03:50:29 -05:00
root
1070a3e729 install_python2_kalite-venv_u2404.sh: 'apt install python3-venv' (again) 2024-03-07 03:28:40 -05:00
root
a98d02248e kalite/tasks/install.yml: Cleaner OS conditions 2024-03-07 02:06:32 -05:00
root
f67660d30b Tighten kalite/tasks/install.yml; Introduce is_linuxmint_22 2024-03-07 00:53:46 -05:00
A Holt
92e70fc0bc
Merge pull request #3717 from holta/py2-tweaks
Tiny refinements for scripts/install_python2_kalite-venv_u2404.sh
2024-03-06 20:31:44 -05:00
root
f8fe9f0af9 Refine scripts/install_python2_kalite-venv_u2404.sh 2024-03-06 19:57:05 -05:00
A Holt
e990395fc6
Merge pull request #3715 from holta/py2
Touch-ups for: scripts/install_python2_kalite-venv_u2404.sh
2024-03-06 14:21:49 -05:00
root
73e94abe3f Touch-ups for: scripts/install_python2_kalite-venv_u2404.sh 2024-03-06 13:26:47 -05:00
Jerry Vonau
6819123fed no compilers 2024-03-05 21:06:59 -06:00
Jerry Vonau
f871683c2d conditionals 2024-03-05 05:02:18 -06:00
Jerry Vonau
66eb9862ee exec bit not set in git 2024-03-04 01:46:43 -06:00
Jerry Vonau
a737c8c05a leave python2 packages 2024-03-04 01:41:57 -06:00
Jerry Vonau
5fc4952595 U2404 python2 role 2024-03-04 01:28:11 -06:00
Jerry Vonau
3ae591a035 U2404 python2 2024-03-04 00:55:09 -06:00
Jerry Vonau
918758fbe9 U2404 python2 2024-03-04 00:52:48 -06:00
A Holt
92fd9a47ae
Merge pull request #3713 from holta/ansible-core-2.16.4
Recommend ansible-core 2.16.4
2024-02-26 16:58:33 -05:00
A Holt
c3e7b4c104
Recommend ansible-core 2.16.4 2024-02-26 16:53:58 -05:00
A Holt
7a6ca96738
runrole: Clarify/correct local_vars.yml warning 2024-02-26 09:36:24 -05:00
A Holt
dabd4ad7fe
Merge pull request #3712 from holta/pbx-doc-clean
Update FreePBX 17 BETA install tips
2024-02-25 20:15:13 -05:00
A Holt
ddfc2b003a
local_vars_large.yml: Update PBX tips 2024-02-25 20:13:27 -05:00
A Holt
5320b4e891
local_vars_medium.yml: Update PBX tips 2024-02-25 20:12:43 -05:00
A Holt
586364bd89
local_vars_small.yml: Update PBX tips 2024-02-25 20:12:04 -05:00
A Holt
731829f199
local_vars_unittest.yml: Update PBX tips 2024-02-25 20:11:25 -05:00
A Holt
7991d48614
default_vars.yml: Update PBX tips 2024-02-25 20:10:47 -05:00
A Holt
e6bf0ef177
pbx/README.adoc: Link to PR #3675 (Asterisk 21 & FreePBX 17) 2024-02-25 18:05:49 -05:00
A Holt
b5f3f44e96
pbx/README.adoc: Require PHP 8.x (desupport EOL'd PHP 7.4!) 2024-02-25 18:03:58 -05:00
A Holt
81aca5f603
Merge pull request #3675 from holta/asterisk21+freepbx17
pbx/defaults/main.yml: Try Asterisk 21 and FreePBX 17 again in Q1/Q2 2024? [GOOD NEWS: FreePBX 17 BETA now tolerates Asterisk 21!]
2024-02-25 17:36:40 -05:00
A Holt
65d6f9255e
WARNING: FreePBX 17.0 branch is still in flux! 2024-02-25 17:26:27 -05:00
A Holt
98d5122404
18+1 FreePBX modules appear unchanged since May 2022 2024-02-25 17:23:31 -05:00
A Holt
7c24fcc695
freepbx.yml: Consistent uppercase, documenting 2 hack/workarounds 2024-02-25 16:21:20 -05:00
A Holt
efc9705b1a
2 ugly hacks for FreePBX 17: ignore 'install -n' error code & bypass 'fwconsole reload' 2024-02-25 16:19:27 -05:00
A Holt
3455b6b848
kolibri/tasks/main.yml: New pre-release option (kolibri-deb-next) 2024-02-20 16:48:30 -05:00
A Holt
7e88735445
Merge pull request #3708 from holta/wifi-driver-removal
1-prep/tasks/hardware.yml: Comment out "NUC6" WiFi driver
2024-02-09 08:58:40 -05:00
A Holt
a852541ad4
1-prep/tasks/hardware.yml: Comment out "NUC6" WiFi driver 2024-02-09 08:48:23 -05:00
A Holt
7d73fca112
Merge pull request #3703 from holta/ansible-core-2.16.3
Recommend ansible-core 2.16.3
2024-01-29 15:59:59 -05:00
A Holt
6776c1d4a5
Recommend ansible-core 2.16.3 2024-01-29 15:57:24 -05:00
Tim Moody
4ebcf6a248
Merge pull request #3702 from tim-moody/8.1.1-none
another auto install of a pet project
2024-01-21 10:50:03 -05:00
tim-moody
961acf9454 another auto install of a pet project 2024-01-21 10:46:33 -05:00
A Holt
ebb8368548
Merge pull request #3701 from holta/iiab-diagnostics_sudo_for_cweb_version
iiab-diagnostics: sudo git log for Calibre-Web version
2024-01-20 14:58:12 -05:00
A Holt
bd340aa673
iiab-diagnostics: sudo git log for Calibre-Web version 2024-01-20 14:53:24 -05:00
A Holt
f23aa77af1
Merge pull request #3700 from holta/iiab-diagnostics_cat_-v
iiab-diagnostics: Pipe everything thru 'cat -v' so ASCII control chararcters become visible
2024-01-20 13:50:33 -05:00
root
2ed820777d iiab-diagnostics: Pipe everything thru 'cat -v' so control chars visible 2024-01-20 13:45:17 -05:00
A Holt
54badceae4
Merge pull request #3699 from holta/app.db-new-defaults
Update (almost 10!) Calibre-Web app.db defaults
2024-01-18 22:51:08 -05:00
root
595de4e7f2 Update (almost 10!) Calibre-Web app.db defaults 2024-01-18 22:35:58 -05:00
A Holt
26ddda9b7e
Merge pull request #3698 from holta/iiab-diagnostics_xklb.log
iiab-diagnostics: 300 last lines of /var/log/xklb.log for now
2024-01-15 00:04:22 -05:00
A Holt
524709f31a
iiab-diagnostics: 300 last lines of xklb.log for now 2024-01-14 23:55:38 -05:00
A Holt
4ae5991cb3
pbx/README.adoc: WARN re: PHP 7 danger & unsupported/old OS's 2024-01-13 12:36:02 -05:00
A Holt
5a44399300
Update pbx/README.adoc w/ latest FreePBX 17 BETA tips / warning 2024-01-13 12:23:57 -05:00
A Holt
d932684a11
iiab-diagnostics.README.md: Fix line number for PR #3697 2024-01-11 18:12:15 -05:00
A Holt
0f6231ab38
Merge pull request #3697 from holta/iiab-diagnostics_cweb_commits
iiab-diagnostics: Show Calibre-Web "version" (~50 recent commits) + systemd service status + 3 "log files"
2024-01-11 14:50:57 -05:00
A Holt
bed26162cf
iiab-diagnostics: Also include 'systemctl status calibre-web' 2024-01-11 14:37:00 -05:00
A Holt
fea5f9ccba
iiab-diagnostics: Add 3 more "log files" for Calibre-Web 2024-01-11 14:31:32 -05:00
A Holt
1c43253062
iiab-diagnostics: Show Calibre-Web "version" i.e. ~50 recent commits 2024-01-11 14:20:40 -05:00
A Holt
9570f8d117
calibre-web/tasks/install.yml: Clarify wiki for PR #3696 2024-01-10 23:38:21 -05:00
A Holt
b6975d0c8b
Merge pull request #3696 from holta/lb-wrapper.greedy_gone
calibre-web/tasks/install.yml: lb-wrapper.greedy gone!
2024-01-10 23:31:28 -05:00
A Holt
cc9d791f6c
calibre-web/tasks/install.yml: Link to wiki explanation 2024-01-10 23:30:05 -05:00
A Holt
40c2c71f52
calibre-web/tasks/install.yml: lb-wrapper.greedy gone! 2024-01-10 23:23:15 -05:00
A Holt
42d580ef65
Merge pull request #3695 from holta/calibre-web_on_SMALL-sized
Install/enable Calibre-Web by default, e.g. with SMALL-sized IIAB installs too
2024-01-01 13:12:49 -05:00
A Holt
0cbbd09db8
local_vars_small.yml: Install/enable Calibre-Web 2024-01-01 13:09:56 -05:00
A Holt
71220324f3
default_vars.yml: Install/enable Calibre-Web 2024-01-01 13:09:15 -05:00
A Holt
64e6d6cd04
Merge pull request #3694 from holta/calibre-web_with_videos
Calibre-Web (eBook Library) w/ experimental support for video/audio/images
2024-01-01 00:06:35 -05:00
A Holt
7887e4f8cb
Touch up calibre-web/README.rst 2023-12-31 23:57:58 -05:00
root
ebf35d9680 Calibre-Web w/ experimental support for video/audio/images 2023-12-31 23:45:25 -05:00
A Holt
cbae5b71ea
Merge pull request #3693 from holta/launch-8.2-cycle
default_vars.yml: Launch 8.2 Release Cycle
2023-12-31 22:58:03 -05:00
A Holt
aba3cde8e4
default_vars.yml: Launch 8.2 release cycle 2023-12-31 22:56:48 -05:00
A Holt
fcb1797413
LICENSING.md: Update date 2023-12-31 21:39:27 -05:00
A Holt
0b53b95921
matomo/tasks/install.yml: "Download and Extract (~3 min)" 2023-12-31 21:19:22 -05:00
A Holt
34489a03c7
Merge pull request #3692 from holta/deb11-u22-vars-toughen
kalite/tasks/install.yml: Tough aging vars is_debian_11, is_ubuntu_2204
2023-12-31 21:04:53 -05:00
root
3dd3d868ad kalite/tasks/install.yml: Tough aging vars is_debian_11, is_ubuntu_2204 2023-12-31 21:00:11 -05:00
A Holt
fb4b5868ce
Merge pull request #3691 from holta/desupport-deb11-and-u2304
Officially Desupport Bullseye (Debian 11, RasPiOS 11) & Ubuntu 23.04
2023-12-31 20:28:31 -05:00
root
ff3b23376b Desupport Bullseye (Debian 11, RasPiOS 11) & Ubuntu 23.04 2023-12-31 20:23:44 -05:00
A Holt
fa0b777680
Merge pull request #3690 from holta/transmission-from-os
Change default to `transmission_compile_latest: False`
2023-12-31 19:41:14 -05:00
root
16d21c9d2d Change default to 'transmission_compile_latest: False' 2023-12-31 19:29:24 -05:00
A Holt
a06ec8c88e
transmission/README.rst: Transmission 4.x Preview (Optional) 2023-12-31 19:25:04 -05:00
A Holt
a5f3d318c4
Merge pull request #3689 from holta/yt-dlp_pipx_path_fix
calibre-web/tasks/install.yml: Fix yt-dlp pipx path
2023-12-30 19:07:41 -05:00
A Holt
624827ea15
calibre-web/tasks/install.yml: Fix yt-dlp pipx path 2023-12-30 19:05:09 -05:00
A Holt
7b7e17491f
transmission/README.rst: Clarify we compile 4.0.5+ 2023-12-27 07:47:36 -05:00
A Holt
1b44563777
calibre-web/tasks/install.yml: Disk footprints for /usr/local/calibre-web-py3 2023-12-24 09:05:30 -05:00
A Holt
4ed99abf6e
calibre-web/README.rst: Grammar fix 2023-12-22 17:27:42 -05:00
A Holt
a120f79ed5
calibre-web/README.rst: Link to new IIAB's DIY Video Library 2023-12-22 15:29:49 -05:00
A Holt
4c8baa3b17
calibre-web/README.rst 2023-12-22 15:25:44 -05:00
A Holt
edc08173b3
iiab-admin/tasks/pwd-warnings.yml: Clarify ~/.config/wayfire.ini 2023-12-22 10:01:33 -05:00
A Holt
efc3b2fa87
nextcloud/tasks/install.yml: Typo in CLI upgrade tips 2023-12-22 09:49:58 -05:00
A Holt
f8748e12fb
pbx/README.adoc: Sadly PHP 7.4 still required 2023-12-22 08:40:02 -05:00
A Holt
2261c6c9f0
nextcloud/tasks/install.yml: Clarify need for manual upgrade 2023-12-22 05:17:45 -05:00
A Holt
93d2621dc4
Merge pull request #3688 from holta/mediawiki-1.41.0
New MediaWiki version 1.41.0 (new functionality AND security release)
2023-12-21 14:14:50 -05:00
A Holt
d4846589ea
mediawiki/defaults/main.yml: New version 1.41.0 2023-12-21 13:55:43 -05:00
A Holt
aceb236162
Merge pull request #3148 from holta/allow-large-uploads
Remove 500M restriction on file uploads. Use 10G instead. [affects NGINX, PHP, Calibre-Web, Moodle, Nextcloud, WordPress, PBX, ETC]
2023-12-21 12:16:28 -05:00
A Holt
a7ed9f7dcd
www_options/tasks/php-settings.yml: Set 2 vars to 10000M when nginx_high_php_limits or moodle_install or nextcloud_install 2023-12-21 11:28:38 -05:00
A Holt
dcfd65fee4
Merge branch 'master' into allow-large-uploads 2023-12-21 11:19:02 -05:00
A Holt
d46d5d12d7
moodle/tasks/install.yml: Clarify CLI-based Moodle upgrade tips 2023-12-20 10:31:13 -05:00
A Holt
120a5701b9
1-prep/templates/iiab-expand-rootfs: Clarify partition shrinking/expanding 2023-12-19 13:22:22 -05:00
A Holt
b5d3a7658a
moodle/tasks/install.yml: Clarify 'git pull' options for CLI upgrade 2023-12-17 15:11:01 -05:00
A Holt
f8155c23af
moodle/tasks/install.yml: Refine Moodle CLI upgrade tips 2023-12-17 13:45:55 -05:00
A Holt
b0f1cccd37
moodle/tasks/install.yml: Fix CLI upgrade example 2023-12-17 12:56:54 -05:00
A Holt
a7b58da079
moodle/tasks/install.yml: Concrete CLI upgrade example 2023-12-17 12:40:23 -05:00
A Holt
1a8fd72df6
moodle/tasks/install.yml: Link to CLI upgrade instructions 2023-12-17 12:33:35 -05:00
A Holt
017e55a70a
moodle/tasks/install.yml: Update URL for cron doc 2023-12-17 12:29:53 -05:00
A Holt
73f0fa6ff8
Update iiab-netwarn explanation for PR #3685 2023-12-17 07:16:59 -05:00
A Holt
16ef96f0f5
nextcloud/tasks/install.yml: Clarify 655MB /library/www/nextcloud 2023-12-17 00:42:18 -05:00
A Holt
bb283299f2
Merge pull request #3685 from holta/wayfire.ini
Use Wayland compositor's ~/.config/wayfire.ini to show pop-ups & browser on boot (for Raspberry Pi OS Bookworm)
2023-12-17 00:23:19 -05:00
root
c90c85acaf Use Wayland compositor's ~/.config/wayfire.ini to show pop-ups & browser on boot 2023-12-17 00:19:05 -05:00
A Holt
d70b365335
transmission/tasks/install.yml: Warn about 60+ min compile 2023-12-16 15:31:10 -05:00
A Holt
c4738b007e
nextcloud/tasks/install.yml: Clarify install & upgrade realities 2023-12-16 00:29:08 -05:00
A Holt
a4f9cba1bb
nextcloud/tasks/install.yml: Mention Nextcloud 28.0.0 size/space 2023-12-15 16:58:17 -05:00
A Holt
24905b7c34
Merge pull request #3683 from holta/ansible-core-2.16.2
Recommend ansible-core 2.16.2
2023-12-11 16:31:01 -05:00
A Holt
9bcbee3202
iiab-install: Mandate MIN_ANSIBLE_VER=2.14.13 2023-12-11 16:02:51 -05:00
A Holt
1972f4763c
Recommend ansible-core 2.16.2 2023-12-11 16:01:11 -05:00
A Holt
3b9d2d2e36
Merge pull request #3681 from holta/lb-wrapper.greedy
Install /usr/local/bin/lb-wrapper.greedy for Calibre-Web OOM (out of memory) testing
2023-12-09 23:24:15 -05:00
A Holt
c2a1ad2e46
Install /usr/local/bin/lb-wrapper.greedy for Calibre-Web testing 2023-12-09 22:59:18 -05:00
A Holt
1488c5a308
Merge pull request #3680 from holta/cweb-rm-nginx-symlink
enable-or-disable.yml: Don't create symlink /library/www/html/calibre-web -> /library/calibre-web (NGINX can go directly if/as nec!)
2023-12-05 17:21:26 -05:00
A Holt
a6bafe833a
enable-or-disable.yml: Avoid NGINX symlink /library/www/html/calibre-web 2023-12-05 16:51:13 -05:00
A Holt
95866394ea
Merge pull request #3679 from holta/ansible-core-2.16.1
Recommend ansible-core 2.16.1
2023-12-04 18:32:06 -05:00
root
9f00b7b41b validate_vars.yml: ansible-core 2.16.1 req 'loop' not 'with_items' w/ 'assert' templating 2023-12-04 18:06:17 -05:00
A Holt
af9597d5b2
iiab-install: Set MIN_ANSIBLE_VER=2.14.12 (2.13 EOL on 2023-11-06) 2023-12-04 17:11:07 -05:00
A Holt
a546c5132a
Recommend ansible-core 2.16.1 2023-12-04 16:54:05 -05:00
A Holt
e71f013ea1
Merge pull request #3678 from holta/calibreweb-venv-wipe
Introduce var 'calibreweb_venv_wipe: False' for TDD (test-driven development) of Calibre-Web
2023-12-04 15:31:25 -05:00
A Holt
47da9a9cba
calibre-web/defaults/main.yml: Fix typo "2023-12-04" 2023-12-04 15:28:58 -05:00
A Holt
5feecc022e
calibre-web/tasks/install.yml: Auto-upgrade xklb & yt-dlp for TDD 2023-12-04 15:06:18 -05:00
A Holt
da785cb8c4
New default 'calibreweb_venv_wipe: False' for TDD! 2023-12-04 14:24:45 -05:00
A Holt
02471e9402
calibre-web/tasks/install.yml: Enact calibreweb_venv_wipe & clone as nec 2023-12-04 14:21:30 -05:00
A Holt
e705ad6cd4
calibre-web/defaults/main.yml: Set 'calibreweb_venv_wipe: True' 2023-12-04 13:25:48 -05:00
A Holt
c00777f7fd
Merge pull request #3677 from holta/cweb-install-better
calibre-web/tasks/install.yml: Better xklb & yt-dlp symlinks
2023-11-30 05:44:25 -05:00
A Holt
4714b06d11
calibre-web/tasks/install.yml: Better xklb & yt-dlp symlinks 2023-11-29 21:27:41 -05:00
A Holt
c008f4affb
Merge pull request #3676 from holta/calibre-web_install
Calibre-Web prereqs for audio/video + set app.db logging to /var/log/calibre-web.log w/ log level "DEBUG"
2023-11-29 17:06:38 -05:00
root
13467a8b92 Calibre-Web prereqs for audio/video + set app.db log to /var/log/calibre-web.log 2023-11-29 16:44:29 -05:00
A Holt
a3c7955b1b
remoteit/README.md: Link to their pricing 2023-11-26 15:01:07 -05:00
A Holt
7b1b6eca72
README.rst: Transmission 4.1 ETA early 2024 2023-11-23 14:52:17 -05:00
A Holt
f2fd0fda9a
pbx/defaults/main.yml: Try Asterisk 21 and FreePBX 17 2023-11-20 02:33:15 -05:00
A Holt
c771689c3d
Merge pull request #3674 from holta/asterisk-21
Set `asterisk_rpi_patch: False` & mandate MySQL / MariaDB [as we wait for FreePBX 17 pre-releases to support Asterisk 21, which was released 2023-10-18]
2023-11-20 02:30:55 -05:00
A Holt
c82709eaba
README.adoc: Comment out PR #3523 & var asterisk_rpi_patch 2023-11-20 02:24:28 -05:00
A Holt
e9655ad798
Revert to 'asterisk_src_file: asterisk-20-current.tar.gz' for now 2023-11-20 01:57:32 -05:00
A Holt
022569fc61
Revert to 'freepbx_git_branch: release/16.0' for now 2023-11-20 01:29:16 -05:00
A Holt
de1f5ed44a
3-base-server/README.rst: Clarify PBX needs MySQL 2023-11-19 17:47:30 -05:00
A Holt
3d6450a188
pbx/tasks/asterisk.yml: Clarify 7 (not 6) 2023-11-19 17:42:53 -05:00
A Holt
f2851ad9c4
3-base-server: Clarify PBX need for MySQL 2023-11-19 17:28:27 -05:00
A Holt
cf69b6438d
default_vars.yml: Clarify PBX need for MySQL 2023-11-19 17:26:34 -05:00
A Holt
93b381804e
pbx/tasks/install.yml: Install MySQL / MariaDB 2023-11-19 17:20:23 -05:00
A Holt
356c2bd171
asterisk.yml w/o 'menuselect --enable app_macro' 2023-11-19 17:05:03 -05:00
A Holt
20e42b3722
local_vars_large.yml: 'asterisk_rpi_patch: False' 2023-11-19 16:40:51 -05:00
A Holt
4ca14a75fc
local_vars_medium.yml: 'asterisk_rpi_patch: False' 2023-11-19 16:40:05 -05:00
A Holt
01bec789fb
local_vars_small.yml: 'asterisk_rpi_patch: False' 2023-11-19 16:39:22 -05:00
A Holt
409dace2e7
local_vars_unittest.yml: 'asterisk_rpi_patch: False' 2023-11-19 16:38:25 -05:00
A Holt
5e127a7cd7
default_vars.yml: 'asterisk_rpi_patch: False' safer 2023-11-19 16:00:36 -05:00
A Holt
c968abc772
pbx/default/main.yml: Try Asterisk 21 and FreePBX 17 2023-11-19 15:56:45 -05:00
A Holt
acf125f46d
gitea/tasks/install.yml: Doc ~134MB /library/gitea for #3671 2023-11-14 11:43:32 -05:00
A Holt
0304f6bd8c
Merge pull request #3671 from holta/gitea-1.21
Gitea 1.21 released
2023-11-14 10:35:22 -05:00
A Holt
5b7297999b
gitea/tasks/install.yml: Mention Gitea 1.21 2023-11-14 10:12:49 -05:00
A Holt
afbddd16c4
gitea/defaults/main.yml: gitea_version: "1.21" 2023-11-14 10:07:38 -05:00
A Holt
579cfac36e
Merge pull request #3670 from holta/nextcloud-nginx-patch
Patch NGINX conf file for Nextcloud 27.1.2+ — and deprecate support for EOL Nextcloud 25 on older OS's — whose PHP 7 was (also!) EOL'd a year ago
2023-11-06 13:57:12 -05:00
A Holt
128088ea90
Desupport EOL'd Nextcloud 25, a year after its PHP 7 was (also!) EOL'd 2023-11-06 13:52:07 -05:00
A Holt
ba9fa67aaa
nextcloud-nginx.conf.j2: Patch both 'oc[ms]-provider' to 'ocs-provider' 2023-11-06 13:47:34 -05:00
A Holt
1454cf7f42
Merge pull request #3666 from holta/ansible-core-2.16.0
Recommend ansible-core 2.16.0, Deprecate EOL'd 2.13.x (both ETA 2023-11-06)
2023-11-06 13:12:30 -05:00
A Holt
78d48b684c
Merge pull request #3668 from holta/mysql-on-demand
roles/nextcloud: Install prereq MySQL / MariaDB (that I missed yesterday!)
2023-11-06 12:48:41 -05:00
A Holt
8d97dd9add
nextcloud/tasks/install.yml: Disk space estimates for /library/www/nextcloud 2023-11-06 12:47:44 -05:00
root
9f3ca844ff roles/nextcloud: Install prereq MySQL / MariaDB 2023-11-06 12:12:51 -05:00
A Holt
11257daf2a
iiab-install: Set MIN_ANSIBLE_VER=2.14.11 (2.13 EOL on 2023-11-06) 2023-11-05 16:56:30 -05:00
A Holt
a10384c9f1
scripts/ansible: Recommend ansible-core 2.16.0 ETA 2023-11-06 2023-11-05 16:54:48 -05:00
A Holt
6edd2f4bdd
Merge pull request #3665 from holta/mysql-on-demand
Install MySQL/MariaDB on-demand--for MediaWiki, WordPress, Matomo &/or Admin Console
2023-11-05 14:58:46 -05:00
root
aabfd5de9b Move Munin install: 8-mgmt-tools -> 9-local-addons 2023-11-05 13:25:52 -05:00
A Holt
27cc66b87e
0-init/tasks/validate_vars.yml: Cleaner ordering of mysql within 45 2023-11-05 12:58:05 -05:00
A Holt
58d9923284
roles/3-base-server/README.rst: Explain MySQL / MariaDB change 2023-11-05 12:53:46 -05:00
root
402ce97d1d Install MySQL/MariaDB on-demand--for MediaWiki, WordPress, Matomo &/or Admin Console 2023-11-05 12:14:46 -05:00
A Holt
8def5c98cf
Doc: pipx option to install pkg globally for multi-user access 2023-11-05 09:44:12 -05:00
A Holt
a97afd1268
Merge pull request #3664 from holta/calibre-web_full_clone
calibre-web/tasks/install.yml: Full clone for now (to help wider community testing)
2023-11-04 08:43:22 -04:00
A Holt
699adb9c5a
calibre-web/tasks/install.yml: Full clone for now (community testing) 2023-11-04 08:24:39 -04:00
A Holt
53a74c77a7
calibre-web/README.rst: Link to Calibre-Web wiki (deps) 2023-11-02 11:37:16 -04:00
A Holt
6d5c211f92
calibre-web/README.rst: Clean http://box/live/stats explanation 2023-11-02 11:34:33 -04:00
A Holt
19cd6be03d
calibre-web/README.rst: http://box/live/stats lists Python deps / versions 2023-11-02 11:31:12 -04:00
A Holt
0c09a2d46d
Rename ubuntu-2210.yml to ubuntu-2210.yml.unused 2023-10-27 19:31:14 -04:00
A Holt
914b2db304
Merge pull request #3663 from holta/u2404-vars
Support Ubuntu 24.04 pre-releases
2023-10-27 14:33:25 -04:00
root
70a139b643 Support Ubuntu 24.04 pre-releases 2023-10-27 14:31:21 -04:00
A Holt
820ad42239
calibre-web/README.rst: Remove useless "details above" 2023-10-16 09:29:14 -04:00
A Holt
5f603769da
Merge pull request #3660 from holta/systemd-resolved_raspios
sysd-netd-debian.yml: Install apt package 'systemd-resolved' if OS offers it (RasPiOS Bookworm issue)
2023-10-14 17:12:16 -04:00
root
bbef784d80 sysd-netd-debian.yml: Clean comment spacing 2023-10-14 15:45:51 -04:00
root
6f397c63a9 sysd-netd-debian.yml: Install systemd-resolved (if available) 2023-10-14 15:32:50 -04:00
Jerry Vonau
cdd88d20c5
Update sysd-netd-debian.yml
'systemd'
2023-10-11 21:19:02 -05:00
Jerry Vonau
7055165f77
Update sysd-netd-debian.yml 2023-10-11 21:13:07 -05:00
Jerry Vonau
b81d3365de
Update sysd-netd-debian.yml 2023-10-11 20:58:28 -05:00
Jerry Vonau
4c8ca30769
Update sysd-netd-debian.yml 2023-10-11 20:57:55 -05:00
Jerry Vonau
cf47363316
Update sysd-netd-debian.yml
rework for RasPiOS
2023-10-11 20:46:45 -05:00
Jerry Vonau
e1ccb6c328
Update install.yml
moving
2023-10-11 20:39:38 -05:00
A Holt
60763fab8e
scripts/ansible links: RasPiOS Bookworm doc for Python with venv 2023-10-11 15:15:33 -04:00
A Holt
de83ed694f
Links: RasPiOS Bookworm doc for Python with venv 2023-10-11 15:13:28 -04:00
A Holt
d514e648db
Merge pull request #3656 from holta/moodle-4.3
Push Moodle 4.3 (released 2023-10-09) for wider testing, and Moodle 4.4dev if PHP >= 8.3 (e.g. new OS's)
2023-10-11 12:05:36 -04:00
A Holt
1016a49edd
moodle/tasks/install.yml: Note new Moodle 4.3 disk footprint(s) 2023-10-11 11:58:29 -04:00
A Holt
ca34259402
For now, install Moodle 4.4dev if PHP >= 8.3 2023-10-11 11:35:34 -04:00
A Holt
f3d30d6187
moodle_version: MOODLE_403_STABLE (Moodle 4.3) 2023-10-11 11:32:35 -04:00
A Holt
eea8b086ee
iiab-install: Set MIN_ANSIBLE_VER=2.13.13 w/ #3654 2023-10-09 12:12:14 -04:00
A Holt
2b2808bc82
Merge pull request #3654 from holta/ansible-core-2.15.5
Recommend ansible-core 2.15.5
2023-10-09 12:09:54 -04:00
A Holt
2e919694cf
Recommend ansible-core 2.15.5 2023-10-09 12:07:12 -04:00
A Holt
03d49be4a0
iiab-expand-rootfs DOC: raspi-config nonint do_expand_rootfs 2023-10-05 16:52:23 -04:00
A Holt
667c07048b
moodle/install.yml CLARIF: Reverting to 4.1 LTS is not guaranteed 2023-10-05 14:43:30 -04:00
A Holt
3ef3a4cfa1
nextcloud/README.md: Clarify automatic 'nginx_high_php_limits: True' 2023-10-03 08:47:20 -04:00
A Holt
332c968c52
nextcloud/README.md: Clarify PHP/RAM/disk warning 2023-10-02 19:28:07 -04:00
A Holt
beb34f8eee
nextcloud/README.md: Quick cleanup & update 2023-10-02 19:01:34 -04:00
A Holt
aad284b3c6
transmission/README.rst: Link to Debian 12 docs 2023-10-02 15:27:45 -04:00
A Holt
7905e30f22
transmission/README.rst: "2023 Caution" grammar touch-ups 2023-10-01 22:50:08 -04:00
A Holt
6723569109
transmission/README.rst: "2023 Caution" re: slow compile 2023-10-01 22:00:37 -04:00
A Holt
5421983766
transmission/README.rst: Clarify 4.0.4+ compile slowness & 4.1 soon? 2023-10-01 21:40:55 -04:00
A Holt
6b5b8068ee
Merge pull request #3653 from holta/32-bit-fixes
32-bit fixes (Calibre-Web, JuperterHub, Moodle) + defer iiab-install of Internet Archive if 32-bit
2023-10-01 19:13:36 -04:00
root
3b70f38544 32-bit fixes (CWeb, JHub, Moodle) + defer IArchive 2023-10-01 18:34:19 -04:00
A Holt
df35cd73fd
Merge pull request #3652 from holta/pip_install_--prefer-binary
scripts/ansible: 'pip install --prefer-binary ansible-core' is simpler/faster & more future-proof
2023-10-01 14:04:51 -04:00
A Holt
d55e61c32b
scripts/ansible: Clean up explanation of --prefer-binary 2023-10-01 13:55:33 -04:00
A Holt
6c9e684841
scripts/ansible: pip install --prefer-binary ansible-core 2023-10-01 13:46:03 -04:00
A Holt
8f12c34b1c
munin/tasks/install.yml: Fix Ansible quotes around #3434 2023-09-30 21:31:33 -04:00
A Holt
3ba6364c86
Merge pull request #3651 from holta/cryptography-41.0.3-on-32bit
scripts/ansible: Install cryptography==41.0.3 if dpkg 32-bit arch armhf (interim patch til https://piwheels.org/simple offers better 'cp39' coverage?)
2023-09-30 20:33:46 -04:00
A Holt
efdf693621
scripts/ansible: Also 'apt install libffi-dev python3-dev' on armhf 2023-09-30 20:32:32 -04:00
A Holt
488e2fbe0d
scripts/ansible: Install cryptography==41.0.3 if dpkg arch armhf 2023-09-30 19:49:04 -04:00
A Holt
b1758dcc8b
Merge pull request #3649 from holta/mediawiki-1.40.1
mediawiki/defaults/main.yml: Security release 1.40.1 ETA 2023-09-28
2023-09-28 20:07:44 -04:00
A Holt
ca19c18b80
mediawiki/defaults/main.yml: Security release 1.40.1 ETA 2023-09-28 2023-09-27 11:20:04 -04:00
A Holt
2b6244e5d8
Merge pull request #3648 from holta/stronger-pin-of-virtualenv
Strengthen pin of python3-virtualenv 20.13 in install_python2.sh for KA Lite: 'apt-mark hold python3-virtualenv'
2023-09-26 13:13:01 -04:00
A Holt
a8772498cb
install_python2.sh: apt-mark hold python3-virtualenv 2023-09-26 13:02:00 -04:00
A Holt
98349b1e6b
Merge pull request #3647 from holta/lshw_for_iiab-diagnostics
'lshw -C network' summary of network hardware/interfaces for iiab-diagnostics
2023-09-18 10:17:44 -04:00
A Holt
470b64bc5a
Update iiab-diagnostics.README.md 2023-09-18 10:04:04 -04:00
A Holt
91fcc6ff07
Update iiab-diagnostics.README.md 2023-09-18 10:02:45 -04:00
A Holt
97f1038ab7
scripts/iiab-diagnostics: 'lshw -C network' 2023-09-18 10:00:33 -04:00
A Holt
4a700cc351
2-common/tasks/packages.yml: 'apt install lshw' 2023-09-18 09:51:50 -04:00
A Holt
6333c707b8
README.md: Refine quotation marks 2023-09-16 18:42:29 -04:00
A Holt
0e30549e43
Nextcloud 27.1.0 download & /library/www/nextcloud sizes 2023-09-16 12:34:13 -04:00
A Holt
2804bf186b
Merge pull request #3643 from holta/ansible-core-2.15.4
Recommend ansible-core 2.15.4
2023-09-11 18:29:38 -04:00
A Holt
b184897d1e
iiab-install: Set MIN_ANSIBLE_VER=2.13.12 2023-09-11 18:26:26 -04:00
A Holt
28cfb9cf47
Recommend ansible-core 2.15.4 2023-09-11 18:25:08 -04:00
A Holt
9d4ae8966b
jupyterhub/README.md: Steer implementers away from 32-bit OS's! 2023-09-11 09:39:17 -04:00
A Holt
821f1448b1
CLARIF: apt-not-pip on 32-bit i386 for ansible-core 2023-09-11 01:51:40 -04:00
A Holt
26211999e2
Merge pull request #3638 from holta/python2-on-armhf-raspios12
install_python2.sh: ports.ubuntu.com apt sources for "32-bit" RasPiOS 12 — regardless whether booting 32-bit or 64-bit "armhf" kernels
2023-09-11 01:20:32 -04:00
A Holt
c85c292a5e
install_python2.sh: ports.ubuntu.com apt sources for "32-bit" RasPiOS 12 2023-09-11 00:54:05 -04:00
A Holt
8d1736d116
Merge pull request #3632 from holta/cryptography-experiment
scripts/ansible: Evaluate upstream piwheels / cryptography fix on 32-bit "RasPiOS 12" Lite [create /etc/pip.conf as nec, for now]
2023-09-10 22:50:20 -04:00
A Holt
1986126701
apt instead of pip IFF "i386" AND ansible-core apt installable 2023-09-10 21:44:12 -04:00
A Holt
7191d52a5d
Revert #3634 and #3637 trying /etc/pip.conf w/ cryptography 41.0.3 2023-09-10 21:32:13 -04:00
A Holt
05372f8508
scripts/ansible: Interim /etc/pip.conf for "32-bit" RasPiOS 12 2023-09-10 21:03:27 -04:00
A Holt
48bfe83c3d
Merge branch 'iiab:master' into cryptography-experiment 2023-09-10 19:57:11 -04:00
A Holt
ee20455bd7
scripts/ansible: Clarify PR #3637 test for apt pkg ansible-core 2023-09-10 09:20:54 -04:00
A Holt
1b68242409
Merge pull request #3637 from holta/apt_install_ansible-core_tighter
"32-bit" OS's more resilient: Verify that apt package 'ansible-core' is in fact available (equivalent to testing for Debian 12+ but safer!)
2023-09-10 09:17:24 -04:00
A Holt
42e3485023
Verify apt package 'ansible-core' is truly available on "32-bit" 2023-09-10 09:07:32 -04:00
A Holt
f527807bb8
scripts/ansible: Document 'pipx install ansible-core' 2023-09-08 18:56:55 -04:00
A Holt
eb09a04bd9
scripts/ansible: Mention "+packages" PPA URL 2023-09-08 17:10:23 -04:00
A Holt
14f2f8be69
scripts/ansible: Comment out stale tips RE: ansible-base & /etc/apt 2023-09-08 17:03:10 -04:00
A Holt
8821ea4d3a
Merge pull request #3634 from holta/apt_install_ansible-core_on_32-bit
scripts/ansible: Evaluate 'apt install ansible-core' on "32-bit" RasPiOS 12 Bookworm
2023-09-08 16:15:38 -04:00
A Holt
f363494625
Force 'apt install ansible-core' on "32-bit" IFF "Debian 12+" 2023-09-08 16:05:09 -04:00
A Holt
2326d3a762
Merge pull request #3636 from holta/iiab-summary_uname_-a
iiab-summary output was incomplete: (1) use 'uname -n' to show hostname (2) use 'uname -m' to show kernel arch for RasPiOS
2023-09-08 12:48:40 -04:00
A Holt
9c7c689a55
iiab-summary: 'uname -n' hostname + 'uname -m' kernel arch for RasPiOS 2023-09-08 12:43:30 -04:00
A Holt
b38b45e27c
scripts/ansible: Clarify 'apt install ansible-core' test on "32-bit" OS's 2023-09-08 11:55:37 -04:00
A Holt
8ef8752ad7
scripts/ansible: Evaluate 'apt install ansible-core' on 32-bit RasPiOS 2023-09-08 11:37:32 -04:00
A Holt
cee8a4f3ad
Merge pull request #3633 from holta/iiab-diagnostics-back-to-sprunge
iiab-diagnostics: Change pastebinit service from dpaste.com back to sprunge.us
2023-09-07 22:20:19 -04:00
A Holt
d585def5d3
iiab-diagnostics.README.md: Change dpaste.com back to sprunge.us 2023-09-07 22:17:35 -04:00
A Holt
5da0b60057
iiab-diagnostics: pastebinit service back to sprunge.us 2023-09-07 22:15:56 -04:00
A Holt
5193ea2a44
scripts/ansible: Eval piwheels / cryptography fix on 32-bit "RasPiOS 12" 2023-09-07 17:32:53 -04:00
A Holt
01cc4554f1
Merge pull request #3631 from holta/nodesource-changed
nodejs/tasks/install.yml: nodesource.com requires NEW install method
2023-09-06 16:58:00 -04:00
root
b9a5a67c74 nodejs/tasks/install.yml: nodesource.com requires NEW install method 2023-09-06 16:38:11 -04:00
A Holt
b7bb1dcd78
Merge pull request #3630 from holta/lokole-remove-from-large
local_vars_large.yml: Set Lokole to False/False due to mkwvconf
2023-09-06 15:15:01 -04:00
A Holt
7430573573
local_vars_large.yml: Set Lokole to False/False due to mkwvconf 2023-09-06 15:12:32 -04:00
A Holt
afa0a497be
local_vars_large.yml: sudo iiab-network 2023-08-31 20:20:13 -04:00
A Holt
a609f3041a
local_vars_medium.yml: sudo iiab-network 2023-08-31 20:18:28 -04:00
A Holt
251c92539e
local_vars_small.yml: sudo iiab-network 2023-08-31 20:16:57 -04:00
A Holt
c046ac72bb
local_vars_unittest.yml: sudo iiab-network 2023-08-31 20:15:07 -04:00
A Holt
1afd6f81e9
default_vars.yml: sudo iiab-network 2023-08-31 20:08:36 -04:00
A Holt
f3fe8a65b5
Merge pull request #3626 from holta/node-npm-versions
iiab-diagnostics: Include Node.js and npm versions
2023-08-30 07:51:44 -04:00
A Holt
2b1a8f548a
Update iiab-diagnostics.README.md 2023-08-30 07:51:28 -04:00
A Holt
1c74b55a7f
iiab-diagnostics: Include Node.js and npm versions 2023-08-30 07:47:28 -04:00
A Holt
25d8d6a0c8
nextcloud/tasks/install.yml: Mention 'nginx_high_php_limits: True' behavior #3624 2023-08-24 18:50:44 -04:00
A Holt
46cc189e67
Merge pull request #3625 from holta/gpg-for-apt-installs
FIX: 'apt install gpg' required on Debian 12+ for apt installs of gitea, kolibri, mongodb (for sugarizer), yarn (for internetarchive)
2023-08-24 16:10:57 -04:00
root
34091ba16d 'apt install gpg' required on Debian 12+ for apt installs of gitea, kolibri, mongodb, yarn 2023-08-24 15:55:28 -04:00
A Holt
aabd59cc8e
Merge pull request #3624 from holta/nginx_high_php_limits-forced-by-nextcloud
Force nginx_high_php_limits / 'memory_limit = 512M' if 'nextcloud_install: True'
2023-08-24 10:47:58 -04:00
root
3f1d25bb44 Also run php-settings.yml if nginx_high_php_limits 2023-08-24 10:45:33 -04:00
root
d0158ec50b Force nginx_high_php_limits / 'memory_limit = 512M' if 'nextcloud_install: True' 2023-08-24 10:27:04 -04:00
A Holt
3a37ab385d
sugarizer/tasks/install.yml: Note ~748MB /opt/iiab/sugarizer-1.7.0 2023-08-24 09:42:26 -04:00
A Holt
35006bff5f
nextcloud/tasks/install.yml: Clarify ~162MB d/l unpacks to ~555MB 2023-08-24 09:35:56 -04:00
A Holt
14fc8a1cce
nextcloud/tasks/install.yml: Revise disk space estimate to ~591 MB 2023-08-17 15:02:03 -04:00
A Holt
806387cef3
Merge pull request #3622 from holta/ubuntu-24.04-testing
Welcome Ubuntu 24.04 LTS pre-release testing starting in Oct/Nov (scripts/local_facts.fact)
2023-08-15 17:40:54 -04:00
A Holt
d3c3a63db3
local_facts.fact: Welcome Ubuntu 24.04 testing starting in Oct/Nov 2023-08-15 17:37:16 -04:00
A Holt
c7ee8c845d
Merge pull request #3621 from holta/deprecate-ubuntu-22.10
local_facts.fact: Deprecate support for EOL'd Ubuntu 22.10 (Kinetic Kudu)
2023-08-14 16:24:11 -04:00
A Holt
4508a94528
local_facts.fact: Deprecate support for EOL'd Ubuntu 22.10 2023-08-14 15:54:49 -04:00
A Holt
4c2f07af92
Merge pull request #3620 from holta/ansible-core-2.15.3
scripts/ansible: Recommend ansible-core 2.15.3
2023-08-14 15:49:31 -04:00
A Holt
62e5c0ccb3
scripts/ansible: Recommend ansible-core 2.15.3 2023-08-14 15:40:00 -04:00
A Holt
e2948a99fa
iiab-diagnostics.README.md: sprunge.us -> dpaste.com for #3619 2023-08-12 11:22:04 -04:00
A Holt
e94a1a9cb8
Merge pull request #3619 from holta/new-pastebin-svc3
iiab-diagnostics: Change pastebin service (paste2.org -> dpaste.com)
2023-08-11 20:56:54 -04:00
root
8ce25a7a20 iiab-diagnostics: Change pastebin service (paste2.org -> dpaste.com) 2023-08-11 20:48:19 -04:00
A Holt
19f5109db3
Merge pull request #3618 from holta/new-pastebin-svc2
iiab-diagnostics: Change pastebin service (sprunge.us -> paste2.org)
2023-08-11 18:33:04 -04:00
A Holt
2c38bf505c
iiab-diagnostics: Change pastebin service (sprunge.us -> paste2.org) 2023-08-11 18:22:31 -04:00
A Holt
a1a92b590d
Merge pull request #3617 from holta/ansible-on-i386
Brute Force 'apt install ansible-core' (e.g. 2.14.3 on Debian Bookworm) on 32-bit legacy i386, to avoid rust/wheels/cryptography compiling mess
2023-08-10 23:10:42 -04:00
root
ba596cb5a3 Brute Force 'apt install ansible-core' on 32-bit legacy i386 2023-08-10 22:54:02 -04:00
A Holt
ef8126fffb
Merge pull request #3616 from holta/python2-on-i386
scripts/install_python2.sh: Bullseye apt sources for i386 Debian
2023-08-10 05:29:57 -04:00
root
8a323c6799 scripts/install_python2.sh: Bullseye apt sources for i386 Debian 2023-08-10 05:23:59 -04:00
A Holt
58cb0b4c5a
Merge pull request #3615 from holta/python3-cryptography-i386
scripts/ansible: python3-cryptography for 32-bit i386 e.g. i686
2023-08-10 03:55:21 -04:00
root
6c648cbd9b Clarify 'apt install python3-cryptography' for i386 Ansible 2023-08-10 03:54:18 -04:00
root
50cded27f2 scripts/ansible: python3-cryptography for 32-bit i386 e.g. i686 2023-08-10 03:32:08 -04:00
A Holt
61f3d4a9c2
calibre-web/README.rst: Small refinements 2023-08-06 21:52:06 -04:00
A Holt
79a22d5af6
calibre-web/README.rst: Try for < 80 chars for source readability 2023-08-06 15:57:15 -04:00
A Holt
b3e682f24e
calibre-web/README.rst: Fix to "details above" 2023-08-06 14:59:53 -04:00
A Holt
6a0ad0c5ae
calibre-web/README.rst: Tighten up systemctl examples 2023-08-06 14:52:28 -04:00
A Holt
7b807b4bb0
calibre-web/README.rst: Clarify need to run as root 2023-08-06 13:18:36 -04:00
A Holt
77b6f79213
calibre-web/README.rst: Touchups 2023-08-06 13:02:59 -04:00
A Holt
318ef5aade
calibre-web/README.rst: Clarify password recovery 2023-08-06 11:38:19 -04:00
A Holt
6fce6c7847
calibre-web/README.rst: New 'Install It' section 2023-08-06 10:59:38 -04:00
A Holt
b439aa7724 calibre-web/README.rst: 2 tiny copyedit cleanups 2023-08-05 22:12:22 -04:00
A Holt
ceccade90c
scripts/ansible: Update doc links 2023-08-05 13:30:13 -04:00
A Holt
119d376c79
Merge pull request #3613 from holta/cryptography-40.0.1-on-32bit
scripts/ansible: Install cryptography 40.0.1 on ALL 32-bit arch's
2023-08-05 12:04:08 -04:00
A Holt
11a978b1da
scripts/ansible: Install cryptography 40.0.1 on ALL 32-bit arch's 2023-08-05 12:00:20 -04:00
A Holt
31c9ef6297
calibre-web/README.rst: Clarify hyphen mess! 2023-08-05 08:20:39 -04:00
A Holt
8661026319
calibre-web/README.rst: Overhaul intro 2023-08-05 08:01:51 -04:00
A Holt
fc75b456bd
calibre-web/README.rst: Refine links 2023-08-04 22:29:48 -04:00
A Holt
93d99f9d0a
calibre-web/README.rst: Clarify "Configuration" buttons 2023-08-04 18:51:35 -04:00
A Holt
71dfda824b
calibre-web/README.rst: URL syntax cleanup 2023-07-26 06:45:44 -04:00
A Holt
8b628f9602
calibre-web/README.rst: Clarify ebook-convert may need ~1GB 2023-07-26 06:43:04 -04:00
A Holt
ff5fc18f18
remoteit/README.md: Really fix doc URL for #3611 2023-07-26 05:29:35 -04:00
A Holt
8acf624c52
remoteit/README.md: Fix doc URL for #3611 2023-07-26 05:28:12 -04:00
A Holt
9d27ff0418
Merge pull request #3611 from holta/remoteit-remove-cli
Remote.it CLI can no longer coexist with remoteit Device Package
2023-07-26 05:26:25 -04:00
A Holt
c62d986316
remoteit/README.md: CLI can no longer coexist w/ Device Package 2023-07-26 05:02:44 -04:00
A Holt
aeb7b60ca7
remoteit/tasks/install.yml: Fully excise remote.it CLI 2023-07-26 04:36:46 -04:00
A Holt
9ac22d65ef
Remote.It CLI can no longer coexist with remoteit Device Package 2023-07-26 04:34:11 -04:00
A Holt
3934563ad6
Remote.It CLI can no longer coexist with remoteit Device Package 2023-07-26 04:28:14 -04:00
A Holt
64cdb3869c
venv pip requirements.txt tips (e.g. for Calibre-Web) 2023-07-24 22:55:16 -04:00
A Holt
db7d85c50c
calibre-web/README.rst: Tidy up / clarify 2023-07-22 19:18:55 -04:00
A Holt
17413fd570
calibre-web/README.rst: Outline log levels 2023-07-22 19:15:19 -04:00
A Holt
8df708d473
iiab-install: MIN_ANSIBLE_VER=2.13.11 alongside PR #3610 2023-07-17 22:40:26 -04:00
A Holt
dc7cd39283
Merge pull request #3610 from holta/ansible-core-2.15.2
Recommend ansible-core 2.15.2
2023-07-17 22:37:29 -04:00
A Holt
ff6a0cf4d8
Recommend ansible-core 2.15.2 2023-07-17 22:35:02 -04:00
A Holt
750dd57d6a
Merge pull request #3609 from holta/gitea-1.20-patch
Gitea 1.20 patches, e.g.  app.ini.j2
2023-07-16 18:41:12 -04:00
root
89148e8214 Clarify bogus PGP signing of Gitea binary downloads 2023-07-16 18:38:54 -04:00
root
831fdad5dd Patch app.ini.j2 for Gitea 1.20 2023-07-16 18:21:42 -04:00
A Holt
336b76baa1
Merge pull request #3608 from holta/gitea-1.20
New Gitea release 1.20
2023-07-16 16:04:47 -04:00
A Holt
31644737ae
New Gitea release 1.20 2023-07-16 16:02:11 -04:00
A Holt
c657581e69
calibre-web/tasks/install.yml: Update + clean comments! 2023-07-15 14:50:53 -04:00
A Holt
3f74b51f20
Merge pull request #3607 from holta/calibre-web_with_ffmpeg
calibre-web/tasks/install.yml: Install ffmpeg not just imagemagick
2023-07-15 11:20:42 -04:00
A Holt
e7b314334a
Clarify install of ffmpeg during Calibre-Web install 2023-07-15 11:20:17 -04:00
A Holt
c28e5e6a67
calibre-web/tasks/install.yml: Install ffmpeg not just imagemagick 2023-07-15 11:16:30 -04:00
A Holt
c8307501e5
www_options/tasks/main.yml: Clarify iiab_home_url 2023-07-14 23:18:31 -04:00
A Holt
303498a9d1
Note {{ calibreweb_repo_url }} in Ansible output for #3606 2023-07-14 23:01:55 -04:00
A Holt
8cb282b811
Merge pull request #3606 from holta/calibreweb_repo_url
Softcode calibreweb_repo_url
2023-07-14 22:48:24 -04:00
A Holt
41f4617a4f
calibre-web/tasks/install.yml: Mention 0.6.20 2023-07-14 22:42:16 -04:00
A Holt
8df3848b96
Softcode calibreweb_repo_url in defaults/main.yml 2023-07-14 22:31:51 -04:00
A Holt
65295a100c
Softcode calibreweb_repo_url in install.yml 2023-07-14 22:30:01 -04:00
A Holt
6cf233b332
calibre-web-nginx.conf.j2: Quote all 3 URL params 2023-07-14 12:11:10 -04:00
A Holt
975ce2f54e
PR #3605: Add "1.40" quotes for trailing zero 2023-07-02 14:06:22 -04:00
A Holt
fc21ba80f7
Merge pull request #3605 from holta/mediawiki-1.40.0
MediaWiki 1.40.0 (new release)
2023-06-30 13:32:27 -04:00
A Holt
712b26c402
MediaWiki 1.40.0 (new release) 2023-06-29 16:29:13 -04:00
A Holt
4be4ac68d4
usb_lib/tasks/install.yml: Fix exFAT doc URL 2023-06-27 17:02:11 -04:00
A Holt
586bfc5cb1
nodejs/README.md: Soften 64-bit "Zero 2 W" warning 2023-06-25 09:23:09 -04:00
A Holt
9b57d39bf5
README.md: Fix typo in URL 2023-06-25 05:01:54 -04:00
A Holt
55caae4eec
README.md: Link to FAQ "quick install" tips 2023-06-25 05:00:22 -04:00
A Holt
dd2ed56951
nextcloud/README.md: Strike ownyourbits.com (site died) 2023-06-22 09:27:57 -04:00
A Holt
d7ec19a70b
Fix doc link to www_options/tasks/php-settings.yml 2023-06-22 08:07:04 -04:00
A Holt
cf724194f8
Update nextcloud/README.md PHP & prereq links 2023-06-22 08:00:11 -04:00
A Holt
ec64e6ff84
Merge pull request #3604 from holta/ansible-core-2.15.1
Recommend ansible-core 2.15.1 [and interim workaround to start Asterisk, so FreePBX can install]
2023-06-21 09:54:05 -04:00
A Holt
ea3bb783cc
Clarify freepbx.yml hack, to start Asterisk (awaiting ansible-core 2.15.x fix) 2023-06-21 09:53:43 -04:00
root
822c4c2e08 Interim hack to start Asterisk til ansible-core 2.15.x recovers 2023-06-21 09:21:39 -04:00
A Holt
c6316c1df7
freepbx.yml: Clarify 2-step FreePBX install (1st stab) 2023-06-20 15:24:15 -04:00
A Holt
ed73e94b46
freepbx.yml: Interim use of 'nohup' for ansible 2.15.x regression 2023-06-20 14:44:25 -04:00
A Holt
36c5caecd1
Recommend ansible-core 2.15.1 2023-06-20 13:41:41 -04:00
A Holt
14d5c8a63c
Merge pull request #3584 from holta/node20
Begin transition to 'nodejs_version: 20.x' [& internetarchive upstream patch]
2023-06-18 15:37:54 -04:00
A Holt
8387cd94a3
nextcloud/tasks/install.yml: Clarify Nextcloud 27 reqs 2023-06-15 09:01:38 -04:00
A Holt
c49a68d9aa
Merge pull request #3600 from holta/kiwix-arch-changes
WIP: Kiwix arch changes
2023-06-14 04:59:39 -04:00
A Holt
b3f284c35a
Update/clarify remote.it's latest pricing/plans 2023-06-13 00:33:45 -04:00
A Holt
392eb211b3
Merge pull request #3601 from holta/remoteit-fails-on-gha
remote.it workaround for incoming ICMP firewalls e.g. GitHub Actions [at least allowing IIAB installs to proceed, when service schannel does not exist]
2023-06-12 23:21:20 -04:00
A Holt
87d3bccd25
remote.it workaround for incoming ICMP firewalls e.g. GitHub Actions 2023-06-12 23:08:57 -04:00
A Holt
c4e94c5be0
kiwix/defaults/main.yml: Update redirect doc link 2023-06-12 22:08:51 -04:00
A Holt
21ca318778
Revert May's kiwix-tools armhf 3.5.0 workaround to 3.4.0 2023-06-12 14:29:47 -04:00
A Holt
934f2c1799
Kiwix support for 'armv6l: armv6' & 'armv7l: armv8' (tentative!) 2023-06-12 14:25:12 -04:00
A Holt
9db2496b95
Merge pull request #3599 from holta/transmission_compile_latest
WIP: Try 'transmission_compile_latest: True' BitTorrent software (e.g. Transmission 4.1.0-dev, instead of 3.0 from May 2020)
2023-06-12 13:31:22 -04:00
A Holt
251694f2f2
Free up disk (~1.6 GB) after Transmission compile 2023-06-12 12:56:36 -04:00
A Holt
2c84233946
Compiling Transmission requires 'apt install libsystemd-dev' 2023-06-12 09:59:31 -04:00
A Holt
9df95cedf8
transmission/README.rst: Overhaul logging instructions 2023-06-12 01:31:19 -04:00
A Holt
16ba23bf3e
transmission/README.rst: Link to transmission-rpc docs 2023-06-12 01:00:58 -04:00
A Holt
71010c0fee
Clarify 'git clone https://github.com/transmission/transmission' 2023-06-12 00:51:20 -04:00
A Holt
7f09784fe1
'transmission-daemon --log-level=error' since ~2020 2023-06-12 00:48:31 -04:00
A Holt
122a84588a
transmission/tasks/install.yml: Clarify compile link 2023-06-12 00:44:14 -04:00
root
beae3643b9 transmission-daemon.service: --log-error -> --log-level=error 2023-06-11 22:37:23 -04:00
A Holt
d03ff5d629
Hint: use transmission-remote NOT deprecated transmission-cli 2023-06-11 22:17:46 -04:00
root
73f1d6cf8e WIP: Try 'transmission_compile_latest: True' 2023-06-11 21:33:35 -04:00
A Holt
ef804c2534
Merge pull request #3598 from holta/deb13
Stub support for upcoming Debian 13 "Trixie" pre-releases
2023-06-11 09:10:42 -04:00
root
e5a9cee54f Stub support for upcoming Debian 13 "Trixie" pre-releases 2023-06-11 07:59:09 -04:00
A Holt
fb17537fb5
Merge pull request #3597 from holta/df-syntax
Cleaner df syntax, to record each IIAB App's initial disk usage in /etc/iiab/iiab.ini
2023-06-10 10:07:07 -04:00
root
3f63c0b4dd Clean df syntax, for each app's disk usage in iiab.ini 2023-06-10 09:10:47 -04:00
A Holt
2d62b975bf
Merge pull request #3596 from holta/gha-deb12-armv7
GitHub Actions context refinements building on PR #3595, for IIAB testing on Debian 12 on emulated Raspberry Pi 3 B
2023-06-08 16:37:33 -04:00
A Holt
0845b9b484
Likewise update job name to "deb12 on rpi3" 2023-06-08 15:47:42 -04:00
A Holt
10ab5dc91b
Rename 30min-iiab-test-install-debian12.yml to 30min-iiab-test-install-deb12-on-rpi3.yml 2023-06-08 15:32:20 -04:00
A Holt
0170835529
Try 30min-iiab-test-install-raspios.yml like -debian12.yml 2023-06-08 15:30:47 -04:00
A Holt
feccd64b4a
Update 30min-iiab-test-install-debian12.yml 2023-06-08 15:26:25 -04:00
A Holt
4d6bdaf808
Update 10min-iiab-test-install.yml 2023-06-08 15:25:48 -04:00
A Holt
935cc5606e
Similarly update 10min-iiab-test-install.yml 2023-06-08 15:23:01 -04:00
A Holt
751931a917
GHA: Try tightening up, with 'uname -a' 2023-06-08 15:14:46 -04:00
A Holt
dddd7ce0b4
GHA: Try dumping runner contexts 2023-06-08 15:04:52 -04:00
A Holt
81ba0fc7b7
GHA: Try recording more 'runner context' on top of job 2023-06-08 14:49:07 -04:00
A Holt
a3104569b1
Merge pull request #513 from neomatrixcode/master
Sync from neomatrixcode:iiab:master
2023-06-08 14:42:58 -04:00
neomatrixcode
bac736d616 add uname 2023-06-08 12:27:31 -06:00
neomatrixcode
ba404ac0f9 remove quote 2023-06-08 12:20:54 -06:00
neomatrixcode
28d51dd064 remove OS parameter 2023-06-08 12:17:09 -06:00
neomatrixcode
815f098475 update hostnamectl 2023-06-08 12:13:52 -06:00
neomatrixcode
249d6fd24d echo hostnamectl 2023-06-08 12:08:00 -06:00
Josué Acevedo (Neomatrix)
03531dfdec
GitHub Actions .github/workflows/30min-iiab-test-install-debian12.yml for CI/CD & QA (#2)
* add debian12
2023-06-07 21:58:51 -06:00
A Holt
30c54e8448
transmission/tasks/install.yml: Remove stale comment 2023-06-07 19:43:54 -04:00
A Holt
a9585365c0
transmission/README.rst: Add "Docs" section 2023-06-07 19:33:01 -04:00
A Holt
7cecb4d89b
scripts/iiab-size.py: Clarify PR #3594 2023-05-30 16:16:46 -04:00
A Holt
c22a713ec4
scripts/iiab-item-size.py: Clarify PR #3594 2023-05-30 16:15:03 -04:00
A Holt
63771833ad
Merge pull request #3594 from neomatrixcode/item-size
Auto-calculate IIAB + EduPack disk space needs, in advance [& design review]
2023-05-30 16:05:09 -04:00
neomatrixcode
87bdd3fa0c update function get_size 2023-05-29 21:47:48 -06:00
neomatrixcode
efa974b26a add iiab size 2023-05-27 14:52:30 -06:00
A Holt
424d209513
Merge pull request #3593 from holta/df
Roughly Estimate iiab_software_disk_usage in /etc/iiab/iiab.ini 'summary' section
2023-05-27 16:30:33 -04:00
A Holt
e06f833c6b
Explain saving disk_space_a_priori to iiab.ini 2023-05-27 15:47:51 -04:00
A Holt
7205219292
create_iiab_ini.yml: Rename iiab.ini section to 'initial' 2023-05-27 15:24:13 -04:00
root
3c5b071c25 Estimate IIAB software disk usage, in /etc/iiab/iiab.ini 'summary' section 2023-05-27 14:07:13 -04:00
A Holt
1f2d0102a9
Merge pull request #3592 from holta/df
Record approx disk usage for 45 roles (to iiab.ini)
2023-05-27 04:42:23 -04:00
root
fc524462ba Record approx disk usage for 45 roles (to iiab.ini) 2023-05-27 03:33:35 -04:00
A Holt
92142f0e7e
Merge pull request #3591 from holta/lokole-problem
local_vars_medium.yml: Avoid Lokole for now due to #3572
2023-05-26 21:51:01 -04:00
A Holt
a57710c117
local_vars_medium.yml: Avoid Lokole for now due to #3572 2023-05-26 21:47:14 -04:00
A Holt
8ae4f020e9
Refine PR #3590 to document ansible-core 2.14.6 recommendation 2023-05-22 17:47:29 -04:00
A Holt
2973b283df
Merge pull request #3590 from holta/ansible-core-2.14.6
TEMPORARILY revert ansible-core 2.15.0 to 2.14.6 til the dust settles — e.g. for FreePBX #3588
2023-05-22 12:54:54 -04:00
A Holt
56d2733063
TEMPORARILY revert ansible-core 2.15.0 to 2.14.6 for #3588 2023-05-22 11:56:18 -04:00
A Holt
3d87b0f203
Merge pull request #3587 from holta/pin_virtualenv
Pin python3-platformdirs & python3-virtualenv to 22.04 versions, for Python 2 on Ubuntu 23.10+ ? [for KA Lite]
2023-05-21 21:52:41 -04:00
A Holt
987fd7324f
install_python2.sh: Clarify pip & apt virtualenv options 2023-05-21 09:18:25 -04:00
A Holt
842bf91f76
install_python2.sh: Honor Bookworm's built-in virtualenv 2023-05-21 08:25:39 -04:00
A Holt
352ddcf695
install_python2.sh: Clarify virtualenv (22.04 for now, 23.04 later?) 2023-05-21 07:52:17 -04:00
root
4e430da1a9 Pin python3-platformdirs & python3-virtualenv to 22.04 for Python 2 on 23.10 ? 2023-05-20 20:46:47 -04:00
A Holt
294ccf6f78
Merge pull request #3582 from holta/kalite-on-2310
'pip install virtualenv==20.21.1' for Python 2 required by KA Lite on Ubuntu 23.10
2023-05-20 17:36:14 -04:00
A Holt
a55c033a16
Update install_python2.sh 2023-05-20 17:35:03 -04:00
A Holt
7209bcd97d
install_python2.sh: Summarize messy virtualenv options 2023-05-20 17:33:37 -04:00
root
5b4f4d79e6 Begin transition to 'nodejs_version: 20.x' 2023-05-20 11:09:03 -04:00
A Holt
e8a3129f13
Further clarify kalite/tasks/install.yml 2023-05-20 08:53:45 -04:00
A Holt
6dec23b6c3
scripts/install_python2.sh: Explain pip install of older virtualenv 2023-05-19 17:48:16 -04:00
A Holt
b61053cc3a
kalite/tasks/install.yml: Fix typos "is_linuxmint_21" 2023-05-19 17:38:34 -04:00
root
e1df2a5061 kalite/tasks/install.yml: Force Python 2 if Debian > 11 or Ubuntu > 22.04 2023-05-19 16:38:32 -04:00
root
9ca80db3fa 'pip install virtualenv==20.21.1' for KA Lite on Ubuntu 23.10 2023-05-19 15:45:38 -04:00
A Holt
046490ad66
Merge pull request #3579 from neomatrixcode/master
GitHub Actions .github/workflows/30min-iiab-test-install-raspios.yml for CI/CD & QA
2023-05-16 14:21:41 -04:00
codeneomatrix
95cb6f415c update actions/checkout to v3.1.0 2023-05-16 10:16:53 -06:00
Josué Acevedo (Neomatrix)
bc3fba6b22
Merge branch 'iiab:master' into master 2023-05-15 23:49:41 -06:00
A Holt
0cc3a064a9
Merge pull request #3580 from holta/rpi_model-from-proc-cpuinfo
Set rpi_model from /proc/cpuinfo for QEMU
2023-05-16 01:46:39 -04:00
root
8339e46c5d Set rpi_model from /proc/cpuinfo for QEMU 2023-05-16 01:42:22 -04:00
codeneomatrix
8e9401dbe8 update file 2023-05-15 23:17:51 -06:00
codeneomatrix
23ef49f7df change namefile 2023-05-15 23:16:04 -06:00
Josué Acevedo (Neomatrix)
0812cc4bc3
Update 10min-iiab-test-install-raspbian.yml
change 'target' to 'arch'
2023-05-15 21:02:00 -06:00
Josué Acevedo (Neomatrix)
ea2dc1ae62
GitHub Actions .github/workflows/10min-iiab-test-install-raspbian.yml for CI/CD & QA (#1)
* add .github/workflows/10min-iiab-test-install-raspbian.yml
2023-05-15 20:53:35 -06:00
root
58961b862c More consistent punctuation in local_vars files 2023-05-15 17:53:44 -04:00
A Holt
f3969bd973
Merge pull request #3578 from holta/kiwix32-tmp-patch
Fix PR #3576, allowing regular Kiwix installs too!
2023-05-15 16:54:50 -04:00
root
7f714e7c65 Fix PR #3576, allowing regular Kiwix installs too! 2023-05-15 16:51:08 -04:00
A Holt
d74f80b446
Merge pull request #3577 from holta/ansible-core-2.15.0
Recommend ansible-core 2.15.0
2023-05-15 14:20:30 -04:00
root
687c497669 Recommend ansible-core 2.15.0 2023-05-15 14:03:21 -04:00
A Holt
9f866078a0
Update ubuntu-2310.yml 2023-05-14 20:33:43 -04:00
A Holt
1157bb0f24
Update raspbian-12.yml 2023-05-14 20:32:46 -04:00
A Holt
a23faea688
Update ubuntu-2304.yml 2023-05-14 20:31:46 -04:00
A Holt
e3bb5c1ed5
Update debian-12.yml 2023-05-14 20:29:43 -04:00
A Holt
2f676c5b72
Merge pull request #3576 from holta/kiwix32-tmp-patch
Revert to kiwix-tools 3.4.0 if armhf 3.5.0 downloads [for 32-bit Raspberry Pi Zero W]
2023-05-14 09:35:43 -04:00
root
b1a219bcae Revert to kiwix-tools 3.4.0 if armhf 3.5.0 downloads 2023-05-14 09:06:29 -04:00
A Holt
e227fdc29e
roles/kiwix/README.rst: Clarify proxying 2023-05-13 22:22:01 -04:00
A Holt
f8a543c4b8
Merge pull request #3575 from holta/kiwix-tools_aarch64
Try aarch64 version of kiwix-tools 3.5.0+ [WARNING: such microSD cards will no longer be insertable in 32-bit Raspberry Pi Zero W]
2023-05-13 19:24:18 -04:00
A Holt
5eab78b6bf
Clarify kiwix/defaults/main.yml as kiwix-tools & RasPiOS evolve 2023-05-13 19:23:46 -04:00
A Holt
cb36d2b02f
Try aarch64 version of kiwix-tools 3.5.0+ 2023-05-13 11:05:39 -04:00
A Holt
6ce8d05078
Merge pull request #3569 from holta/gha-stub
GitHub Actions stub .github/workflows/10min-iiab-test-install.yml for CI/CD & QA
2023-05-06 01:08:02 -04:00
root
1939ad22e1 GHA Stub: .github/workflows/10min-iiab-test-install.yml 2023-05-06 00:48:07 -04:00
A Holt
fe208879ef
Merge pull request #3567 from holta/sugarizer-bypass-32
If 32-bit OS, bypass Sugarizer & Explain during iiab-install
2023-05-03 17:33:55 -04:00
root
139696fa31 If 32-bit OS, bypass Sugarizer & Explain during iiab-install 2023-05-03 17:00:02 -04:00
A Holt
7e1dff54d2
scripts/ansible: Fix typo in comment 2023-05-03 03:52:39 -04:00
A Holt
090ede2d99
Merge pull request #3565 from holta/firmware2
Clarify PR #3564 (pre-download WiFi firmware backups)
2023-05-01 20:35:37 -04:00
root
38a292227d Clarify PR #3564 (pre-download WiFi firmware backups) 2023-05-01 20:29:49 -04:00
A Holt
52a81ec782
Merge pull request #3564 from holta/firmware2
Allow multiple (timestamped) backups of WiFi firmware originals (as your OS evolves!)
2023-05-01 18:52:40 -04:00
root
7b214064fa Allow multiple (timestamped) backups of WiFi firmware originals 2023-05-01 18:46:27 -04:00
A Holt
7db038c72c
Merge pull request #3562 from holta/vnstat2
Toughen up vnStat: Mitigate #3539 db errors, stop using 2011's /etc/vnstat.conf, etc
2023-05-01 12:23:11 -04:00
A Holt
423eecc293
CLARIF: Let's use apt version of /etc/vnstat.conf (not 2011-era template) 2023-05-01 11:41:04 -04:00
root
21a7d70c7e Toughen up vnStat: Mitigate #3539 db errors, stop using 2011's /etc/vnstat.conf, etc 2023-05-01 11:21:39 -04:00
A Holt
9c4a6ce723
Merge pull request #3560 from holta/munin-IPv6-workaround
Temporarily Enable sysctl's IPv6 during Munin install/enable, so munin-node.service starts
2023-04-30 19:21:50 -04:00
root
e044de856a Enable sysctl's IPv6 during Munin install/enable, so munin-node.service starts 2023-04-30 19:15:44 -04:00
A Holt
47a771f8c1
network/tasks/install.yml: Remove typo in comment 2023-04-30 18:43:11 -04:00
A Holt
6e493c9131
network/tasks/install.yml: Clarify 4 sysctl vars 2023-04-30 18:42:08 -04:00
A Holt
d768757f7a
network/tasks/install.yml: Clarify 4 sysctl defaults 2023-04-30 17:33:51 -04:00
A Holt
1b592445f5
Merge pull request #3559 from holta/moodle-php7-temporarily
Revert to Moodle 4.1 if PHP 7 + toughen Moodle/Nextcloud
2023-04-30 14:29:42 -04:00
root
0324dfb918 Revert to Moodle 4.1 if PHP 7 + toughen Moodle/Nextcloud 2023-04-30 14:25:30 -04:00
A Holt
38083b4314
pbx/README.adoc: Fix typo (link to #3556) 2023-04-29 13:32:22 -04:00
A Holt
84f3ee8073
pbx/README.adoc: Link to #3556 PHP 8 speculation 2023-04-29 13:30:40 -04:00
A Holt
57bf481315
Merge pull request #3555 from jvonau/hotfix
iiab-clone-wifi needs template from hostapd - record wifi_up_down
2023-04-27 19:06:58 -04:00
Jerry Vonau
1884f484ae iiab-clone-wifi needs template from hostapd - record wifi_up_down 2023-04-27 10:40:04 -05:00
A Holt
63b6724c4a
Merge pull request #3549 from holta/reg_dom2+iiab-hotspot-off_etc
Unified PR for WiFi hotspot testing of channel-changing, country code, etc
2023-04-27 11:06:05 -04:00
A Holt
df08ecfef6
"Couldn't find an UPSTREAM SSID in files like wpa_supplicant.conf" 2023-04-27 07:49:40 -04:00
A Holt
edf99982cf
Merge pull request #3554 from jvonau/jupyterhub
Jupyterhub
2023-04-26 21:18:03 -04:00
A Holt
8eb29a9ede
rpi_debian.yml: Fix both "country_code is defined" -> "country_code.stdout is defined" 2023-04-26 18:57:05 -04:00
A Holt
fc46f34f65
matomo/tasks/main.yml: Explanation for nginx.yml was stale! 2023-04-26 17:51:03 -04:00
A Holt
cc0a32cd67
matomo/tasks/nginx.yml: Remove stale refs to box/maps 2023-04-26 17:48:07 -04:00
Jerry Vonau
0f8fdb728a Merge branch 'nodesource' into jupyterhub 2023-04-26 07:20:29 -05:00
Jerry Vonau
4bd5d1e9f6 verbage in other roles 2023-04-26 07:20:13 -05:00
Jerry Vonau
dc35445c9c remove nodesource.list if failed 2023-04-26 07:17:40 -05:00
Jerry Vonau
eacfec8c91 remove python3-venv from roles 2023-04-26 06:45:27 -05:00
Jerry Vonau
fda10dbe66 jupyterhub use --system-site-packages for psutils 2023-04-26 06:43:28 -05:00
A Holt
42042976f4
Merge pull request #3551 from holta/moodle-4.2
Moodle 4.2 (new release)
2023-04-25 15:48:48 -04:00
A Holt
cac14ee4bb
moodle/tasks/install.yml: Update comments for Moodle 4.2 2023-04-25 15:46:43 -04:00
A Holt
18fe41b9c6
moodle_version: MOODLE_402_STABLE (for Moodle 4.2) 2023-04-25 15:44:14 -04:00
A Holt
49fac85eca
Merge pull request #512 from jvonau/reg_dom3
softcode
2023-04-25 11:37:27 -04:00
Jerry Vonau
40e4b9cce9 softcode 2023-04-25 10:32:10 -05:00
A Holt
409efd3222
Merge pull request #3550 from holta/ansible-core-2.14.5
ansible-core 2.14.5 & beefed up for latest 32-bit ARM (armhf) cryptography / piwheels / rust problems
2023-04-24 18:31:38 -04:00
A Holt
553626d123
Merge pull request #511 from jvonau/reg_dom3
Reg dom3
2023-04-24 14:14:50 -04:00
A Holt
ef3ddd8326
Merge branch 'reg_dom2+iiab-hotspot-off_etc' into reg_dom3 2023-04-24 14:10:35 -04:00
A Holt
fb2a9c8222
Revert c49adcf "borrow some bits from iiab-clone-wifi" (& preserve cf67d4c "netplan-systemd staging" ?) 2023-04-24 14:02:35 -04:00
Jerry Vonau
25e44b3385 service set start timeout 2023-04-24 12:53:51 -05:00
A Holt
bfbb4f06f2
Delete adm-run-roles-tmp.yml 2023-04-24 13:48:24 -04:00
Jerry Vonau
6fe64a9097
Merge branch 'reg_dom2+iiab-hotspot-off_etc' into reg_dom3 2023-04-24 12:47:58 -05:00
Jerry Vonau
088537b9b8 clean up netd-disp2 2023-04-24 12:42:16 -05:00
Jerry Vonau
ba9e9ee01a capture running service 2023-04-24 12:27:00 -05:00
Jerry Vonau
78603de7e6 capture running code 2023-04-24 12:23:56 -05:00
root
78c22d3df5 scripts/ansible: 2.14.5, cryptography==40.0.1 on armhf, for-loop fix 2023-04-24 13:07:24 -04:00
root
a17103f14f Explain & lint templates/hostapd/iiab-test-wifi.j2 2023-04-24 17:48:03 +01:00
Jerry Vonau
544a1f2959 https://github.com/iiab/iiab/issues/3547 2023-04-24 10:34:54 -05:00
Jerry Vonau
e1722645c5 shellcheck and whitespace 2023-04-24 10:25:46 -05:00
Jerry Vonau
04ce0a9d7f netplan2 2023-04-24 09:17:07 -05:00
root
73e123a357 Merge branch 'iiab-hotspot-off_etc' of https://github.com/holta/iiab into asterisk-20--reg_dom2--iiab-hotspot-off_etc 2023-04-24 11:43:01 +01:00
Jerry Vonau
cb86366b13 shellcheck 2023-04-24 01:38:56 -05:00
Jerry Vonau
995bc6308b drop unused assignment 2023-04-24 01:12:37 -05:00
Jerry Vonau
d738fdc1ef use dash in place of bash, drop last bashism 2023-04-24 01:10:03 -05:00
Jerry Vonau
ef6486b09b grouping, recording, staging 2023-04-23 16:11:03 -05:00
Jerry Vonau
cf67d4c9d7 netplan-systemd staging 2023-04-23 14:56:10 -05:00
Jerry Vonau
bc4850a09c RasPiOS could be running NM backend, test if dhcpcd is running, drop rfkill 2023-04-23 13:55:37 -05:00
Jerry Vonau
c49adcf395 borrow some bits from iiab-clone-wifi 2023-04-23 13:53:05 -05:00
Jerry Vonau
a49a0680d3 drop NA 2023-04-23 12:23:33 -05:00
Jerry Vonau
348974be6f stdout country code detection 2023-04-23 08:21:09 -05:00
Jerry Vonau
d7d6404c53 tighten up country code detection 2023-04-23 08:02:57 -05:00
Jerry Vonau
a6cd9ded51 replace backtics 2023-04-23 02:03:16 -05:00
Jerry Vonau
472fdfd152 style 2023-04-23 01:59:52 -05:00
Jerry Vonau
b17cab4794 run after NM and netplan 2023-04-23 01:25:24 -05:00
Jerry Vonau
0c037b2763 \[], echo, run netplan restart sooner, NM wait, move hostapd restart 2023-04-23 01:24:20 -05:00
Jerry Vonau
262ca468e9 tighten up when to run wifi detection more 2023-04-22 22:05:01 -05:00
A Holt
9ed5cd53c7
iiab-hotspot-on: sed "-e" flag optional 2023-04-22 11:50:51 -04:00
A Holt
319b75fe7d
iiab-hotspot-off: sed "-e" flag optional 2023-04-22 11:50:04 -04:00
A Holt
cdc77b121c
Clarifying templates/hostapd/iiab-hotspot-off ? 2023-04-22 10:06:54 -04:00
A Holt
d1a7ab2b74
Tighten up templates/hostapd/iiab-hotspot-on just a bit? 2023-04-22 10:03:57 -04:00
A Holt
07a63f3b8a
Tighten up templates/hostapd/iiab-hotspot-off just a bit? 2023-04-22 09:59:29 -04:00
Jerry Vonau
8aaa459d9c restarting seems excessive just use start 2023-04-20 12:56:14 -05:00
Jerry Vonau
4fe56e787e tighten up when to run wifi detection 2023-04-20 11:29:15 -05:00
Jerry Vonau
908c8f4951 tighten up when to install ap0 file 2023-04-20 11:29:15 -05:00
Jerry Vonau
d831f05769 NM ssid detection 2023-04-20 11:29:15 -05:00
A Holt
671343b9e9
Merge pull request #3537 from jvonau/reg_dom
RFC 2210 2304 fixed https://bugs.launchpad.net/bugs/1951586 [netplan WiFi country code]
2023-04-19 18:07:24 -04:00
Jerry Vonau
b286d9d6e9 easier diff 2023-04-19 10:46:45 -05:00
Jerry Vonau
3c3affb16a softcode 2023-04-19 10:44:39 -05:00
Jerry Vonau
5341cc6ca2 typo, use double quotes, always restart netplan wifi 2023-04-19 10:38:50 -05:00
Jerry Vonau
27c3b1b9a0 Just set and let the next stanza in main handle the call 2023-04-18 23:38:58 -05:00
Jerry Vonau
ff905ef5d8 dispatcher has a call to alter hostapd.conf 2023-04-18 23:38:58 -05:00
Jerry Vonau
f79f4c0f46 clearer logic 2023-04-18 16:08:08 -05:00
A Holt
ccc074ee73
Merge pull request #3540 from holta/rescues
Allow rescue/continue if CUPS or Samba installs fail [if skip_role_on_error: True]
2023-04-17 14:05:54 -04:00
root
7a31b02a67 Allow rescue/continue if CUPS or Samba installs fail 2023-04-17 13:58:21 -04:00
Jerry Vonau
e63028f8ee record 2023-04-16 19:38:48 -05:00
Jerry Vonau
3ae4627956 use shell 2023-04-16 19:20:11 -05:00
A Holt
2f40184de8
Merge pull request #3503 from jvonau/calweb_base
use --system-site-packages and install package to omit building 'netifaces' wheel [Calibre-Web]
2023-04-16 17:23:33 -04:00
Jerry Vonau
061a96a5ad positional ordering 2023-04-16 13:43:16 -05:00
Jerry Vonau
4089be6b25 always remove old virtual environment 2023-04-16 08:31:52 -05:00
Jerry Vonau
7845a8bddc hints for iiab-hotspot-on|off 2023-04-16 05:55:50 -05:00
Jerry Vonau
2f321dc0a4 use 'iw reg get' in hostapd if present 2023-04-16 05:29:22 -05:00
Jerry Vonau
bb95816c79 use country value in hostapd if present 2023-04-16 05:29:22 -05:00
Jerry Vonau
a1aaf70975 2210 2304 fixed https://bugs.launchpad.net/bugs/1951586 2023-04-14 08:50:23 -05:00
A Holt
c9ed0a0410
Merge pull request #3535 from jvonau/python2_fix2
notes and dependencies [& test adding Python 2 to Debian 12]
2023-04-12 11:46:02 -04:00
Jerry Vonau
fbb614b1c6 cleanup 2023-04-12 08:45:56 -05:00
Jerry Vonau
191ba39129 seems to be always installed 2023-04-12 02:28:05 -05:00
Jerry Vonau
ca4cd1a260 apt export 2023-04-12 01:58:41 -05:00
Jerry Vonau
1738f7c540 always overwrite 2023-04-12 01:38:04 -05:00
Jerry Vonau
ba2d00fd5a split the arm64/amd64 repos 2023-04-12 01:29:23 -05:00
Jerry Vonau
df3590fb47 thoughts going forward 2023-04-12 01:08:39 -05:00
Jerry Vonau
3e10fa7bf9 forgot a # 2023-04-11 23:20:42 -05:00
Jerry Vonau
3aaeca991e using repos 2023-04-11 23:18:53 -05:00
Jerry Vonau
e6c4170f7c pending feedback keyring 2023-04-11 23:13:25 -05:00
Jerry Vonau
f95db00faf switch order for easier diff 2023-04-11 22:34:00 -05:00
Jerry Vonau
6e08ff35eb switch back to explicit dependencies 2023-04-11 22:21:01 -05:00
Jerry Vonau
5253c31d93 bookworm armhf 2023-04-11 13:36:40 -05:00
Jerry Vonau
32d40f038d more notes 2023-04-11 10:57:39 -05:00
Jerry Vonau
57833472a9 media-types 2023-04-11 10:09:05 -05:00
Jerry Vonau
29d0f0bf90 notes and dependencies 2023-04-11 09:29:22 -05:00
A Holt
db84a0d03f
Merge pull request #3534 from jvonau/python2_fix
Python2 fix
2023-04-11 10:27:28 -04:00
Jerry Vonau
c17cf8dcc8 FUTURE python2 - use jammy for armhf on ubuntu 2023-04-11 08:38:37 -05:00
Jerry Vonau
f27a34708a FUTURE python2 - use bullseye for armhf 2023-04-11 08:27:28 -05:00
A Holt
4b01b226df
Merge pull request #3533 from EMG70/pbx-readme
Pbx readme [Wave Lite app option, so Android phones actually ring when screen's locked etc]
2023-04-10 20:29:25 -04:00
A Holt
b75b5a65e4
pbx/README.adoc: Copyedit tweak 2023-04-10 13:06:45 -04:00
EMG70
28345650f9
Update README.adoc 2023-04-10 17:36:47 +01:00
A Holt
660f2f0940
pbx/README.adoc copyedits/suggestions for review 2023-04-10 12:34:21 -04:00
EMG70
0695907bc0
Update README.adoc 2023-04-10 17:31:32 +01:00
EMG70
0d900a32ab
Update README.adoc 2023-04-10 17:08:48 +01:00
EMG70
273c1fd257
Update README.adoc 2023-04-10 17:06:02 +01:00
EMG70
32e5324ebd
Add files via upload 2023-04-10 17:00:57 +01:00
EMG70
d0d95b323f
Add files via upload 2023-04-10 16:57:23 +01:00
EMG70
35c503945a
Delete Wave_phone_connected.png 2023-04-10 16:55:59 +01:00
EMG70
ad57d68b67
Add files via upload 2023-04-10 16:54:18 +01:00
EMG70
aeacbc551f
Add files via upload 2023-04-10 16:33:27 +01:00
EMG70
0ae7073e00
Update README.adoc 2023-04-10 15:14:02 +01:00
A Holt
8fa5a9c4b6
Merge pull request #3532 from jvonau/apache_error
BUG: no path
2023-04-10 04:06:25 -04:00
Jerry Vonau
9323fd897a no path 2023-04-09 21:38:21 -05:00
A Holt
834048c9d1
Merge pull request #3531 from jvonau/kalite_typo
kalite - dup'd line typo
2023-04-09 18:49:44 -04:00
Jerry Vonau
be1708a6df kalite - dup'd line typo 2023-04-09 17:28:08 -05:00
A Holt
1eabb9b997
Merge pull request #3529 from jvonau/kalite_ssl1.1
ka-lite libssl1.1 use raspi repo
2023-04-09 16:27:51 -04:00
root
2722e1ac14 libssl1.1 use raspi repo 2023-04-09 15:00:01 -05:00
A Holt
d960b43f98
vars/ubuntu-2310.yml: Tweak PR #3527 2023-04-08 13:22:58 -04:00
A Holt
a4a7b3a6b5
Merge pull request #3527 from jvonau/python2_fix
Python2 fix [for KA Lite on Debian 12 or Ubuntu 23.04 / 23.10]
2023-04-08 13:21:17 -04:00
Jerry Vonau
5eac4ea24a typo and layout 2023-04-08 02:49:06 -05:00
Jerry Vonau
33f00a0853 armhf 2023-04-06 17:15:33 -05:00
Jerry Vonau
cd6d04108a arm64 2023-04-06 16:56:37 -05:00
Jerry Vonau
af7a646002 amd64 2023-04-06 16:17:44 -05:00
Jerry Vonau
847751aed3 support Ubuntu 23.10 2023-04-06 07:14:48 -05:00
Jerry Vonau
9880ed1d76 .so files2 2023-04-05 21:06:44 -05:00
Jerry Vonau
9f87beb9c9 workaround python2 being unavailable 2023-04-05 13:02:43 -05:00
A Holt
a6b8a5bfc8
default_vars.yml: 'is_raspbian_12: False' for PR #3525 2023-04-04 18:11:39 -04:00
A Holt
a0a43f3048
Merge pull request #3525 from jvonau/raspios12
RasPiOS-12
2023-04-04 18:06:25 -04:00
Jerry Vonau
413f740496 RasPiOS-12 2023-04-04 16:22:25 -05:00
A Holt
1173ec0db0
pbx/tasks/asterisk.yml: #3524 touch-up for iiab_state.yml 2023-04-04 11:16:26 -04:00
A Holt
c1c3697406
Merge pull request #3524 from jvonau/pbx_asterisk_installed
asterisk_installed
2023-04-04 11:13:21 -04:00
Jerry Vonau
7f0365c2f2 asterisk_installed 2023-04-04 07:47:42 -05:00
A Holt
d72ada5248
Merge pull request #3523 from holta/asterisk-patch
EXPERIMENTAL: 'asterisk_rpi_patch: True' option for Raspberry Pi + preliminary path to FreePBX on PHP 8
2023-04-03 11:14:18 -04:00
root
573516463d vars files: Squeeze PBX tips back into 80-char width 2023-04-03 10:52:58 -04:00
root
177cf0a5af New default 'asterisk_rpi_patch: True' + documentation 2023-04-03 10:34:46 -04:00
root
3636d67a2c pbx/tasks/main.yml: Traditional ordering for iiab.ini 2023-04-03 01:02:39 -04:00
root
545d66dbe2 pbx/files/install_prereq.diff: X86_64 -> x86_64 ; clean asterisk.yml 2023-04-03 00:25:48 -04:00
root
298866de63 asterisk.yml: Clarify 'asterisk_patch: True' for RPi #3489 2023-04-02 23:54:10 -04:00
root
5c1b99f240 Global search/replace: RaspiOS -> RasPiOS 2023-04-02 23:37:45 -04:00
root
3c360d21fa EXPERIMENTAL: asterisk_patch for RPi + prelim path to PHP 8 2023-04-02 23:25:37 -04:00
Jerry Vonau
cb1ae8d4f4 Should be in the 'block' 2023-04-02 11:05:04 -05:00
Jerry Vonau
5bbf96fff6 Should be the last nit 2023-04-02 10:30:40 -05:00
Jerry Vonau
1eb093f064 apache_installed 2023-04-02 10:11:20 -05:00
Jerry Vonau
4cf1d94e02 allow in the field twiddling of pbx_use_apache post-install2 2023-04-02 10:02:50 -05:00
Jerry Vonau
f2b1d2293f allow in the field twiddling of pbx_use_apache post-install 2023-04-02 09:53:28 -05:00
Jerry Vonau
094d66e381 record pbx_use_nginx pbx_use_apache 2023-04-02 08:47:07 -05:00
Jerry Vonau
1fee1c6dd6 use pbx_apache_installed in place of pbx_use_apache2 2023-04-02 08:31:09 -05:00
Jerry Vonau
912fe4c610 use pbx_apache_installed in place of pbx_use_apache
pbx_use_apache is an install time option
once installed the service needs to be accounted for
2023-04-02 08:25:02 -05:00
Jerry Vonau
07b310f5d5 record apache installation 2023-04-02 08:19:20 -05:00
Jerry Vonau
4736bc3873 improve comment 2023-04-02 07:10:13 -05:00
Jerry Vonau
4da7a3fb58 cover network_enabled: False 2023-04-02 06:30:06 -05:00
Jerry Vonau
09df64c05f clearer logic and remove ignore_errors 2023-04-02 06:17:21 -05:00
Jerry Vonau
e3c6d28fc4 add prefix 2023-04-02 06:09:09 -05:00
Jerry Vonau
848a947f9c Fix warning during install 2023-04-02 04:46:32 -05:00
Jerry Vonau
32c81bbb70 Stop asterisk before installing freepbx 2023-04-02 04:46:32 -05:00
Jerry Vonau
e0a7344776
Update roles/pbx/tasks/main.yml
Co-authored-by: A Holt <holta@users.noreply.github.com>
2023-04-02 02:40:30 -05:00
Jerry Vonau
11817a05a4 True 2023-04-02 02:33:07 -05:00
Jerry Vonau
6f63e73d75 drop part of patch for 'libmysqlclient-dev'
hunk was failing not sure why but aptitude did the right thing anyway
2023-04-02 02:28:56 -05:00
Jerry Vonau
3d951f7249 patch for 64-bit arm installs 2023-04-02 01:27:00 -05:00
Jerry Vonau
8833570a8e syntax 2023-04-02 01:13:50 -05:00
Jerry Vonau
31a1664483 pbx - php7.4 only 2023-04-02 01:04:00 -05:00
A Holt
26327ddd05
Merge pull request #3521 from holta/yarn-apt-key
Modernize Yarn install w/ signed apt/PPA key (prereq for Internet Archive)
2023-04-01 19:06:20 -04:00
root
e0251f0ce9 Modernize Yarn install w/ signed apt/PPA key 2023-04-01 17:00:35 -04:00
A Holt
6d9c2cf4a0
Merge pull request #3520 from jvonau/rec_arch
Record arch
2023-03-31 23:44:52 -04:00
A Holt
4a32ba0375
create_iiab_ini.yml: Raise rpi_model & devicetree_model 2023-03-31 23:39:21 -04:00
A Holt
c69d6ef96c
create_iiab_ini.yml: Try {{ os_ver }} alongside redundant/failsafe {{ ansible_facts['distribution'] }} 2023-03-31 23:30:51 -04:00
A Holt
f46c7d1555
mongodb/tasks/main.yml: Fix 'ansible_architecture' typo 2023-03-31 22:59:42 -04:00
A Holt
902e377c68
create_iiab_ini.yml: dpkg_foreign_arch, clarifs, typos 2023-03-31 22:57:36 -04:00
Jerry Vonau
4eca25a1f7 drop local_facts 2023-03-31 15:55:27 -05:00
Jerry Vonau
cc504e3416 record dpkg --print-architecture 2023-03-31 15:48:45 -05:00
A Holt
608a69974a
Merge pull request #3519 from holta/mongodb-block-32bit
Block install of MongoDB on 32-bit RasPiOS, when 'dpkg --print-architecture' shows armhf
2023-03-31 10:28:19 -04:00
root
dcad86f6d1 Block install of MongoDB on 32-bit RasPiOS 2023-03-31 09:39:53 -04:00
Jerry Vonau
faa4145d65 mongodb - lockout RasPiOS-32bit 2023-03-31 08:07:13 -04:00
A Holt
130ad7b127
Merge pull request #3514 from holta/kolibri-spring-cleaning
kolibri/tasks/install.yml spring cleaning (tighten up code, flow, in-line docs)
2023-03-30 19:47:50 -04:00
A Holt
13f5aa4978
Merge pull request #3517 from holta/mediawiki-1.39.3
mediawiki/defaults/main.yml: Version 1.39.3 LTS (security/maintenance release)
2023-03-29 17:01:32 -04:00
A Holt
85a8dd5c8f
mediawiki/defaults/main.yml: Version 1.39.3 2023-03-29 16:59:06 -04:00
root
0f9c6f29f3 Remove KOLIBRI_USER (kolibri) secondary group 'disk' 2023-03-29 16:36:20 -04:00
A Holt
bbea8c8d78
Merge pull request #3515 from holta/sugarizer-1.7.0
New Sugarizer 1.7.0
2023-03-28 16:25:59 -04:00
root
b7ca3dcc2b New Sugarizer 1.7.0 2023-03-28 16:22:20 -04:00
root
f878107fec Toughen doc URLs with %3F (instead of .3F) 2023-03-28 15:56:14 -04:00
A Holt
190ac34bd9
Mention group disk "Mostly equivalent to root access" 2023-03-28 01:23:29 -04:00
root
2a92ef46d0 kolibri/tasks/install.yml: Tighten up code & in-line docs 2023-03-27 17:38:12 -04:00
A Holt
660ee81e28
Merge pull request #3513 from holta/ansible-core-2.14.4
Recommend ansible-core 2.14.4
2023-03-27 14:22:03 -04:00
A Holt
031e85a62e
Recommend ansible-core 2.14.4 2023-03-27 14:18:50 -04:00
A Holt
61a9427e7d
Clarify /library/kolibri owner recommendation 2023-03-26 15:57:45 -04:00
A Holt
d2da3f97fa
pbx/README.adoc: Link to Asterisk Security Advisories 2023-03-25 07:28:29 -04:00
A Holt
a46b089f8a
Merge pull request #3511 from holta/nextcloud-php
TEMPORARY PATCH: Installs older Nextcloud 25 on PHP 7.4 OS's
2023-03-24 19:57:47 -04:00
root
aa66c7e11f TEMPORARY PATCH: Installs older Nextcloud 25 on PHP 7.4 OS's 2023-03-24 19:49:54 -04:00
A Holt
928bc94a1a
Merge pull request #3510 from holta/pbx-doc-update
Doc updates for Asterisk 20 & remaining PHP 7.4 OS's (as FreePBX 16 requires)
2023-03-24 19:08:17 -04:00
root
c44c20def3 Doc updates for Asterisk 20 & remaining PHP 7.4 OS's 2023-03-24 19:02:42 -04:00
A Holt
e5b1b8e4ec
Merge pull request #3508 from holta/asterisk-20
PR to help with Asterisk 20 testing
2023-03-24 18:32:45 -04:00
A Holt
d8fdb75e7c
pbx/defaults/main.yml: Try asterisk-20-current.tar.gz 2023-03-24 15:51:21 -04:00
A Holt
4e52794a73
Merge pull request #3507 from holta/kolibri-hygiene
Move 2 vars kolibri/defaults to default_vars.yml + Cleaner kolibri homedir in /etc/passwd
2023-03-23 21:15:08 -04:00
A Holt
2e5339fee9
Fix doc link "Changing the owner of Kolibri system service" 2023-03-23 21:14:17 -04:00
root
96323fd1aa 2 vars kolibri/defaults -> default_vars; cleaner /etc/passwd homedir 2023-03-23 20:58:42 -04:00
A Holt
8fb14e2cf3
2-common/tasks/packages.yml: Fix {i2c-tools, python3-pip, python3-venv} docs for #3496 2023-03-22 16:54:30 -04:00
A Holt
7365b41680
scripts/ansible: Document new OS's PEP 668 guideline 2023-03-22 08:40:29 -04:00
Jerry Vonau
a61e1b0590 use --system-site-packages and install package to omit building 'netifaces' wheel 2023-03-22 06:46:50 -05:00
A Holt
1b48a2666a
nextcloud/tasks/install.yml: Clarify Nextcloud 26 prereqs (PHP 8.2 now works!) 2023-03-21 10:57:19 -04:00
A Holt
7ae63f6a58
calibre-web/tasks/install.yml: PR #3498 doc/readability 2023-03-20 10:23:46 -04:00
A Holt
f52a7497bf
Merge pull request #3498 from jvonau/min_devs
calibre-web - compiler and header files only when needed
2023-03-20 10:21:09 -04:00
A Holt
b96ea582c9
Merge pull request #3499 from holta/gitea-1.19
gitea/defaults/main.yml: 'gitea_version: 1.19'
2023-03-20 08:20:56 -04:00
A Holt
5bd483c28b
gitea/defaults/main.yml: 'gitea_version: 1.19' 2023-03-20 08:17:38 -04:00
Jerry Vonau
abdb67d32a calibre-web - compiler and header files only when needed 2023-03-19 22:21:39 -05:00
A Holt
47e4d5197a
Merge pull request #3497 from holta/9-local-addons
Tighten up 9-local-addons thx to iiab/iiab-admin-console#526
2023-03-19 18:20:10 -04:00
A Holt
06ea1ef2bd
Tighten up 9-local-addons thx to iiab/iiab-admin-console#526 2023-03-19 18:17:29 -04:00
A Holt
c195613cfe
Update pbx/README.adoc 2023-03-19 09:34:27 -04:00
A Holt
cf07e38121
calibre-web/tasks/install.yml: apt pkg 'build-essential' context 2023-03-18 21:33:04 -04:00
A Holt
e832ec6635
Merge pull request #3496 from holta/ansible_venv
venv refinements for consideration, to tighten up scripts/ansible, deferring install of pip unless truly nec
2023-03-18 20:49:55 -04:00
A Holt
ec855c2ff9
Document "/usr/local/ansible/bin/pip3 show ansible-core" 2023-03-18 20:14:03 -04:00
A Holt
95d8300033
9-local-addons: Stub install python3-jinja2 for Admin Console 2023-03-18 19:57:17 -04:00
root
9c28f88cb2 9-local-addons: Install python3-pip 'when: admin_console_install' 2023-03-18 12:42:25 -04:00
root
7db4dc546e Revert #3422 block of JupyterHub & Caliber-Web on 32-bit HW [should've blocked 32-bit OS's] 2023-03-18 12:25:02 -04:00
root
aad12eb928 scripts/ansible: Cleaner on-screen output 2023-03-18 00:27:22 -04:00
root
cfb446479d venv cleanups: lokole, calibre-web, pip stub for Admin Console 2023-03-17 23:36:31 -04:00
root
e589bbce0f venv WIP: calibre-web/tasks/install.yml packages? 2023-03-17 22:59:02 -04:00
root
d90227e066 venv WIP: scripts/ansible & kalite/tasks/install.yml 2023-03-17 22:53:22 -04:00
Jerry Vonau
007df549ab
Update scripts/ansible
Co-authored-by: A Holt <holta@users.noreply.github.com>
2023-03-17 17:41:04 -05:00
Jerry Vonau
38e99031d7 virtual env for ansible 2023-03-17 06:10:08 -05:00
A Holt
00aa5d5a26
Merge pull request #3493 from holta/ansible-on-python-3.11
Fix PR #3491 to install ansible-core on all OS's as Python 3.11+ proliferates — accounting for older versions of pip that lack flag `--break-system-packages`
2023-03-17 00:55:46 -04:00
root
62543814da scripts/ansible FYI: pip's --break-system-packages is new (Feb 2023) 2023-03-17 00:53:57 -04:00
root
7ce3881f5c Fix PR #3491 to install ansible-core on all OS's as Python 3.11+ proliferates 2023-03-17 00:42:37 -04:00
A Holt
cb4a8e2631
Merge pull request #3491 from holta/ansible-on-python-3.11
Force 'pip install ansible-core' on Python 3.11+ for Ubuntu 23.04 (Lunar Lobster) & Debian 12 (Bookworm)
2023-03-16 21:38:32 -04:00
root
4750badc4e Force 'pip install ansible-core' on Python 3.11+ 2023-03-16 21:28:42 -04:00
A Holt
023ea9f499
Merge pull request #3490 from holta/kolibri-kreyol
Add Haitian Creole (Kreyòl) as Kolibri's 32nd languages
2023-03-15 17:58:15 -04:00
root
bdd08b9b6d Add Haitian Creole as Kolibri's 32nd languages 2023-03-15 17:05:46 -04:00
A Holt
95a693167c
Merge pull request #3488 from holta/iiab-diagnostics_cypress
iiab-diagnostics: Report /lib/firmware/cypress/* not brcm
2023-03-08 00:30:27 -05:00
A Holt
12d7397ff7
iiab-diagnostics: Report /lib/firmware/cypress/* not brcm 2023-03-08 00:27:22 -05:00
A Holt
0292fad92e
Merge pull request #3485 from holta/mongodb-on-amd64
MongoDB: Use jammy repo on amd64 (unless Debian 11)
2023-03-06 21:42:20 -05:00
A Holt
2786eedcb7
MongoDB: Use jammy repo on amd64 (unless Debian 11) 2023-03-06 21:29:03 -05:00
A Holt
ba8ea3c72c
README.md: Fix RPi images link 2023-03-01 14:07:31 -05:00
A Holt
21636907d6
Merge pull request #3484 from holta/ansible-core-2.14.3
Recommend ansible-core 2.14.3
2023-02-28 09:47:56 -05:00
A Holt
7d9e1fc62a
Recommend ansible-core 2.14.3 2023-02-28 09:46:17 -05:00
A Holt
1165dc715f
pbx/README.adoc: Will FreePBX 17 arrive by ~2024 to solve the PHP 8 dilemma? 2023-02-26 20:39:58 -05:00
A Holt
665f403565
pbx/README.adoc: Louder PHP 7.4 requirement WARNING! 2023-02-26 20:20:04 -05:00
A Holt
68b607167d
Merge pull request #3482 from holta/rpi-wifi-firmware3
Set WiFi firmware in /lib/firmware/cypress due to RasPiOS & Ubuntu changes
2023-02-25 21:31:16 -05:00
root
314631bb3e roles/firmware: Tighten up in-line explanations 2023-02-25 21:16:17 -05:00
A Holt
0cf87464ba
Merge pull request #3483 from holta/mongodb-on-aarch64
Refine PR #3481: MongoDB 5.x still requires libssl1.1 for aarch64 Ubuntu 22+ or Debian 12+
2023-02-25 19:31:57 -05:00
root
c591ed16c3 Refine PR #3481: MongoDB for aarch64 Ubuntu 22+ or Debian 12+ 2023-02-25 19:17:27 -05:00
root
ae5daf5830 vars/local_vars_unittest.yml: Update WiFi firmware options 2023-02-25 15:52:54 -05:00
root
d09046b501 roles/firmware for WiFi hotspot: Update in-line docs 2023-02-25 15:41:08 -05:00
root
4831fd6d7e CLARIF: full backup of symlinks + later "doubly timestamped" symlink contents 2023-02-25 13:55:41 -05:00
root
57326cebce Set WiFi firmware in /lib/firmware/cypress 2023-02-25 03:42:23 -05:00
A Holt
bd9a6bb3a0
Merge pull request #3481 from holta/mongodb-on-arm64
Revert jammy to focal for MongoDB 5.0.5 collateral on arm64/aarch64
2023-02-24 16:51:24 -05:00
root
7fc222d495 Revert jammy to focal for MongoDB 5.0.5 collateral on arm64/aarch64 2023-02-24 16:30:47 -05:00
A Holt
79917e22c2
Merge pull request #3480 from holta/mediawiki-1.39.2
mediawiki/defaults/main.yml: Version 1.39.2
2023-02-22 16:08:08 -05:00
A Holt
9468d1f83a
mediawiki/defaults/main.yml: Version 1.39.2 2023-02-22 16:06:31 -05:00
A Holt
0af529b448
Merge pull request #3478 from holta/sugarizer-server-1.5.0
sugarizer-server-1.5.0
2023-02-15 19:05:18 -05:00
A Holt
64b02509cd
Update size(s) of /opt/iiab/sugarizer-server 1.5.0 2023-02-15 19:04:43 -05:00
A Holt
b2e0d45f2d
sugarizer-server-1.5.0 2023-02-15 16:30:31 -05:00
A Holt
f8efc93d0a
Clarify jupyterhub_config.py.j2 for #3476: "8 of IIAB's 10 legacy custom lines" 2023-02-10 10:01:32 -05:00
A Holt
73dce5ffb4
Merge pull request #3476 from holta/jupyterhub3
Update jupyterhub_config.py.j2 for JupyterHub 3.1.1 & /run/jupyterhub-proxy.pid [+ refine doc. Is error "IOPub data rate exceeded" common &/or solvable?]
2023-02-10 09:24:50 -05:00
A Holt
9dd6fb2524
jupyterhub/README.md: Link to jupyterhub/systemdspawner docs 2023-02-09 22:21:45 -05:00
A Holt
5bced2429f
jupyterhub_config.py.j2: Remove unused "c.SystemdSpawner.user_workingdir = '/opt/iiab/notebooks/{USERNAME}'" 2023-02-09 21:57:19 -05:00
A Holt
bb85ab918f
jupyterhub/README.md: File > Hub Control Panel > Admin 2023-02-08 21:18:16 -05:00
A Holt
ec9b0b5cba
jupyterhub/README.md: Clarify "Hub Control Panel" 2023-02-08 21:08:01 -05:00
A Holt
7c046c100b
jupyterhub/README.md: Tighter journalctl logging tips 2023-02-08 19:31:20 -05:00
A Holt
34effae368
jupyterhub/README.md: Explain logging, via journalctl 2023-02-08 19:26:41 -05:00
A Holt
49bad59d78
Cleaner explanation on top of jupyterhub_config.py.j2 2023-02-08 13:02:16 -05:00
A Holt
8d3864090e
Mention /opt/iiab/jupyterhub (3.1.1) is now ~326 MB 2023-02-08 12:47:39 -05:00
A Holt
872c77d728
jupyterhub/README.md: Clarifs & new screenshots 2023-02-08 12:17:19 -05:00
root
b0f5a85e20 Update jupyterhub_config.py.j2 for JupyterHub 3.1.1 & /run/jupyterhub-proxy.pid 2023-02-08 11:34:49 -05:00
A Holt
689ce1e775
Merge pull request #3474 from holta/phpmyadmin-5.2.1
phpMyAdmin 5.2.1
2023-02-07 22:02:00 -05:00
A Holt
611a0ac01a
phpMyAdmin 5.2.1 2023-02-07 21:59:41 -05:00
A Holt
c74b8c751f
Merge pull request #3471 from holta/ansible-core-2.14.2
Recommend ansible-core 2.14.2
2023-01-30 18:27:44 -05:00
A Holt
69bde5e745
Recommend ansible-core 2.14.2 2023-01-30 18:25:00 -05:00
A Holt
555c7a7711
openvpn/defaults/main.yml: Clarify openvpn_server_real_ip etc 2023-01-30 08:51:43 -05:00
A Holt
30e0169f7a
osm-vector-maps/tasks/install.yml: Clarify {{ osm_repo_url }}/{{ maps_branch }} 2023-01-27 23:54:43 -05:00
A Holt
81bb08ffb5
kolibri/tasks/install.yml: Clarify {{ kolibri_deb_url }} is just an example 2023-01-24 12:12:59 -05:00
A Holt
42c57998d6
Merge pull request #3470 from holta/moodle-on-php-8.2
Install Moodle dev pre-release (e.g. 4.2dev for now) IFF PHP >= 8.3
2023-01-21 12:27:46 -05:00
root
e9c6cffef2 Install Moodle dev pre-release IFF PHP >= 8.3 2023-01-21 12:26:45 -05:00
A Holt
ded399934f
mongodb/tasks/install.yml: Clarify line numbers 2023-01-20 00:42:36 -05:00
A Holt
247e582b56
#3469 clarif: IIAB overlays MongoDB 5.0.5 64-bit RPi binaries 2023-01-20 00:35:35 -05:00
A Holt
68dfc9239b
2022 -> 2023: Fix PR #3469 comment typo 2023-01-20 00:09:07 -05:00
A Holt
06f8001cb7
PR #3469's Debian 11 code path was also tested 2023-01-20 00:05:39 -05:00
A Holt
f36462b0aa
Merge pull request #3469 from holta/mongodb-2023
Avoid bolting on libssl1.1, now that MongoDB can use libssl3 (at long last!) [e.g. on Ubuntu 22.04+ & Debian 12]
2023-01-19 23:46:50 -05:00
root
b0cad086c0 ASIDE: MongoDB 6.0.3+ MIGHT run on 64-bit Ubuntu on RPi 2023-01-19 23:11:34 -05:00
root
0b23bd3ab5 mongodb/tasks/install.yml: Comments more future-proof 2023-01-19 22:58:03 -05:00
root
8f4024a0e4 Clarify MongoDB CAN use libssl3 on Ubuntu 22.04+ & Debian 12 2023-01-19 22:37:27 -05:00
root
7b097908a9 Try to avoid libssl1.1, now that MongoDB can use libssl3 2023-01-19 21:56:46 -05:00
A Holt
e378fae876
Merge pull request #3466 from holta/nodejs-19.x-with-internetarchive
internetarchive/tasks/install.yml: Enforce Node.js <= 19.x
2023-01-13 11:03:02 -05:00
A Holt
6d2725f63b
internetarchive/tasks/install.yml: Enforce Node.js <= 19.x 2023-01-13 11:01:32 -05:00
A Holt
3ccdbac923
Merge pull request #3464 from holta/mediawiki-1.39.1
mediawiki/defaults/main.yml: Version 1.39.1
2023-01-12 08:34:54 -05:00
A Holt
0f614f1be3
mediawiki/defaults/main.yml: Version 1.39.1 2023-01-12 08:33:44 -05:00
A Holt
e65b03b70a
Update iiab-diagnostics.README.md per PR #3462 2023-01-11 14:27:40 -05:00
A Holt
199c121a51
Merge pull request #3462 from holta/iiab-diagnostics_work
iiab-diagnostics: Highlight /etc/iiab/install-flags sequence
2023-01-11 14:23:34 -05:00
root
5f7b8cc34f iiab-diagnostics: Highlight /etc/iiab/install-flags sequence 2023-01-11 14:15:00 -05:00
A Holt
d8e2318670
Merge pull request #3461 from holta/refresh-wiki-docs
http://box/info/admin-console offline docs [& fix iiab-refresh-wiki-docs e.g. for scraping of Raspberry Pi Images docs]
2023-01-11 13:57:49 -05:00
root
98cff07ca3 Rename $ADMINCONSOLEPATH to $ADMINDOCSPATH 2023-01-11 10:26:57 -05:00
root
e34d84f712 Scrape RPi Image docs using ~ not : (and recurse into subdirs) 2023-01-11 09:57:04 -05:00
A Holt
d5fd98b08e
Update iiab-refresh-wiki-docs.sh 2023-01-10 23:27:21 -05:00
root
64cd4a40a7 'fancyindex_exact_size off;' human-readable for box/info 2023-01-10 19:57:43 -05:00
root
0ff334eeda Safer: 'cp /opt/iiab/iiab-admin-console/docs/*.md ...' 2023-01-10 19:52:34 -05:00
root
0ac162fdc6 'fancyindex on;' in nginx/templates/iiab.conf.j2 instead + box/info resiliency 2023-01-10 19:42:19 -05:00
root
1b2930c52d 'cp -r' was overkill: 'cp /opt/iiab/iiab-admin-console/docs/*' suffices 2023-01-10 19:18:01 -05:00
root
65cb09c67b iiab-refresh-wiki-docs also needs to run w/o Admin Console 2023-01-10 19:10:35 -05:00
root
31bd87cd1c http://box/info/admin-console offline docs 2023-01-10 19:01:59 -05:00
A Holt
0c93392146
scripts/ansible: Update explanatory URL 2023-01-08 10:59:45 -05:00
A Holt
badf12ec28
Update README.md 2023-01-07 16:39:35 -05:00
A Holt
64226e5a6e
Merge pull request #3460 from cwivagg/patch-3
Update matomo-nginx.conf.j2 ["fix the error private directories are accessible"]
2023-01-07 10:02:07 -05:00
cwivagg
ccaa118dad
Update matomo-nginx.conf.j2
Move file to higher precedence to handle non-php files as well.
2023-01-07 08:27:56 -05:00
cwivagg
08ade5cd1e
Update matomo-nginx.conf.j2
Fix security problems noted in https://github.com/iiab/iiab/issues/3441.
2023-01-07 07:42:17 -05:00
A Holt
616efbed60
Merge pull request #3459 from jvonau/fix_ansible
revert to using pip for ansible on 32bit RasPiOS
2023-01-07 06:55:45 -05:00
Jerry Vonau
a94bc0e070 revert to using pip for ansible on 32bit RaspOS 2023-01-06 19:09:58 -06:00
A Holt
06ea7a9146
Update CONTRIBUTING.md 2023-01-04 10:15:09 -05:00
A Holt
f11adb312f
Merge pull request #3458 from holta/lokole-in-LARGE-installs
Enable Lokole during MEDIUM/LARGE IIAB installs
2023-01-04 09:14:07 -05:00
root
305af9a9bb Enable Lokole during MEDIUM/LARGE IIAB installs 2023-01-04 09:04:51 -05:00
A Holt
ecc81829df
Merge pull request #3457 from holta/tests.unused
Travis CI: git mv tests tests.unused
2023-01-04 08:53:20 -05:00
root
db489402d9 Travis CI: git mv tests tests.unused 2023-01-04 08:47:20 -05:00
A Holt
9b6681b4d0
Pre-release version number 'iiab_base_ver: 8.1' 2023-01-01 01:39:44 -05:00
root
9c0e24ac5c nginx/templates/server.conf.j2: Clarify nextcloud-nginx.conf.j2 2022-03-24 20:13:52 -04:00
root
cb38c04cb5 Remove 500M restriction on file uploads. Use 10G instead. 2022-03-24 20:07:59 -04:00
247 changed files with 5978 additions and 1878 deletions

View file

@ -0,0 +1,58 @@
name: '"10 min" IIAB on Ubuntu 24.04 on x86-64'
# run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
# https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/ci-cd/github-actions/triggers.html
on: [push, pull_request, workflow_dispatch]
# on:
# push:
#
# pull_request:
#
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
#
# # Set your workflow to run every day of the week from Monday to Friday at 6:00 UTC
# schedule:
# - cron: "0 6 * * 1-5"
jobs:
test-install:
runs-on: ubuntu-24.04
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
#- name: Dump GitHub context (typically almost 500 lines)
# env:
# GITHUB_CONTEXT: ${{ toJSON(github) }}
# run: echo "$GITHUB_CONTEXT"
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: GitHub Actions "runner" environment
run: |
uname -a # uname -srm
whoami # Typically 'runner' instead of 'root'
pwd # /home/runner/work/iiab/iiab == $GITHUB_WORKSPACE == ${{ github.workspace }}
# ls
# ls $GITHUB_WORKSPACE
# ls ${{ github.workspace }}
# ls -la /opt # az, containerd, google, hostedtoolcache, microsoft, mssql-tools, pipx, pipx_bin, post-generation, runner, vsts
# apt update
# apt dist-upgrade -y
# apt autoremove -y
- name: Set up /opt/iiab/iiab
run: |
mkdir /opt/iiab
mv $GITHUB_WORKSPACE /opt/iiab
mkdir $GITHUB_WORKSPACE # OR SUBSEQUENT STEPS WILL FAIL ('working-directory: /opt/iiab/iiab' hacks NOT worth it!)
- name: Set up /etc/iiab/local_vars.yml
run: |
sudo mkdir /etc/iiab
# touch /etc/iiab/local_vars.yml
sudo cp /opt/iiab/iiab/vars/local_vars_none.yml /etc/iiab/local_vars.yml
- run: sudo /opt/iiab/iiab/scripts/ansible
- run: sudo ./iiab-install
working-directory: /opt/iiab/iiab
- run: iiab-summary
- run: cat /etc/iiab/iiab_state.yml

View file

@ -0,0 +1,65 @@
name: '"30 min" IIAB on Debian 12 on RPi 3'
# run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
# https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/ci-cd/github-actions/triggers.html
on: [push, pull_request, workflow_dispatch]
# on:
# push:
#
# pull_request:
#
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
#
# # Set your workflow to run every day of the week from Monday to Friday at 6:00 UTC
# schedule:
# - cron: "0 6 * * 1-5"
jobs:
test-install:
runs-on: ubuntu-22.04
strategy:
matrix:
arch: [debian12]
include:
- arch: debian12
cpu: cortex-a7
cpu_info: cpuinfo/raspberrypi_3b
base_image: https://raspi.debian.net/daily/raspi_3_bookworm.img.xz
# source https://raspi.debian.net/daily-images/
steps:
#- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
#- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
#- name: Dump GitHub context (typically almost 500 lines)
# env:
# GITHUB_CONTEXT: ${{ toJSON(github) }}
# run: echo "$GITHUB_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
run: echo "$MATRIX_CONTEXT"
- uses: actions/checkout@v3.1.0
- uses: pguyot/arm-runner-action@v2
with:
image_additional_mb: 1024
base_image: ${{ matrix.base_image }}
cpu: ${{ matrix.cpu }}
cpu_info: ${{ matrix.cpu_info }}
copy_repository_path: /opt/iiab/iiab
commands: |
echo "🍏 This job's status is ${{ job.status }}."
grep Model /proc/cpuinfo
uname -a # uname -srm
whoami # Typically 'root' instead of 'runner'
pwd # /home/runner/work/iiab/iiab == $GITHUB_WORKSPACE == ${{ github.workspace }}
apt-get update -y --allow-releaseinfo-change
apt-get install --no-install-recommends -y git
ls /opt/iiab/iiab
mkdir /etc/iiab
cp /opt/iiab/iiab/vars/local_vars_none.yml /etc/iiab/local_vars.yml
/opt/iiab/iiab/scripts/ansible
./iiab-install
cd /opt/iiab/iiab
iiab-summary
cat /etc/iiab/iiab_state.yml

View file

@ -0,0 +1,77 @@
name: '"30 min" IIAB on RasPiOS on Zero 2 W'
# run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
# https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/ci-cd/github-actions/triggers.html
on: [push, pull_request, workflow_dispatch]
# on:
# push:
#
# pull_request:
#
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
#
# # Set your workflow to run every day of the week from Monday to Friday at 6:00 UTC
# schedule:
# - cron: "0 6 * * 1-5"
jobs:
test-install:
runs-on: ubuntu-22.04
strategy:
matrix:
arch: [aarch64] #[zero_raspbian, zero_raspios, zero2_raspios, aarch64]
include:
#- arch: zero_raspbian
# cpu: arm1176
# cpu_info: cpuinfo/raspberrypi_zero_w
# base_image: raspbian_lite:latest
#- arch: zero_raspios
# cpu: arm1176
# cpu_info: cpuinfo/raspberrypi_zero_w
# base_image: raspios_lite:latest
#- arch: zero2_raspios
# cpu: cortex-a7
# cpu_info: cpuinfo/raspberrypi_zero2_w
# base_image: raspios_lite:latest
- arch: aarch64
cpu: cortex-a53
cpu_info: cpuinfo/raspberrypi_zero2_w_arm64
base_image: raspios_lite_arm64:latest
steps:
#- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
#- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
#- name: Dump GitHub context (typically almost 500 lines)
# env:
# GITHUB_CONTEXT: ${{ toJSON(github) }}
# run: echo "$GITHUB_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
run: echo "$MATRIX_CONTEXT"
- uses: actions/checkout@v3.1.0
- uses: pguyot/arm-runner-action@v2
with:
image_additional_mb: 1024
base_image: ${{ matrix.base_image }}
cpu: ${{ matrix.cpu }}
cpu_info: ${{ matrix.cpu_info }}
copy_repository_path: /opt/iiab/iiab
commands: |
echo "🍏 This job's status is ${{ job.status }}."
#test `uname -m` = ${{ matrix.arch }}
grep Model /proc/cpuinfo
uname -a # uname -srm
whoami # Typically 'root' instead of 'runner'
pwd # /home/runner/work/iiab/iiab == $GITHUB_WORKSPACE == ${{ github.workspace }}
apt-get update -y --allow-releaseinfo-change
apt-get install --no-install-recommends -y git
ls /opt/iiab/iiab
mkdir /etc/iiab
cp /opt/iiab/iiab/vars/local_vars_none.yml /etc/iiab/local_vars.yml
/opt/iiab/iiab/scripts/ansible
./iiab-install
cd /opt/iiab/iiab
iiab-summary
cat /etc/iiab/iiab_state.yml

View file

@ -1,3 +1,3 @@
# SEE THE NEW<br>[github.com/iiab/iiab/wiki/IIAB-Contributors-Guide](https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide) # SEE THE NEW<br>[github.com/iiab/iiab/wiki/Contributors-Guide-(EN)](https://github.com/iiab/iiab/wiki/Contributors-Guide-(EN))
# THANKS! # THANKS!

View file

@ -15,6 +15,6 @@ this is to include the following two lines at the top of the file:
Licensed under the terms of the GNU GPL v2 or later; see LICENSE for details. Licensed under the terms of the GNU GPL v2 or later; see LICENSE for details.
All files not containing an explicit copyright notice or terms of license in All files not containing an explicit copyright notice or terms of license in
the file are Copyright © 2015-2022, Unleash Kids, and are licensed under the the file are Copyright © 2015-2025, Unleash Kids, and are licensed under the
terms of the GPLv2 license in the file named LICENSE in the root of the terms of the GPLv2 license in the file named LICENSE in the root of the
repository. repository.

View file

@ -2,26 +2,26 @@
# Internet-in-a-Box (IIAB) # Internet-in-a-Box (IIAB)
[Internet-in-a-Box (IIAB)](https://internet-in-a-box.org) is a "learning hotspot" that brings the Internet's crown jewels [Internet-in-a-Box (IIAB)](https://internet-in-a-box.org) is a “learning hotspot” that brings the Internet's crown jewels
(Wikipedia in any language, thousands of Khan Academy videos, zoomable OpenStreetMap, electronic books, WordPress journaling, Toys from Trash electronics projects, ETC) to those without Internet. (Wikipedia in any language, thousands of Khan Academy videos, zoomable OpenStreetMap, electronic books, WordPress journaling, Toys from Trash electronics projects, ETC) to those without Internet.
You can build your own tiny, affordable server (an offline digital library) for your school, your medical clinic, your prison, your region and/or your very own family — accessible with any nearby smartphone, tablet or laptop. You can build your own tiny, affordable server (an offline digital library) for your school, your medical clinic, your prison, your region and/or your very own family — accessible with any nearby smartphone, tablet or laptop.
Internet-in-a-Box gives you the DIY tools to: Internet-in-a-Box gives you the DIY tools to:
1. Download then drag-and-drop to arrange the [very best of the Worlds Free Knowledge](https://internet-in-a-box.org/#quality-content). 1. Download then drag-and-drop to arrange the [very best of the Worlds Free Knowledge](https://internet-in-a-box.org/#quality-content).
2. Choose among [30+ powerful educational apps](https://wiki.iiab.io/go/FAQ#What_services_.28IIAB_apps.29_are_suggested_during_installation.3F) for your school or learning/teaching community, optionally with a complete LMS (learning management system). 2. Choose among [30+ powerful educational apps](https://wiki.iiab.io/go/FAQ#What_services_%28IIAB_apps%29_are_suggested_during_installation%3F) for your school or learning/teaching community, optionally with a complete LMS (learning management system).
3. Exchange local/indigenous knowledge with nearby communities, using our [Manage Content](https://github.com/iiab/iiab-admin-console/blob/master/roles/console/files/help/InstContent.rst#manage-content) interface and possible mesh networking. 3. Exchange local/indigenous knowledge with nearby communities, using our [Manage Content](https://github.com/iiab/iiab-admin-console/blob/master/roles/console/files/help/InstContent.rst#manage-content) interface and possible mesh networking.
FYI this [community product](https://en.wikipedia.org/wiki/Internet-in-a-Box) is enabled by professional volunteers working [side-by-side](https://wiki.iiab.io/go/FAQ#What_are_the_best_places_for_community_support.3F) with schools, clinics and libraries around the world. *Thank you for being a part of our http://OFF.NETWORK grassroots technology [movement](https://meta.wikimedia.org/wiki/Internet-in-a-Box)!* FYI this [community product](https://en.wikipedia.org/wiki/Internet-in-a-Box) is enabled by professional volunteers working [side-by-side](https://wiki.iiab.io/go/FAQ#What_are_the_best_places_for_community_support%3F) with schools, clinics and libraries around the world. *Thank you for being a part of our http://OFF.NETWORK grassroots technology [movement](https://meta.wikimedia.org/wiki/Internet-in-a-Box)!*
## Installation ## Installation
Install Internet-in-a-Box (IIAB) from [download.iiab.io](https://download.iiab.io/) Install Internet-in-a-Box (IIAB) from: [**download.iiab.io**](https://download.iiab.io/)
Please see [FAQ.IIAB.IO](https://wiki.iiab.io/go/FAQ) which has 40+ questions and answers to help you along the way, as you put together the <!--digital--> "local learning hotspot" most suitable for your own teaching/learning community. Here are 2 ways to install IIAB: Please see [FAQ.IIAB.IO](https://wiki.iiab.io/go/FAQ) which has 50+ questions and answers to help you along the way (e.g. [“Is a quick installation possible?”](https://wiki.iiab.io/go/FAQ#Is_a_quick_installation_possible%3F)) as you put together the <!--digital--> “local learning hotspot” most suitable for your own teaching/learning community. Here are 2 ways to install IIAB:
- Our [1-line installer](https://download.iiab.io/) gets you the very latest, typically within about an hour, on [different Linux distributions](https://github.com/iiab/iiab/wiki/IIAB-Platforms#operating-systems). - Our [1-line installer](https://download.iiab.io/) gets you the very latest, typically within about an hour, on [different Linux distributions](https://github.com/iiab/iiab/wiki/IIAB-Platforms#operating-systems).
- [Prefab disk images](https://github.com/iiab/iiab/wiki/Raspberry-Pi-Images:-Summary#iiab-images-for-raspberry-pi) ([.img files](https://archive.org/search.php?query=iiab%20.img&sort=-publicdate)) are sometimes a few months out of date, but can be flashed directly onto a microSD card, for insertion into Raspberry Pi. - [Prefab disk images](https://github.com/iiab/iiab/wiki/Raspberry-Pi-Images-~-Summary#iiab-images-for-raspberry-pi) ([.img files](https://archive.org/search.php?query=iiab%20.img&sort=-publicdate)) are sometimes a few months out of date, but can be flashed directly onto a microSD card, for insertion into Raspberry Pi.
Our [HOW-TO videos](https://www.youtube.com/channel/UC0cBGCxr_WPBPa3IqPVEe3g) can be very helpful and the [Installation](https://github.com/iiab/iiab/wiki/IIAB-Installation) wiki page has more intricate details e.g. if you're trying to install Internet-in-a-Box (IIAB) onto a [another Linux](https://github.com/iiab/iiab/wiki/IIAB-Platforms) that has not yet been tried. Our [HOW-TO videos](https://www.youtube.com/channel/UC0cBGCxr_WPBPa3IqPVEe3g) can be very helpful and the [Installation](https://github.com/iiab/iiab/wiki/IIAB-Installation) wiki page has more intricate details e.g. if you're trying to install Internet-in-a-Box (IIAB) onto a [another Linux](https://github.com/iiab/iiab/wiki/IIAB-Platforms) that has not yet been tried.
@ -29,22 +29,22 @@ See our [Tech Docs Wiki](https://github.com/iiab/iiab/wiki) for more about the u
After you've installed the software, you should [add content](https://github.com/iiab/iiab/wiki/IIAB-Installation#add-content), which can of course take time when downloading multi-gigabyte Content Packs! After you've installed the software, you should [add content](https://github.com/iiab/iiab/wiki/IIAB-Installation#add-content), which can of course take time when downloading multi-gigabyte Content Packs!
Finally, you can [customize your Internet-in-a-Box home page](https://wiki.iiab.io/go/FAQ#How_do_I_customize_my_Internet-in-a-Box_home_page.3F) (typically http://box or http://box.lan) using our **drag-and-drop** Admin Console (http://box.lan/admin) &mdash; to arrange Content Packs and IIAB Apps (services) for your local community's needs. Finally, you can [customize your Internet-in-a-Box home page](https://wiki.iiab.io/go/FAQ#How_do_I_customize_my_Internet-in-a-Box_home_page%3F) (typically http://box or http://box.lan) using our **drag-and-drop** Admin Console (http://box.lan/admin) &mdash; to arrange Content Packs and IIAB Apps (services) for your local community's needs.
## Community ## Community
Global community updates and videos are regularly posted to: **[@internet_in_box](https://twitter.com/internet_in_box)** Global community updates and videos are regularly posted to: **[@internet_in_box](https://twitter.com/internet_in_box)**
_Internet-in-a-Box (IIAB) greatly welcomes contributions from educators, librarians and [IT/UX/QA people](https://github.com/iiab/iiab/wiki/Technical-Contributors-Guide) of all kinds!_ _Internet-in-a-Box (IIAB) greatly welcomes contributions from educators, librarians and [IT/UX/QA people](https://github.com/iiab/iiab/wiki/Contributors-Guide-(EN)) ([versión en español](https://github.com/iiab/iiab/wiki/Gu%C3%ADa-para-Contribuidores-(ES))) of all kinds!_
If you would like to volunteer, please [make contact](https://internet-in-a-box.org/contributing.html) after looking over "[How can I help?](https://wiki.iiab.io/go/FAQ#How_can_I_help.3F)" at: [FAQ.IIAB.IO](https://wiki.iiab.io/go/FAQ) If you would like to volunteer, please [make contact](https://internet-in-a-box.org/contributing.html) after looking over [How can I help?](https://wiki.iiab.io/go/FAQ#How_can_I_help%3F) at: [FAQ.IIAB.IO](https://wiki.iiab.io/go/FAQ)
<!-- To learn about our software architecture, check out our [Contributors Guide](https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide).--> <!-- To learn about our software architecture, check out our [Contributors Guide](https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide).-->
To learn more about our open community architecture for "offline" learning, check out "[What technical documentation exists?](https://wiki.iiab.io/go/FAQ#What_technical_documentation_exists.3F)" To learn more about our open community architecture for “offline” learning, check out [“What technical documentation exists?”](https://wiki.iiab.io/go/FAQ#What_technical_documentation_exists%3F)
FYI we use [Ansible](https://wiki.iiab.io/go/FAQ#What_is_Ansible_and_what_version_should_I_use.3F) <!--as the underlying technology--> to install, deploy, configure and manage the various software components. FYI we use [Ansible](https://wiki.iiab.io/go/FAQ#What_is_Ansible_and_what_version_should_I_use%3F) <!--as the underlying technology--> to install, deploy, configure and manage the various software components.
*Thank you for helping us enable offline access to the Internet's free/open knowledge jewels, as well as "Sneakernet-of-Alexandria" distribution of local/indigenous content, when mass media channels do not serve grassroots voices.* *Thank you for helping us enable offline access to the Internet's free/open knowledge jewels, as well as “Sneakernet-of-Alexandria” distribution of local/indigenous content, when mass media channels do not serve grassroots voices.*
## Versions ## Versions

View file

@ -5,4 +5,4 @@
# Disallowed by Ansible 2.11+ -- see https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_2.7.html#using-a-loop-on-a-package-module-via-squash-actions # Disallowed by Ansible 2.11+ -- see https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_2.7.html#using-a-loop-on-a-package-module-via-squash-actions
#squash_actions = apk, apt, dnf, homebrew, openbsd_pkg, pacman, pkgng, yum, zypper, package #squash_actions = apk, apt, dnf, homebrew, openbsd_pkg, pacman, pkgng, yum, zypper, package
[defaults] [defaults]
interpreter_python=/usr/bin/python3 interpreter_python=/usr/local/ansible/bin/python3

View file

@ -11,7 +11,7 @@ CWD=`pwd`
OS=`grep ^ID= /etc/os-release | cut -d= -f2` OS=`grep ^ID= /etc/os-release | cut -d= -f2`
OS=${OS//\"/} # Remove all '"' OS=${OS//\"/} # Remove all '"'
MIN_RPI_KERN=5.4.0 # Do not use 'rpi-update' unless absolutely necessary: https://github.com/iiab/iiab/issues/1993 MIN_RPI_KERN=5.4.0 # Do not use 'rpi-update' unless absolutely necessary: https://github.com/iiab/iiab/issues/1993
MIN_ANSIBLE_VER=2.11.12 # 2022-11-09: Raspberry Pi 3 (and 3 B+ etc?) apparently install (and require?) ansible-core 2.11 for now -- @deldesir can explain more on PR #3419. Historical: Ansible 2.8.3 and 2.8.6 had serious bugs, preventing their use with IIAB. MIN_ANSIBLE_VER=2.16.14 # 2024-11-08: ansible-core 2.15 EOL is November 2024 per https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix 2022-11-09: Raspberry Pi 3 (and 3 B+ etc?) apparently install (and require?) ansible-core 2.11 for now -- @deldesir can explain more on PR #3419. Historical: Ansible 2.8.3 and 2.8.6 had serious bugs, preventing their use with IIAB.
REINSTALL=false REINSTALL=false
DEBUG=false DEBUG=false

View file

@ -42,7 +42,7 @@ fi
echo "Ansible will now run iiab-network.yml -- log file is iiab-network.log" echo "Ansible will now run iiab-network.yml -- log file is iiab-network.log"
Start=`date` Start=`date`
ansible -m setup -i ansible_hosts localhost --connection=local | grep python ansible -m setup -i ansible_hosts localhost --connection=local | grep python
ansible-playbook -i ansible_hosts iiab-network.yml --connection=local ansible-playbook -i ansible_hosts iiab-network.yml --extra-vars "{\"skip_role_on_error\":false}" --connection=local
End=`date` End=`date`

View file

@ -8,7 +8,7 @@
# apache_interface: 127.0.0.1 # apache_interface: 127.0.0.1
# Make this False to disable http://box/common/services/power_off.php button: # Make this False to disable http://box/common/services/power_off.php button:
# apache_allow_sudo: True # allow_www_data_poweroff: False
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml # All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!

View file

@ -1,13 +1,17 @@
# SECURITY WARNING: https://wiki.iiab.io/go/Security
# openvpn_install: True # openvpn_install: True
# openvpn_enabled: False # openvpn_enabled: False
# For /etc/iiab/openvpn_handle # Empty string on purpose since ~2016, for /etc/iiab/uuid
# SEE https://github.com/iiab/iiab/blob/master/roles/openvpn/tasks/main.yml#L5-L20
# openvpn_handle: "" # openvpn_handle: ""
# cron seems necessary on CentOS: # cron seems necessary on CentOS:
# openvpn_cron_enabled: False # openvpn_cron_enabled: False
# openvpn_server: xscenet.net # openvpn_server: xscenet.net
# openvpn_server_real_ip: 3.89.148.185
# openvpn_server_virtual_ip: 10.8.0.1 # openvpn_server_virtual_ip: 10.8.0.1
# openvpn_server_port: 1194 # openvpn_server_port: 1194

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: "Install packages: ncat, nmap, openvpn, sudo" - name: "Install packages: ncat, nmap, openvpn, sudo"
package: package:
name: name:
@ -100,6 +105,17 @@
# RECORD OpenVPN AS INSTALLED # RECORD OpenVPN AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'openvpn_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: openvpn
option: openvpn_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'openvpn_installed: True'" - name: "Set 'openvpn_installed: True'"
set_fact: set_fact:
openvpn_installed: True openvpn_installed: True

View file

@ -10,11 +10,11 @@ DEBUG=false # Using /usr/bin/true or /usr/bin/false
PLAYBOOK="install-support.yml" PLAYBOOK="install-support.yml"
INVENTORY="ansible_hosts" INVENTORY="ansible_hosts"
# 2021-08-18: bash scripts using default_vars.yml &/or local_vars.yml # 2023-02-25: bash scripts using default_vars.yml &/or local_vars.yml
# https://github.com/iiab/iiab-factory/blob/master/iiab # https://github.com/iiab/iiab-factory/blob/master/iiab
# https://github.com/iiab/iiab/blob/master/roles/firmware/templates/iiab-check-firmware#L10-14 # https://github.com/iiab/iiab/blob/master/roles/firmware/templates/iiab-check-firmware#L10-14
# https://github.com/iiab/iiab/blob/master/roles/network/templates/gateway/iiab-gen-iptables#L48-L52 # https://github.com/iiab/iiab/blob/master/roles/network/templates/gateway/iiab-gen-iptables#L48-L52
# https://github.com/iiab/maps/blob/master/osm-source/pages/viewer/scripts/iiab-install-map-region#L25-L34 # https://github.com/iiab/maps/blob/master/osm-source/pages/viewer/scripts/iiab-install-map-region#L23-L39
# https://github.com/iiab/iiab/blob/master/roles/openvpn/templates/iiab-support READS AND WRITES, INCL NON-BOOLEAN # https://github.com/iiab/iiab/blob/master/roles/openvpn/templates/iiab-support READS AND WRITES, INCL NON-BOOLEAN
# PARSE local_vars.yml JUST AS Ansible & /etc/openvpn/scripts/announcer DO: # PARSE local_vars.yml JUST AS Ansible & /etc/openvpn/scripts/announcer DO:

View file

@ -1,13 +1,26 @@
# workaround for fact that auto create does not work on iiab_ini_file (/etc/iiab/iiab.ini) - name: Record disk_used_a_priori (permanently, into {{ iiab_ini_file }} below) to later estimate iiab_software_disk_usage
shell: df -B1 --output=used / | tail -1
register: df1
# workaround for fact that auto create does not work on iiab_ini_file
- name: Create {{ iiab_ini_file }} - name: Create {{ iiab_ini_file }}
file: file:
path: "{{ iiab_ini_file }}" path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
state: touch state: touch
- name: Add 'location' variable values to {{ iiab_ini_file }} - name: Run command 'dpkg --print-architecture' to identify OS architecture (CPU arch as revealed by ansible_architecture ~= ansible_machine is NOT enough!)
command: dpkg --print-architecture
register: dpkg_arch
- name: Run command 'dpkg --print-foreign-architectures' (secondary OS arch, if available)
command: dpkg --print-foreign-architectures
register: dpkg_foreign_arch
- name: Add 'summary' variable values to {{ iiab_ini_file }}
ini_file: ini_file:
path: "{{ iiab_ini_file }}" path: "{{ iiab_ini_file }}"
section: location section: summary
option: "{{ item.option }}" option: "{{ item.option }}"
value: "{{ item.value | string }}" value: "{{ item.value | string }}"
with_items: with_items:
@ -15,18 +28,30 @@
value: "{{ iiab_base }}" value: "{{ iiab_base }}"
- option: iiab_dir - option: iiab_dir
value: "{{ iiab_dir }}" value: "{{ iiab_dir }}"
- option: disk_used_a_priori
value: "{{ df1.stdout }}"
- name: Add 'version' variable values to {{ iiab_ini_file }} - name: Add 'initial' variable values to {{ iiab_ini_file }}
ini_file: ini_file:
path: "{{ iiab_ini_file }}" path: "{{ iiab_ini_file }}"
section: version section: initial
option: "{{ item.option }}" option: "{{ item.option }}"
value: "{{ item.value | string }}" value: "{{ item.value | string }}"
with_items: with_items:
- option: os_ver
value: "{{ os_ver }}"
- option: distribution - option: distribution
value: "{{ ansible_distribution }}" value: "{{ ansible_facts['distribution'] }}"
- option: arch - option: arch
value: "{{ ansible_architecture }}" value: "{{ ansible_architecture }}"
- option: dpkg_arch
value: "{{ dpkg_arch.stdout }}"
- option: dpkg_foreign_arch
value: "{{ dpkg_foreign_arch.stdout }}"
- option: rpi_model
value: "{{ rpi_model }}"
- option: devicetree_model
value: "{{ devicetree_model }}"
- option: iiab_base_ver - option: iiab_base_ver
value: "{{ iiab_base_ver }}" value: "{{ iiab_base_ver }}"
- option: iiab_remote_url - option: iiab_remote_url
@ -39,7 +64,3 @@
value: "{{ ansible_local.local_facts.iiab_recent_tag }}" value: "{{ ansible_local.local_facts.iiab_recent_tag }}"
- option: install_date - option: install_date
value: "{{ ansible_date_time.iso8601 }}" value: "{{ ansible_date_time.iso8601 }}"
- option: rpi_model
value: "{{ rpi_model }}"
- option: devicetree_model
value: "{{ devicetree_model }}"

View file

@ -34,14 +34,23 @@
# Copies the latest/known version of iiab-diagnostics into /usr/bin (so it can # Copies the latest/known version of iiab-diagnostics into /usr/bin (so it can
# be run even if local source tree /opt/iiab/iiab is deleted to conserve disk). # be run even if local source tree /opt/iiab/iiab is deleted to conserve disk).
- name: Copy iiab-summary & iiab-diagnostics from /opt/iiab/iiab/scripts/ to /usr/bin/ - name: Copy iiab-update & iiab-summary & iiab-diagnostics & iiab-root-login from /opt/iiab/iiab/scripts/ to /usr/bin/
copy: copy:
src: "{{ iiab_dir }}/scripts/{{ item }}" src: "{{ iiab_dir }}/scripts/{{ item }}"
dest: /usr/bin/ dest: /usr/bin/
mode: '0755' mode: '0755'
with_items: with_items:
- iiab-update
- iiab-summary - iiab-summary
- iiab-diagnostics - iiab-diagnostics
- iiab-root-login
- name: Symlink /usr/bin/iiab-upgrade -> /usr/bin/iiab-update
file:
src: /usr/bin/iiab-update
path: /usr/bin/iiab-upgrade
state: link
#force: yes
- name: Create globally-writable directory /etc/iiab/diag (0777) so non-root users can run 'iiab-diagnostics' - name: Create globally-writable directory /etc/iiab/diag (0777) so non-root users can run 'iiab-diagnostics'
file: file:

View file

@ -64,19 +64,19 @@
# 2020-11-04: Fix validation of 5 [now 4] core dependencies, for ./runrole etc # 2020-11-04: Fix validation of 5 [now 4] core dependencies, for ./runrole etc
- name: Set vars_checklist for 44 + 44 + 40 vars ("XYZ_install" + "XYZ_enabled" + "XYZ_installed") to be checked - name: Set vars_checklist for 45 + 45 + 40 vars ("XYZ_install" + "XYZ_enabled" + "XYZ_installed") to be checked
set_fact: set_fact:
vars_checklist: vars_checklist:
- hostapd - hostapd
- dnsmasq - dnsmasq
- bluetooth - bluetooth
- sshd - sshd
- openvpn #- openvpn # Deprecated
- tailscale
- remoteit - remoteit
- admin_console - admin_console
#- nginx # MANDATORY #- nginx # MANDATORY
#- apache # Unmaintained - former dependency #- apache # Unmaintained - former dependency
#- mysql # MANDATORY
- squid - squid
- cups - cups
- samba - samba
@ -85,6 +85,7 @@
- gitea - gitea
- jupyterhub - jupyterhub
- lokole - lokole
- mysql # Dependency - excluded from _installed check below
- mediawiki - mediawiki
- mosquitto - mosquitto
- nodejs # Dependency - excluded from _installed check below - nodejs # Dependency - excluded from _installed check below
@ -155,15 +156,13 @@
that: "{{ item }}_install or {{ item }}_installed is undefined" that: "{{ item }}_install or {{ item }}_installed is undefined"
fail_msg: "DISALLOWED: '{{ item }}_install: False' (e.g. in /etc/iiab/local_vars.yml) WHEN '{{ item }}_installed' is defined (e.g. in /etc/iiab/iiab_state.yml) -- IIAB DOES NOT SUPPORT UNINSTALLS -- please verify those 2 files especially, and other places variables are defined?" fail_msg: "DISALLOWED: '{{ item }}_install: False' (e.g. in /etc/iiab/local_vars.yml) WHEN '{{ item }}_installed' is defined (e.g. in /etc/iiab/iiab_state.yml) -- IIAB DOES NOT SUPPORT UNINSTALLS -- please verify those 2 files especially, and other places variables are defined?"
quiet: yes quiet: yes
when: item != 'nodejs' and item != 'postgresql' and item != 'mongodb' and item != 'yarn' # Exclude auto-installed dependencies when: item != 'mysql' and item != 'postgresql' and item != 'mongodb' and item != 'nodejs' and item != 'yarn' # Exclude auto-installed dependencies
loop: "{{ vars_checklist }}" loop: "{{ vars_checklist }}"
- name: 'DISALLOW "XYZ_install: True" if deprecated'
assert: - name: Set vars_deprecated_list for 4+ vars ("XYZ_install") to be checked
that: "{{ item }}_install is undefined or not {{ item }}_install" set_fact:
fail_msg: "DISALLOWED: '{{ item }}_install: True' (e.g. in /etc/iiab/local_vars.yml)" vars_deprecated_list:
quiet: yes
with_items:
- dhcpd # Deprecated - dhcpd # Deprecated
- named # Deprecated - named # Deprecated
- wondershaper # Deprecated - wondershaper # Deprecated
@ -175,3 +174,23 @@
#- dokuwiki # Unmaintained #- dokuwiki # Unmaintained
#- ejabberd # Unmaintained #- ejabberd # Unmaintained
#- elgg # Unmaintained #- elgg # Unmaintained
- name: 'DISALLOW "XYZ_install: True" if deprecated'
assert:
that: "{{ item }}_install is undefined or not {{ item }}_install"
fail_msg: "DISALLOWED: '{{ item }}_install: True' (e.g. in /etc/iiab/local_vars.yml)"
quiet: yes
loop: "{{ vars_deprecated_list }}"
# 2023-12-04: ansible-core 2.16.1 suddenly no longer allows 'assert' with
# 'with_items' below (whereas 'loop' construct above works!) BACKGROUND:
#
# 'due to mitigation of security issue CVE-2023-5764 in ansible-core 2.16.1,
# conditional expressions with embedded template blocks can fail with the
# message “Conditional is marked as unsafe, and cannot be evaluated.”'
# https://docs.ansible.com/ansible-core/2.16/porting_guides/porting_guide_core_2.16.html#playbook
#
# with_items:
# - dhcpd # Deprecated
# - named # Deprecated
# - wondershaper # Deprecated
# - dansguardian # Deprecated

View file

@ -6,7 +6,7 @@ https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide#ansible[stage]
hardware, low-level OS quirks, and basic security: hardware, low-level OS quirks, and basic security:
* SSHD * SSHD
* OpenVPN if/as needed later for remote support * Tailscale if/as needed later for remote support
* https://github.com/iiab/iiab/tree/master/roles/iiab-admin#iiab-admin-readme[iiab-admin] * https://github.com/iiab/iiab/tree/master/roles/iiab-admin#iiab-admin-readme[iiab-admin]
username and group, to log into Admin Console username and group, to log into Admin Console
* dnsmasq (install now, configure later!) * dnsmasq (install now, configure later!)

View file

@ -7,17 +7,18 @@
when: first_run and rpi_model != "none" when: first_run and rpi_model != "none"
- name: Check if the identifier for Intel's NUC6 built-in WiFi is present # 2024-02-09: Code below appears stale for Shanti's #3707 hardware
shell: "lsusb | grep 8087:0a2b | wc | awk '{print $1}'" #- name: Check if the identifier for Intel's NUC6 built-in WiFi is present
register: usb_NUC6 # shell: "lsusb | grep 8087:0a2b | wc | awk '{print $1}'"
ignore_errors: True # register: usb_NUC6
# ignore_errors: True
- name: Download {{ iiab_download_url }}/iwlwifi-8000C-13.ucode to /lib/firmware for built-in WiFi on NUC6 #
get_url: #- name: Download {{ iiab_download_url }}/iwlwifi-8000C-13.ucode to /lib/firmware for built-in WiFi on NUC6
url: "{{ iiab_download_url }}/iwlwifi-8000C-13.ucode" # https://download.iiab.io/packages # get_url:
dest: /lib/firmware # url: "{{ iiab_download_url }}/Old/iwlwifi-8000C-13.ucode" # https://download.iiab.io/packages
timeout: "{{ download_timeout }}" # dest: /lib/firmware
when: usb_NUC6.stdout|int > 0 # timeout: "{{ download_timeout }}"
# when: usb_NUC6.stdout|int > 0
- name: "Look for any WiFi devices present: ls -la /sys/class/net/*/phy80211 | cut -d/ -f5" - name: "Look for any WiFi devices present: ls -la /sys/class/net/*/phy80211 | cut -d/ -f5"

View file

@ -3,22 +3,22 @@
- name: ...IS BEGINNING ============================================ - name: ...IS BEGINNING ============================================
meta: noop meta: noop
- name: SSHD -- required by OpenVPN below -- also run by roles/4-server-options/tasks/main.yml - name: SSHD
include_role: include_role:
name: sshd name: sshd
when: sshd_install when: sshd_install
- name: OPENVPN - name: TAILSCALE (VPN)
include_role: include_role:
name: openvpn name: tailscale
when: openvpn_install when: tailscale_install
- name: REMOTE.IT - name: REMOTE.IT
include_role: include_role:
name: remoteit name: remoteit
when: remoteit_install when: remoteit_install
- name: IIAB-ADMIN -- includes roles/iiab-admin/tasks/access.yml - name: IIAB-ADMIN -- includes {lynx, screen, sudo-prereqs.yml, admin-user.yml, pwd-warnings.yml}
include_role: include_role:
name: iiab-admin name: iiab-admin
#when: iiab_admin_install # Flag might be created in future? #when: iiab_admin_install # Flag might be created in future?

View file

@ -8,12 +8,21 @@
# Verifies that rootfs is the last partition. # Verifies that rootfs is the last partition.
# RELATED:
# 1. https://github.com/iiab/iiab-factory/blob/master/box/rpi/min-sd
# 2. https://github.com/iiab/iiab-factory/blob/master/box/rpi/cp-sd
# 3. https://github.com/iiab/iiab-factory/blob/master/box/rpi/xz-json-sd
# OR https://github.com/iiab/iiab-factory/blob/master/box/rpi/exp-sd
if [ -f /.expand-rootfs ] || [ -f /.resize-rootfs ]; then if [ -f /.expand-rootfs ] || [ -f /.resize-rootfs ]; then
echo "$0: Expanding rootfs partition" echo "$0: Expanding rootfs partition"
if [ -x /usr/bin/raspi-config ]; then # Raspberry Pi OS if [ -x /usr/bin/raspi-config ]; then # Raspberry Pi OS -- WARNING: their fdisk-centric approach of course FAILS with "Hybrid MBR" or GPT partition tables, as required by any drive > 2TB :/
# 2022-02-17: Uses do_expand_rootfs() from: # 2022-02-17: Uses do_expand_rootfs() from:
# https://github.com/RPi-Distro/raspi-config/blob/master/raspi-config # https://github.com/RPi-Distro/raspi-config/blob/master/raspi-config
# 2023-10-05: Official new RPi instructions:
# sudo raspi-config nonint do_expand_rootfs
# https://www.raspberrypi.com/documentation/computers/configuration.html#expand-filesystem-nonint
raspi-config --expand-rootfs # REQUIRES A REBOOT raspi-config --expand-rootfs # REQUIRES A REBOOT
rm -f /.expand-rootfs /.resize-rootfs rm -f /.expand-rootfs /.resize-rootfs
reboot # In future, we might warn interactive users that a reboot is coming? reboot # In future, we might warn interactive users that a reboot is coming?
@ -32,7 +41,7 @@ if [ -f /.expand-rootfs ] || [ -f /.resize-rootfs ]; then
fi fi
# Expand partition # Expand partition
growpart $ROOT_DEV $ROOT_PART_NUM || true # raspi-config instead uses fdisk. WARNING: growpart RC 2 is more severe than RC 1, and should possibly be handled separately in future? growpart $ROOT_DEV $ROOT_PART_NUM || true # raspi-config instead uses fdisk (assuming MBR). They really should transition to gdisk, as required by any drive > 2TB. WARNING: growpart RC 2 is more severe than RC 1, and should possibly be handled separately in future?
rc=$? # Make Return Code visible, for 'bash -x' rc=$? # Make Return Code visible, for 'bash -x'
resize2fs $ROOT_PART resize2fs $ROOT_PART
rc=$? # Make RC visible (as above) rc=$? # Make RC visible (as above)

View file

@ -1,6 +1,6 @@
# 2022-03-16: 'apt show <pkg> | grep Size' revealed download sizes, on 64-bit RasPiOS with desktop. # 2022-03-16: 'apt show <pkg> | grep Size' revealed download sizes, on 64-bit RasPiOS with desktop.
- name: "Install 17 common packages: acpid, bzip2, cron, curl, gawk, htop, i2c-tools, logrotate, plocate, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget" - name: "Install 19 common packages: acpid, bzip2, cron, curl, gawk, gpg, htop, i2c-tools, logrotate, lshw, pandoc, pastebinit, plocate, rsync, sqlite3, tar, unzip, usbutils, wget"
package: package:
name: name:
- acpid # 55kB download: Daemon for ACPI (power mgmt) events - acpid # 55kB download: Daemon for ACPI (power mgmt) events
@ -11,23 +11,24 @@
#- exfat-fuse # 28kB download: 2021-07-27: Should no longer be nec with 5.4+ kernels, so let's try commenting it out #- exfat-fuse # 28kB download: 2021-07-27: Should no longer be nec with 5.4+ kernels, so let's try commenting it out
#- exfat-utils # 41kB download: Ditto! See also 'ntfs-3g' below #- exfat-utils # 41kB download: Ditto! See also 'ntfs-3g' below
- gawk # 533kB download - gawk # 533kB download
- gpg # 884kB download: Debian 12+ (especially!) require this for apt installs of gitea, kolibri, mongodb, yarn
- htop # 109kB download: RasPiOS installs this regardless - htop # 109kB download: RasPiOS installs this regardless
- i2c-tools # 78kB download: RasPiOS installs this regardless -- Low-level bus/chip/register/EEPROM tools e.g. for RTC - i2c-tools # 78kB download: Low-level bus/chip/register/EEPROM tools e.g. for RTC
- logrotate # 67kB download: RasPiOS installs this regardless - logrotate # 67kB download: RasPiOS installs this regardless
- lshw # 257kB download: For 'lshw -C network' in iiab-diagnostics
#- lynx # 505kB download: Installed by 1-prep's roles/iiab-admin/tasks/main.yml #- lynx # 505kB download: Installed by 1-prep's roles/iiab-admin/tasks/main.yml
#- make # 376kB download: 2021-07-27: Currently used by roles/pbx and no other roles #- make # 376kB download: 2021-07-27: Currently used by roles/pbx and no other roles
#- mlocate # 92kB download
- plocate # 97kB download: Faster & smaller than locate & mlocate
#- ntfs-3g # 379kB download: RasPiOS installs this regardless -- 2021-07-31: But this should no longer be nec with 5.4+ kernels, similar to exfat packages above -- however, see also this symlink warning: https://superuser.com/questions/1050544/mount-with-kernel-ntfs-and-not-ntfs-3g -- and upcoming kernel 5.15 improvements: https://www.phoronix.com/scan.php?page=news_item&px=New-NTFS-Likely-For-Linux-5.15 #- ntfs-3g # 379kB download: RasPiOS installs this regardless -- 2021-07-31: But this should no longer be nec with 5.4+ kernels, similar to exfat packages above -- however, see also this symlink warning: https://superuser.com/questions/1050544/mount-with-kernel-ntfs-and-not-ntfs-3g -- and upcoming kernel 5.15 improvements: https://www.phoronix.com/scan.php?page=news_item&px=New-NTFS-Likely-For-Linux-5.15
#- openssh-server # 318kB download: RasPiOS installs this regardless -- this is also installed by 1-prep's roles/sshd/tasks/main.yml to cover all OS's #- openssh-server # 318kB download: RasPiOS installs this regardless -- this is also installed by 1-prep's roles/sshd/tasks/main.yml to cover all OS's
- pandoc # 19kB download: For /usr/bin/iiab-refresh-wiki-docs - pandoc # 19kB download: For /usr/bin/iiab-refresh-wiki-docs
- pastebinit # 47kB download: For /usr/bin/iiab-diagnostics - pastebinit # 47kB download: For /usr/bin/iiab-diagnostics
#- python3-pip # 337kB download: RasPiOS installs this regardless -- 2021-07-29: And already installed by /opt/iiab/iiab/scripts/ansible -- this auto-installs 'python3-setuptools' and 'python3' etc #- mlocate # 92kB download
#- python3-venv # 1188kB download: RasPiOS installs this regardless -- 2021-07-30: For Ansible module 'pip' used in roles like {calibre-web, jupyterhub, lokole} -- whereas roles/kalite uses (virtual) package 'virtualenv' for Python 2 -- all these 3+1 IIAB roles install 'python3-venv' for themselves. FYI: Debian 11 auto-installs 'python3-venv' when you install 'python3' -- whereas Ubuntu (e.g. 20.04 & 21.10) and RasPiOS 10 did not. - plocate # 97kB download: Faster & smaller than locate & mlocate
#- python3-pip # 337kB download: 2023-03-22: Used to be installed by /opt/iiab/iiab/scripts/ansible -- which would auto-install 'python3-setuptools' and 'python3' etc
#- python3-venv # 1188kB download: 2023-03-22: Already installed by /opt/iiab/iiab/scripts/ansible -- used by roles like {calibre-web, jupyterhub, lokole} -- whereas roles/kalite uses (virtual) package 'virtualenv' for Python 2 -- all these 3+1 IIAB roles install 'python3-venv' for themselves. FYI: Debian 11 no longer auto-installs 'python3-venv' when you install 'python3'
- rsync # 351kB download: RasPiOS installs this regardless - rsync # 351kB download: RasPiOS installs this regardless
#- screen # 551kB download: Installed by 1-prep's roles/iiab-admin/tasks/main.yml #- screen # 551kB download: Installed by 1-prep's roles/iiab-admin/tasks/main.yml
- sqlite3 # 1054kB download - sqlite3 # 1054kB download
#- sudo # 991kB download: RasPiOS installs this regardless -- (2) Can also be installed by roles/1-prep's roles/openvpn/tasks/install.yml, (3) Is definitely installed by 1-prep's roles/iiab-admin/tasks/sudo-prereqs.yml
- tar # 799kB download: RasPiOS installs this regardless - tar # 799kB download: RasPiOS installs this regardless
- unzip # 151kB download: RasPiOS installs this regardless - unzip # 151kB download: RasPiOS installs this regardless
#- usbmount # 18kB download: Moved to roles/usb_lib/tasks/install.yml #- usbmount # 18kB download: Moved to roles/usb_lib/tasks/install.yml

View file

@ -1,10 +1,21 @@
.. |ss| raw:: html
<strike>
.. |se| raw:: html
</strike>
.. |nbsp| unicode:: 0xA0
:trim:
==================== ====================
3-base-server README 3-base-server README
==================== ====================
This 3rd `stage <https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide#ansible>`_ installs base server infra that `Internet-in-a-Box (IIAB) <https://internet-in-a-box.org/>`_ requires, including: This 3rd `stage <https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide#ansible>`_ installs base server infra that `Internet-in-a-Box (IIAB) <https://internet-in-a-box.org/>`_ requires, including:
- `MySQL <https://github.com/iiab/iiab/blob/master/roles/mysql>`_ (database underlying many/most user-facing apps). This IIAB role also installs apt package: - |ss| `MySQL <https://github.com/iiab/iiab/blob/master/roles/mysql>`_ (database underlying many/most user-facing apps). |se| |nbsp| *As of 2023-11-05, MySQL / MariaDB is NO LONGER INSTALLED by 3-base-server — instead it's installed on-demand — as a dependency of Matomo, MediaWiki, Nextcloud, PBX (for FreePBX), WordPress &/or Admin Console.* This IIAB role (roles/mysql) also installs apt package:
- **php{{ php_version }}-mysql** — which forcibly installs **php{{ php_version }}-common** - **php{{ php_version }}-mysql** — which forcibly installs **php{{ php_version }}-common**
- `NGINX <https://github.com/iiab/iiab/blob/master/roles/nginx>`_ web server (with Apache in some lingering cases). This IIAB role also installs apt package: - `NGINX <https://github.com/iiab/iiab/blob/master/roles/nginx>`_ web server (with Apache in some lingering cases). This IIAB role also installs apt package:
- **php{{ php_version }}-fpm** — which forcibly installs **php{{ php_version }}-cli**, **php{{ php_version }}-common** and **libsodium23** - **php{{ php_version }}-fpm** — which forcibly installs **php{{ php_version }}-cli**, **php{{ php_version }}-common** and **libsodium23**

View file

@ -3,10 +3,13 @@
- name: ...IS BEGINNING ===================================== - name: ...IS BEGINNING =====================================
meta: noop meta: noop
- name: MYSQL + CORE PHP # 2023-11-05: MySQL (actually MariaDB) had been mandatory, installed on every
include_role: # IIAB by 3-base-server. Now installed on demand -- as a dependency of Matomo,
name: mysql # MediaWiki, Nextcloud, PBX (for FreePBX), WordPress &/or Admin Console.
#when: mysql_install # - name: MYSQL + CORE PHP
# include_role:
# name: mysql
# #when: mysql_install
# 2021-05-21: Apache role 'httpd' is installed as nec by any of these 6 roles: # 2021-05-21: Apache role 'httpd' is installed as nec by any of these 6 roles:
# #

View file

@ -2,7 +2,7 @@
4-server-options README 4-server-options README
======================= =======================
Whereas 3-base-server installs critical packages needed by all, this 4th `stage <https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide#ansible>`_ installs a broad array of *options* ⁠— depending on which server apps will be installed in later stages ⁠— as specified in `/etc/iiab/local_vars.yml <http://FAQ.IIAB.IO#What_is_local_vars.yml_and_how_do_I_customize_it.3F>`_ Whereas 3-base-server installs critical packages needed by all, this 4th `stage <https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide#ansible>`_ installs a broad array of *options* ⁠— depending on which server apps will be installed in later stages ⁠— as specified in `/etc/iiab/local_vars.yml <http://FAQ.IIAB.IO#What_is_local_vars.yml_and_how_do_I_customize_it%3F>`_
This includes more networking fundamentals, that may further be configured later on. This includes more networking fundamentals, that may further be configured later on.
@ -11,7 +11,7 @@ Specifically, these might be installed:
- Python libraries - Python libraries
- SSH daemon - SSH daemon
- Bluetooth for Raspberry Pi - Bluetooth for Raspberry Pi
- Instant-sharing of `USB stick content <https://wiki.iiab.io/go/FAQ#Can_teachers_display_their_own_content.3F>`_ - Instant-sharing of `USB stick content <https://wiki.iiab.io/go/FAQ#Can_teachers_display_their_own_content%3F>`_
- CUPS Printing - CUPS Printing
- Samba for Windows filesystems - Samba for Windows filesystems
- `www_options <https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml>`_ - `www_options <https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml>`_

View file

@ -19,11 +19,6 @@
#when: pylibs_installed is undefined #when: pylibs_installed is undefined
#when: pylibs_install # Flag might be created in future? #when: pylibs_install # Flag might be created in future?
- name: SSHD -- also run by roles/1-prep/tasks/main.yml as required by OpenVPN
include_role:
name: sshd
when: sshd_install
- name: Install Bluetooth - only on Raspberry Pi - name: Install Bluetooth - only on Raspberry Pi
include_role: include_role:
name: bluetooth name: bluetooth

View file

@ -29,7 +29,7 @@
- name: JUPYTERHUB - name: JUPYTERHUB
include_role: include_role:
name: jupyterhub name: jupyterhub
when: jupyterhub_install and ansible_machine is search("64") # 2022-11-10: Avoid installing on 32-bit, until RasPiOS fixes Rust (PR #3421) when: jupyterhub_install
# UNMAINTAINED # UNMAINTAINED
- name: LOKOLE - name: LOKOLE

View file

@ -6,12 +6,13 @@
- name: KALITE - name: KALITE
include_role: include_role:
name: kalite name: kalite
when: kalite_install when: kalite_install and (is_ubuntu_2204 or is_ubuntu_2310 or is_debian_12) # Also covers is_linuxmint_21 and is_raspbian_12
- name: KOLIBRI - name: KOLIBRI
include_role: include_role:
name: kolibri name: kolibri
when: kolibri_install when: kolibri_install
#when: kolibri_install and python_version is version('3.12', '<') # Debian 13 still uses Python 3.11 (for now!) so really this just avoids Ubuntu 24.04 and 24.10 pre-releases during initial iiab-install. CLARIF: This is all TEMPORARY until learningequality/kolibri#11316 brings Python 3.12 support to Kolibri 0.17 pre-releases (expected very soon).
- name: KIWIX - name: KIWIX
include_role: include_role:
@ -40,10 +41,23 @@
name: pathagar name: pathagar
when: pathagar_install is defined and pathagar_install when: pathagar_install is defined and pathagar_install
# WARNING: Since March 2023, 32-bit RasPiOS can act as 64-bit on RPi 4 and
# RPi 400 (unlike RPi 3!) SEE: https://github.com/iiab/iiab/pull/3422 and #3516
- name: Run command 'dpkg --print-architecture' to identify OS architecture (CPU arch as revealed by ansible_architecture ~= ansible_machine is NO LONGER enough!)
command: dpkg --print-architecture
register: dpkg_arch
when: sugarizer_install
- name: Explain bypassing of Sugarizer install if 32-bit OS
fail: # FORCE IT RED THIS ONCE!
msg: "BYPASSING SUGARIZER INSTALL ATTEMPT, as Sugarizer Server 1.5.0 requires MongoDB 3.2+ which is NO LONGER SUPPORTED on 32-bit Raspberry Pi OS. 'dpkg --print-architecture' output for your OS: {{ dpkg_arch.stdout }}"
when: sugarizer_install and not dpkg_arch.stdout is search("64")
ignore_errors: True
- name: SUGARIZER - name: SUGARIZER
include_role: include_role:
name: sugarizer name: sugarizer
when: sugarizer_install when: sugarizer_install and dpkg_arch.stdout is search("64")
- name: Recording STAGE 7 HAS COMPLETED ======================== - name: Recording STAGE 7 HAS COMPLETED ========================
lineinfile: lineinfile:

View file

@ -6,7 +6,7 @@
- name: TRANSMISSION - name: TRANSMISSION
include_role: include_role:
name: transmission name: transmission
when: transmission_install when: transmission_install and not (is_ubuntu_2404 or is_ubuntu_2410 or is_ubuntu_2504) # Also excludes is_linuxmint_22, for #3756 (whereas Debian 13 works great!)
- name: AWSTATS - name: AWSTATS
include_role: include_role:
@ -23,11 +23,6 @@
name: monit name: monit
when: monit_install when: monit_install
- name: MUNIN
include_role:
name: munin
when: munin_install
- name: PHPMYADMIN - name: PHPMYADMIN
include_role: include_role:
name: phpmyadmin name: phpmyadmin

View file

@ -14,10 +14,23 @@
name: captiveportal name: captiveportal
when: captiveportal_install when: captiveportal_install
# WARNING: Since March 2023, 32-bit RasPiOS can act as 64-bit on RPi 4 and
# RPi 400 (unlike RPi 3!) SEE: https://github.com/iiab/iiab/pull/3516
- name: Run command 'dpkg --print-architecture' to identify OS architecture (CPU arch as revealed by ansible_architecture ~= ansible_machine is NO LONGER enough!)
command: dpkg --print-architecture
register: dpkg_arch
when: internetarchive_install
- name: Explain bypassing of Internet Archive install if 32-bit OS
fail: # FORCE IT RED THIS ONCE!
msg: "BYPASSING INTERNET ARCHIVE PER https://github.com/iiab/iiab/issues/3641 -- 'dpkg --print-architecture' output for your OS: {{ dpkg_arch.stdout }}"
when: internetarchive_install and not dpkg_arch.stdout is search("64")
ignore_errors: True
- name: INTERNETARCHIVE - name: INTERNETARCHIVE
include_role: include_role:
name: internetarchive name: internetarchive
when: internetarchive_install when: internetarchive_install and dpkg_arch.stdout is search("64")
- name: MINETEST - name: MINETEST
include_role: include_role:
@ -27,7 +40,7 @@
- name: CALIBRE-WEB - name: CALIBRE-WEB
include_role: include_role:
name: calibre-web name: calibre-web
when: calibreweb_install and ansible_machine is search("64") # 2022-11-10: Avoid installing on 32-bit, until RasPiOS fixes Rust (PR #3421) when: calibreweb_install
# KEEP NEAR THE VERY END as this installs dependencies from Debian's 'testing' branch! # KEEP NEAR THE VERY END as this installs dependencies from Debian's 'testing' branch!
- name: CALIBRE - name: CALIBRE
@ -42,6 +55,46 @@
name: pbx name: pbx
when: pbx_install when: pbx_install
- name: '2023-11-05 / TEMPORARY UNTIL ADMIN CONSOLE DECLARES ITS DEPENDENCY: Install MySQL (MariaDB) if admin_console_install (for setup-feedback and record_feedback.php)'
set_fact:
mysql_install: True
mysql_enabled: True
when: admin_console_install
- name: '2023-11-05 / TEMPORARY UNTIL ADMIN CONSOLE DECLARES ITS DEPENDENCY: Install MySQL (MariaDB) if admin_console_install (for setup-feedback and record_feedback.php)'
include_role:
name: mysql
when: admin_console_install
- name: '2023-11-05 / TEMPORARY UNTIL ADMIN CONSOLE DECLARES ITS DEPENDENCY: Install MySQL (MariaDB) if admin_console_install (for setup-feedback and record_feedback.php)'
fail:
msg: "Admin Console install cannot proceed, as MySQL / MariaDB is not installed."
when: admin_console_install and mysql_installed is undefined
# 2023-11-05: Moved from Stage 8, as it acts on mysql_installed (that might be set just above!)
- name: MUNIN
include_role:
name: munin
when: munin_install
- name: Read 'disk_used_a_priori' from /etc/iiab/iiab.ini
set_fact:
df1: "{{ lookup('ansible.builtin.ini', 'disk_used_a_priori', section='summary', file=iiab_ini_file) }}"
- name: Record currently used disk space, to compare with original 'disk_used_a_priori'
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add ESTIMATED 'iiab_software_disk_usage = {{ df2.stdout|int - df1|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: summary
option: iiab_software_disk_usage
value: "{{ df2.stdout|int - df1|int }}"
- name: Recording STAGE 9 HAS COMPLETED ==================== - name: Recording STAGE 9 HAS COMPLETED ====================
lineinfile: lineinfile:
path: "{{ iiab_env_file }}" path: "{{ iiab_env_file }}"

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: 'Install package: awstats' - name: 'Install package: awstats'
package: package:
name: awstats name: awstats
@ -93,6 +98,17 @@
# RECORD AWStats AS INSTALLED # RECORD AWStats AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'awstats_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: awstats
option: awstats_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'awstats_installed: True'" - name: "Set 'awstats_installed: True'"
set_fact: set_fact:
awstats_installed: True awstats_installed: True

View file

@ -25,6 +25,11 @@
# 5. Run './runrole --reinstall azuracast' in /opt/iiab/iiab # 5. Run './runrole --reinstall azuracast' in /opt/iiab/iiab
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: AzuraCast - Make config directory {{ azuracast_host_dir }} - name: AzuraCast - Make config directory {{ azuracast_host_dir }}
file: file:
path: "{{ azuracast_host_dir }}" path: "{{ azuracast_host_dir }}"
@ -102,6 +107,17 @@
# RECORD AzuraCast AS INSTALLED # RECORD AzuraCast AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'azuracast_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: azuracast
option: azuracast_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'azuracast_installed: True'" - name: "Set 'azuracast_installed: True'"
set_fact: set_fact:
azuracast_installed: True azuracast_installed: True

View file

@ -13,98 +13,175 @@
Calibre-Web README Calibre-Web README
================== ==================
Calibre-Web provides a clean interface for browsing, reading and downloading This Ansible role installs
e-books using an existing Calibre database. Teachers can upload e-books, `Calibre-Web <https://github.com/janeczku/calibre-web#readme>`_ as a modern
adjust e-book metadata, and create custom e-book collections ("bookshelves"): client-server alternative to Calibre, for your
https://github.com/janeczku/calibre-web#about `Internet-in-a-Box (IIAB) <https://internet-in-a-box.org>`_.
This Ansible role installs Calibre-Web as part of your Internet-in-a-Box (IIAB) Calibre-Web provides a clean web interface for students to browse, read and
as a possible alternative to Calibre. download e-books using a
`Calibre-compatible database <https://manual.calibre-ebook.com/db_api.html>`_.
*WARNING: Calibre-Web depends on Calibre's own* ``/usr/bin/ebook-convert`` *program, Teachers upload e-books, adjust e-book metadata, and create custom "bookshelf"
so we strongly recommend you also install Calibre during your IIAB collections — to help students build the best local community library!
installation!*
Please note Calibre-Web's Ansible playbook is ``/opt/iiab/iiab/roles/calibre-web`` **NEW AS OF JANUARY 2024:** `IIAB's experimental new version of Calibre-Web <https://github.com/iiab/calibre-web/wiki>`_
whereas its Ansible variables ``calibreweb_*`` do **not** include the dash, **also lets you add YouTube and Vimeo videos (and local videos, e.g. from
per Ansible recommendations. teachers' phones) to expand your indigenous/local/family learning library!**
.. image:: https://www.yankodesign.com/images/design_news/2019/05/221758/luo_beetle_library_8.jpg
🍒 GURU TIPS 🍒
* Calibre-Web takes advantage of Calibre's own `/usr/bin/ebook-convert
<https://manual.calibre-ebook.com/generated/en/ebook-convert.html>`_ program
if that's installed — so consider also installing
`Calibre <https://calibre-ebook.com/whats-new>`_ during your IIAB
installation — *if you tolerate the weighty ~1 GB (of graphical OS libraries)
that Calibre mandates!*
* If you choose to also install Calibre (e.g. by running
``sudo apt install calibre``) then you'll get useful e-book
importing/organizing tools like
`/usr/bin/calibredb <https://manual.calibre-ebook.com/generated/en/calibredb.html>`_.
Install It
----------
Install Calibre-Web by setting these 2 variables in
`/etc/iiab/local_vars.yml <https://wiki.iiab.io/go/FAQ#What_is_local_vars.yml_and_how_do_I_customize_it%3F>`_::
calibreweb_install: True
calibreweb_enabled: True
Then install IIAB (`download.iiab.io <https://download.iiab.io>`_). Or if
IIAB's already installed, run::
cd /opt/iiab/iiab
sudo ./runrole calibre-web
NOTE: Calibre-Web's Ansible role (playbook) in
`/opt/iiab/iiab/roles <https://github.com/iiab/iiab/tree/master/roles>`_ is
``calibre-web`` which contains a hyphen — *whereas its Ansible variables*
``calibreweb_*`` *do NOT contain a hyphen!*
Using It Using It
-------- --------
After installation, try out Calibre-Web at http://box/books (or box.lan/books). Try Calibre-Web on your own IIAB by browsing to http://box/books (or
http://box.lan/books).
Typically students access it without a password (to read and download books) *Students* access it without a password (to read and download books).
whereas teachers add books using an administrative account, as follows::
*Teachers* add and arrange books using an administrative account, by clicking
**Guest** then logging in with::
Username: Admin Username: Admin
Password: changeme Password: changeme
If the default configuration is not found, the Calibre-Web server creates a 🍒 GURU TIPS 🍒
new settings file with calibre-web's own default administrative account::
* If Calibre-Web's configuration file (app.db) goes missing, the administrative
account will revert to::
Username: admin Username: admin
Password: admin123 Password: admin123
Backend * If you lose your password, you can change it with the
------- ``-s [username]:[newpassword]`` command-line option:
https://github.com/janeczku/calibre-web/wiki/FAQ#what-do-i-do-if-i-lose-my-admin-password
You can manage the backend Calibre-Web server with these systemd commands::
systemctl enable calibre-web
systemctl restart calibre-web
systemctl status calibre-web
systemctl stop calibre-web
Configuration Configuration
------------- -------------
To configure Calibre-Web, log in as user 'Admin' then click 'Admin' on top. To configure Calibre-Web browse to http://box/books then click **Guest** to log
Check 'Configuration' options near the bottom of the page. in as user **Admin** (default passwords above!)
Critical settings are stored in:: Then click the leftmost **Admin** button to administer — considering all 3
**Configuration** buttons further below.
These critical settings are stored in::
/library/calibre-web/config/app.db /library/calibre-web/config/app.db
Your e-book metadata is stored in a Calibre-style database:: Whereas your e-book metadata is stored in a Calibre-style database::
/library/calibre-web/metadata.db /library/calibre-web/metadata.db
Videos' metadata is stored in database::
/library/calibre-web/xklb-metadata.db
See also:: See also::
/library/calibre-web/metadata_db_prefs_backup.json /library/calibre-web/metadata_db_prefs_backup.json
Finally, take note of Calibre-Web's `FAQ <https://github.com/janeczku/calibre-web/wiki/FAQ>`_ and official docs on its `Runtime Configuration Options <https://github.com/janeczku/calibre-web/wiki/Configuration>`_ and `Command Line Interface <https://github.com/janeczku/calibre-web/wiki/Command-Line-Interface>`_. Finally, take note of Calibre-Web's
`FAQ <https://github.com/janeczku/calibre-web/wiki/FAQ>`_ and official docs on
its
`Runtime Configuration Options <https://github.com/janeczku/calibre-web/wiki/Configuration>`_
and
`Command Line Interface <https://github.com/janeczku/calibre-web/wiki/Command-Line-Interface>`_.
Backend
-------
You can manage the backend Calibre-Web server with systemd commands like::
systemctl status calibre-web
systemctl stop calibre-web
systemctl restart calibre-web
Run all commands
`as root <https://unix.stackexchange.com/questions/3063/how-do-i-run-a-command-as-the-system-administrator-root>`_.
Errors and warnings can be seen if you run::
journalctl -u calibre-web
Log verbosity level can be
`adjusted <https://github.com/janeczku/calibre-web/wiki/Configuration#logfile-configuration>`_
within Calibre-Web's **Configuration > Basic Configuration > Logfile
Configuration**.
Finally, http://box/live/stats (Calibre-Web's **About** page) can be a very
useful list of ~42 `Calibre-Web dependencies <https://github.com/janeczku/calibre-web/wiki/Dependencies-in-Calibre-Web-Linux-and-Windows>`_
(mostly Python packages, and the version number of each that's installed).
Back Up Everything Back Up Everything
------------------ ------------------
Please back up the entire folder ``/library/calibre-web`` before upgrading — Please back up the entire folder ``/library/calibre-web`` before upgrading —
as it contains your Calibre-Web content **and** settings! as it contains your Calibre-Web content **and** configuration settings!
Upgrading Upgrading
--------- ---------
Reinstalling Calibre-Web automatically upgrades to the latest version if your Please see our `new/automated upgrade technique (iiab-update) <https://github.com/iiab/calibre-web/wiki#upgrading>`_
Internet-in-a-Box (IIAB) is online. introduced in July 2024.
But first: back up your content **and** settings, as explained above. But first: back up your content **and** configuration settings, as outlined
above!
**Also move your /library/calibre-web/config/app.db AND/OR **Conversely if you're sure you want to fully reset your Calibre-Web settings,
/library/calibre-web/metadata.db out of the way — if you're sure you want to and remove all existing e-book/video/media metadata — then move your
fully reset your Calibre-Web settings (to install defaults) AND/OR remove all /library/calibre-web/config/app.db, /library/calibre-web/metadata.db and
e-book metadata! Then run**:: /library/calibre-web/xklb-metadata.db out of the way.**
RECAP: Either way, "reinstalling" Calibre-Web automatically installs the latest
version — so long as your Internet-in-a-Box (IIAB) is online. Most people
should stick with the new ``iiab-update`` technique above. However if you must
use the older/manual approach, you would need to run, as root::
cd /opt/iiab/iiab cd /opt/iiab/iiab
./runrole --reinstall calibre-web ./runrole --reinstall calibre-web
Or, if you just want to upgrade Calibre-Web code alone, prior to proceeding Or, if there's a need to try updating Calibre-Web's code alone::
manually::
cd /usr/local/calibre-web-py3 cd /usr/local/calibre-web-py3
git pull git pull
This older way *is no longer recommended*:: Finally, this much older way is *no longer recommended*::
cd /opt/iiab/iiab cd /opt/iiab/iiab
./iiab-install --reinstall # OR: ./iiab-configure ./iiab-install --reinstall # OR: ./iiab-configure
@ -156,5 +233,5 @@ Known Issues
* |ss| Upload of not supported file formats gives no feedback to the user: `janeczku/calibre-web#828 <https://github.com/janeczku/calibre-web/issues/828>`_ |se| |nbsp| Fixed by `361a124 <https://github.com/janeczku/calibre-web/commit/361a1243d732116e6f520fabbaae017068b86037>`_ on 2019-02-27. * |ss| Upload of not supported file formats gives no feedback to the user: `janeczku/calibre-web#828 <https://github.com/janeczku/calibre-web/issues/828>`_ |se| |nbsp| Fixed by `361a124 <https://github.com/janeczku/calibre-web/commit/361a1243d732116e6f520fabbaae017068b86037>`_ on 2019-02-27.
* *Please assist us in reporting serious issues here:* * *Please report serious issues here:*
https://github.com/janeczku/calibre-web/issues https://github.com/iiab/calibre-web/issues

View file

@ -14,8 +14,10 @@
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml # All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
calibreweb_repo_url: https://github.com/iiab/calibre-web # Or use upstream: https://github.com/janeczku/calibre-web
calibreweb_version: master # WAS: master, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.6.9 calibreweb_version: master # WAS: master, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.6.9
calibreweb_venv_wipe: False # 2023-12-04: NEW default TDD (Test-Driven Dev!)
calibreweb_venv_path: /usr/local/calibre-web-py3 calibreweb_venv_path: /usr/local/calibre-web-py3
calibreweb_exec_path: "{{ calibreweb_venv_path }}/cps.py" calibreweb_exec_path: "{{ calibreweb_venv_path }}/cps.py"

Binary file not shown.

View file

@ -23,12 +23,29 @@
dest: "{{ nginx_conf_dir }}/calibre-web-nginx.conf" # /etc/nginx/conf.d dest: "{{ nginx_conf_dir }}/calibre-web-nginx.conf" # /etc/nginx/conf.d
when: calibreweb_enabled when: calibreweb_enabled
- name: If enabling with Calibre-Web enhanced for large audio/video "books" too, also append onto calibre-web-nginx.conf AND symlink /library/www/html/calibre-web -> /library/calibre-web (WIP)
shell: |
if [ -f {{ calibreweb_venv_path }}/scripts/calibre-web-nginx.conf ]; then
cat {{ calibreweb_venv_path }}/scripts/calibre-web-nginx.conf >> {{ nginx_conf_dir }}/calibre-web-nginx.conf
# 2023-12-05: Not needed as a result of PR iiab/calibre-web#57
# ln -sf {{ calibreweb_home }} {{ doc_root }}/calibre-web
fi
when: calibreweb_enabled
- name: Disable http://box{{ calibreweb_url1 }} via NGINX, by removing {{ nginx_conf_dir }}/calibre-web-nginx.conf - name: Disable http://box{{ calibreweb_url1 }} via NGINX, by removing {{ nginx_conf_dir }}/calibre-web-nginx.conf
file: file:
path: "{{ nginx_conf_dir }}/calibre-web-nginx.conf" # /etc/nginx/conf.d path: "{{ nginx_conf_dir }}/calibre-web-nginx.conf"
state: absent state: absent
when: not calibreweb_enabled when: not calibreweb_enabled
- name: If disabling, also remove symlink /library/www/html/calibre-web (WIP)
file:
path: "{{ doc_root }}/calibre-web" # /library/www/html
state: absent
when: not calibreweb_enabled
- name: Restart 'nginx' systemd service - name: Restart 'nginx' systemd service
systemd: systemd:
name: nginx name: nginx

View file

@ -1,10 +1,50 @@
- name: "Install packages: imagemagick, python3-venv" # Or try 'iiab-update -f' for a more rapid upgrade of IIAB Calibre-Web:
#
# https://wiki.iiab.io/go/FAQ#Can_I_upgrade_IIAB_software%3F
# https://github.com/iiab/calibre-web/wiki#upgrading
# https://github.com/iiab/iiab/blob/master/scripts/iiab-update
# https://github.com/iiab/iiab/tree/master/roles/calibre-web#upgrading
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: Stop 'calibre-web' systemd service for safety (RED ERROR CAN BE IGNORED!)
systemd:
name: calibre-web
state: stopped
ignore_errors: True # Shows red errors, and continue...
#failed_when: False # Hides red errors, and continue...
# Official upstream instructions:
# apt install python3-pip python3-venv
# https://github.com/janeczku/calibre-web/wiki/Manual-installation
- name: "Install package: imagemagick"
package: package:
name: name:
- imagemagick - imagemagick
- python3-venv #- python3-cryptography # Was needed on Raspberry Pi OS (SEE iiab/calibre-web#260, janeczku/calibre-web#3183)
#- python3-netifaces
state: present state: present
# https://github.com/iiab/iiab/pull/3496#issuecomment-1475094542
#- name: "Install packages: python3-dev, gcc to compile 'netifaces'"
# package:
# name:
# - python3-dev # header files
# - gcc # compiler
# state: present
# when: python_version is version('3.10', '>=')
- name: Does /etc/ImageMagick-6/policy.xml exist?
stat:
path: /etc/ImageMagick-6/policy.xml
register: imagemagick6_policy_xml
# 2024-12-16: Debian 13 uses /etc/ImageMagick-7/policy.xml instead, which doesn't need this lineinfile surgery:
# https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion
- name: Allow ImageMagick to read PDFs, per /etc/ImageMagick-6/policy.xml, to create book cover thumbnails - name: Allow ImageMagick to read PDFs, per /etc/ImageMagick-6/policy.xml, to create book cover thumbnails
lineinfile: lineinfile:
path: /etc/ImageMagick-6/policy.xml path: /etc/ImageMagick-6/policy.xml
@ -12,8 +52,9 @@
backrefs: yes backrefs: yes
line: ' <policy domain="coder" rights="read" pattern="PDF" />' line: ' <policy domain="coder" rights="read" pattern="PDF" />'
state: present state: present
when: imagemagick6_policy_xml.stat.exists
- name: "Create 3 Calibre-Web folders to store data and config files: {{ calibreweb_home }}, {{ calibreweb_venv_path }}, {{ calibreweb_config }} (all set to {{ calibreweb_user }}:{{ apache_user }}) (default to 0755)" - name: "Create 2 Calibre-Web folders to store data and config files: {{ calibreweb_home }}, {{ calibreweb_config }} (each set to {{ calibreweb_user }}:{{ apache_user }}, default to 0755)"
file: file:
state: directory state: directory
path: "{{ item }}" path: "{{ item }}"
@ -22,40 +63,100 @@
with_items: with_items:
- "{{ calibreweb_home }}" # /library/calibre-web - "{{ calibreweb_home }}" # /library/calibre-web
- "{{ calibreweb_config }}" # /library/calibre-web/config - "{{ calibreweb_config }}" # /library/calibre-web/config
- "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
## TODO: Calibre-web future release might get into pypi https://github.com/janeczku/calibre-web/issues/456 # FYI since May 2021, Calibre-Web (major releases) can be installed with pip:
- name: Clone i.e. download Calibre-Web ({{ calibreweb_version }}) from https://github.com/janeczku/calibre-web.git to {{ calibreweb_venv_path }} (~94 MB initially, ~115+ MB later) # https://pypi.org/project/calibreweb/
# https://github.com/janeczku/calibre-web/issues/456
# https://github.com/janeczku/calibre-web/issues/677
# https://github.com/janeczku/calibre-web/pull/927
# https://github.com/janeczku/calibre-web/pull/1459
- name: "Remove previous virtual environment {{ calibreweb_venv_path }} -- if 'calibreweb_venv_wipe: True'"
file:
path: "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
state: absent
when: calibreweb_venv_wipe
- name: Does {{ calibreweb_venv_path }} exist?
stat:
path: "{{ calibreweb_venv_path }}"
register: calibreweb_venv
- name: git clone Calibre-Web ({{ calibreweb_version }}) from {{ calibreweb_repo_url }} to {{ calibreweb_venv_path }} (~122 MB initially, ~191+ or ~203+ MB later) -- if {{ calibreweb_venv_path }} doesns't exist
git: git:
repo: https://github.com/janeczku/calibre-web.git repo: "{{ calibreweb_repo_url }}" # e.g. https://github.com/iiab/calibre-web or https://github.com/janeczku/calibre-web
dest: "{{ calibreweb_venv_path }}" dest: "{{ calibreweb_venv_path }}"
force: yes #force: True # CLAIM: "If true, any modified files in the working repository will be discarded" -- REALITY: even if `force: no`, Ansible destructively reclones (also removing all test branch commits etc!) -- unless a git credential is provided to Ansible?
depth: 1 #depth: 1 # 2023-11-04: Full clone for now, to help @deldesir & wider community testing
version: "{{ calibreweb_version }}" # e.g. master, 0.6.17 version: "{{ calibreweb_version }}" # e.g. master, 0.6.22
when: not calibreweb_venv.stat.exists
## Ansible Pip Bug: Cannot use 'chdir' with 'env' https://github.com/ansible/ansible/issues/37912 (Patch landed) - name: cd {{ calibreweb_venv_path }} ; git pull {{ calibreweb_repo_url }} {{ calibreweb_version }} --no-rebase --no-edit -- if {{ calibreweb_venv_path }} exists
#- name: Download calibre-web dependencies into vendor subdirectory. command: git pull "{{ calibreweb_repo_url }}" "{{ calibreweb_version }}" --no-rebase --no-edit
# pip: args:
# requirements: "{{ calibreweb_path }}/requirements.txt" chdir: "{{ calibreweb_venv_path }}"
# chdir: "{{ calibreweb_path }}" when: calibreweb_venv.stat.exists
# extra_args: '--target vendor'
# ignore_errors: True - debug:
## msg:
# Implementing this with Ansible command module for now. - "NEED BETTER/EXPERIMENTAL YouTube SCRAPING? RUN THE NEXT LINE -- for the latest yt-dlp 'nightly' release:"
- name: Download Calibre-Web dependencies (using pip) into python3 virtual environment {{ calibreweb_venv_path }} - sudo pipx inject --pip-args='--upgrade --pre' -f library yt-dlp[default]
- name: If Calibre-Web is being enhanced with audio/video "books" too, install/upgrade additional prereqs -- SEE https://github.com/iiab/calibre-web/wiki
shell: |
if [ -f {{ calibreweb_venv_path }}/scripts/lb-wrapper ]; then
apt install ffmpeg pipx -y
if lb --version; then
if pipx list | grep -q 'xklb'; then
pipx uninstall xklb
pipx install library
else
pipx reinstall library
fi
else
pipx install library
fi
ln -sf /root/.local/bin/lb /usr/local/bin/lb
if [ -f /root/.local/share/pipx/venvs/library/bin/yt-dlp ]; then
ln -sf /root/.local/share/pipx/venvs/library/bin/yt-dlp /usr/local/bin/yt-dlp
elif [ -f /root/.local/pipx/venvs/library/bin/yt-dlp ]; then
ln -sf /root/.local/pipx/venvs/library/bin/yt-dlp /usr/local/bin/yt-dlp
else
echo "ERROR: yt-dlp NOT FOUND"
fi
# NEED BETTER/EXPERIMENTAL YouTube SCRAPING? UNCOMMENT THE NEXT LINE -- for the latest yt-dlp "nightly" release:
# pipx inject --pip-args="--upgrade --pre" -f library yt-dlp[default]
#
# https://github.com/yt-dlp/yt-dlp-nightly-builds/releases
# https://pypi.org/project/yt-dlp/#history
cp {{ calibreweb_venv_path }}/scripts/lb-wrapper /usr/local/bin/
chmod a+x /usr/local/bin/lb-wrapper
fi
- name: Download Calibre-Web dependencies from 'requirements.txt' into python3 virtual environment {{ calibreweb_venv_path }}
pip: pip:
requirements: "{{ calibreweb_venv_path }}/requirements.txt" requirements: "{{ calibreweb_venv_path }}/requirements.txt"
virtualenv: "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3 virtualenv: "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
virtualenv_site_packages: no #virtualenv_site_packages: no
#virtualenv_command: python3 -m venv --system-site-packages {{ calibreweb_venv_path }}
virtualenv_command: python3 -m venv {{ calibreweb_venv_path }} virtualenv_command: python3 -m venv {{ calibreweb_venv_path }}
extra_args: --prefer-binary # 2023-10-01: Lifesaver when recent wheels (e.g. piwheels.org) are inevitably not yet built! SEE #3560
# 2023-10-11: RasPiOS Bookworm doc for Python with venv (PEP 668 now enforced!)
# https://www.raspberrypi.com/documentation/computers/os.html#use-python-on-a-raspberry-pi
# https://www.raspberrypi.com/documentation/computers/os.html#install-python-packages-using-apt
# https://www.raspberrypi.com/documentation/computers/os.html#install-python-libraries-using-pip
# VIRTUALENV EXAMPLE COMMANDS: # VIRTUALENV EXAMPLE COMMANDS:
# python3 -m venv /usr/local/calibre-web-py3 (create venv)
# cd /usr/local/calibre-web-py3 # cd /usr/local/calibre-web-py3
# source bin/activate # . bin/activate (or 'source bin/activate' -- this prepends '/usr/local/calibre-web-py3/bin' to yr PATH)
# python3 -m pip list ('pip list' probably sufficient, likewise below) # python3 -m pip list ('pip list' sufficient *IF* path set above!)
# python3 -m pip freeze > /tmp/requirements.txt # python3 -m pip freeze > /tmp/requirements.txt
# python3 -m pip install -r requirements.txt # python3 -m pip install -r requirements.txt
# deactivate # deactivate
# https://pip.pypa.io/en/latest/user_guide/#requirements-files # https://pip.pypa.io/en/stable/user_guide/#requirements-files
# https://pip.pypa.io/en/latest/reference/requirements-file-format/
- name: Install /etc/systemd/system/calibre-web.service from template - name: Install /etc/systemd/system/calibre-web.service from template
template: template:
@ -96,6 +197,17 @@
# RECORD Calibre-Web AS INSTALLED # RECORD Calibre-Web AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'calibreweb_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: calibre-web
option: calibreweb_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'calibreweb_installed: True'" - name: "Set 'calibreweb_installed: True'"
set_fact: set_fact:
calibreweb_installed: True calibreweb_installed: True

View file

@ -5,7 +5,7 @@ location {{ calibreweb_url1 }}/ {
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme; proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name {{ calibreweb_url1 }}; proxy_set_header X-Script-Name "{{ calibreweb_url1 }}";
proxy_pass http://127.0.0.1:8083; proxy_pass http://127.0.0.1:8083;
} }
@ -14,7 +14,7 @@ location {{ calibreweb_url2 }}/ {
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme; proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name {{ calibreweb_url2 }}; proxy_set_header X-Script-Name "{{ calibreweb_url2 }}";
proxy_pass http://127.0.0.1:8083; proxy_pass http://127.0.0.1:8083;
} }
@ -23,6 +23,6 @@ location {{ calibreweb_url3 }}/ {
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme; proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name {{ calibreweb_url3 }}; proxy_set_header X-Script-Name "{{ calibreweb_url3 }}";
proxy_pass http://127.0.0.1:8083; proxy_pass http://127.0.0.1:8083;
} }

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
# 1. APT INSTALL CALIBRE 4.12+ or 5.12+ (calibre, calibredb, calibre-server etc) ON ALL OS'S # 1. APT INSTALL CALIBRE 4.12+ or 5.12+ (calibre, calibredb, calibre-server etc) ON ALL OS'S
- name: "Install OS's latest packages: calibre, calibre-bin" - name: "Install OS's latest packages: calibre, calibre-bin"
@ -79,6 +84,17 @@
# 5. RECORD Calibre AS INSTALLED # 5. RECORD Calibre AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'calibre_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: calibre
option: calibre_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'calibre_installed: True'" - name: "Set 'calibre_installed: True'"
set_fact: set_fact:
calibre_installed: True calibre_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: "Install packages: python3-dateutil, python3-jinja2" - name: "Install packages: python3-dateutil, python3-jinja2"
package: package:
name: name:
@ -51,6 +56,17 @@
# RECORD Captive Portal AS INSTALLED # RECORD Captive Portal AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'captiveportal_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: captiveportal
option: captiveportal_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'captiveportal_installed: True'" - name: "Set 'captiveportal_installed: True'"
set_fact: set_fact:
captiveportal_installed: True captiveportal_installed: True

View file

@ -8,7 +8,7 @@ This can be useful if a printer is attached to your IIAB &mdash; so student/teac
## Using it ## Using it
Make sure your IIAB was installed with these 2 lines in [/etc/iiab/local_vars.yml](http://faq.iiab.io/#What_is_local_vars.yml_and_how_do_I_customize_it.3F) : Make sure your IIAB was installed with these 2 lines in [/etc/iiab/local_vars.yml](http://faq.iiab.io/#What_is_local_vars.yml_and_how_do_I_customize_it%3F) :
``` ```
cups_install: True cups_install: True

View file

@ -2,6 +2,11 @@
# (OR ANY MEMBER OF LINUX GROUP 'lpadmin') AS SET UP BELOW... # (OR ANY MEMBER OF LINUX GROUP 'lpadmin') AS SET UP BELOW...
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: Install 'cups' package - name: Install 'cups' package
package: package:
name: cups name: cups
@ -53,15 +58,30 @@
AuthType Default AuthType Default
Require user @SYSTEM Require user @SYSTEM
- name: "CUPS web administration: Create Linux username 'Admin' with password 'changeme' in Linux group 'lpadmin' (shell: /usr/sbin/nologin, create_home: no)" - name: "CUPS web administration: Create Linux username 'Admin' in Linux group 'lpadmin' (shell: /usr/sbin/nologin, create_home: no)"
user: user:
name: Admin name: Admin
append: yes # Don't clobber other groups, that other IIAB Apps might need. append: yes # Don't clobber other groups, that other IIAB Apps might need.
groups: lpadmin groups: lpadmin
password: "{{ 'changeme' | password_hash('sha512') }}" # Random salt. Presumably runs 5000 rounds of SHA-512 per /etc/login.defs & /etc/pam.d/common-password -- https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#encrypting-and-checksumming-strings-and-passwords #password: "{{ 'changeme' | password_hash('sha512') }}" # Random salt. Presumably runs 5000 rounds of SHA-512 per /etc/login.defs & /etc/pam.d/common-password -- https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_filters.html#hashing-and-encrypting-strings-and-passwords
create_home: no create_home: no
shell: /usr/sbin/nologin # Debian/Ubuntu norm -- instead of /sbin/nologin, /bin/false shell: /usr/sbin/nologin # Debian/Ubuntu norm -- instead of /sbin/nologin, /bin/false
# 2024-05-01: Above password-setting approach no longer works w/ Ansible 2.17 RC1 (#3727).
# Ansible STOPS with this error...
#
# "[DEPRECATION WARNING]: Encryption using the Python crypt module is deprecated. The Python crypt module is
# deprecated and will be removed from Python 3.13. Install the passlib library for continued encryption
# functionality. This feature will be removed in version 2.17. Deprecation warnings can be disabled by
# setting deprecation_warnings=False in ansible.cfg."
#
# ...so we instead use Linux's "chpasswd" command (below!)
- name: Use chpasswd to set Linux username 'Admin' password to 'changeme'
command: chpasswd
args:
stdin: Admin:changeme
# - name: Add user '{{ iiab_admin_user }}' to Linux group 'lpadmin' -- for CUPS web administration (or modify default 'SystemGroup lpadmin' in /etc/cups/cups-files.conf -- in coordination with ~14 -> ~15 '@SYSTEM' lines in /etc/cups/cupsd.conf) # - name: Add user '{{ iiab_admin_user }}' to Linux group 'lpadmin' -- for CUPS web administration (or modify default 'SystemGroup lpadmin' in /etc/cups/cups-files.conf -- in coordination with ~14 -> ~15 '@SYSTEM' lines in /etc/cups/cupsd.conf)
# #command: "gpasswd -a {{ iiab_admin_user | quote }} lpadmin" # #command: "gpasswd -a {{ iiab_admin_user | quote }} lpadmin"
# #command: "gpasswd -d {{ iiab_admin_user | quote }} lpadmin" # #command: "gpasswd -d {{ iiab_admin_user | quote }} lpadmin"
@ -124,6 +144,17 @@
# RECORD CUPS AS INSTALLED # RECORD CUPS AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'cups_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: cups
option: cups_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'cups_installed: True'" - name: "Set 'cups_installed: True'"
set_fact: set_fact:
cups_installed: True cups_installed: True

View file

@ -23,14 +23,14 @@
quiet: yes quiet: yes
- block:
- name: Install CUPS if 'cups_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml - name: Install CUPS if 'cups_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: install.yml include_tasks: install.yml
when: cups_installed is undefined when: cups_installed is undefined
- include_tasks: enable-or-disable.yml - include_tasks: enable-or-disable.yml
- name: Add 'cups' variable values to {{ iiab_ini_file }} - name: Add 'cups' variable values to {{ iiab_ini_file }}
ini_file: ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
@ -46,3 +46,10 @@
value: "{{ cups_install }}" value: "{{ cups_install }}"
- option: cups_enabled - option: cups_enabled
value: "{{ cups_enabled }}" value: "{{ cups_enabled }}"
rescue:
- name: 'SEE ERROR ABOVE (skip_role_on_error: {{ skip_role_on_error }})'
fail:
msg: ""
when: not skip_role_on_error

View file

@ -1,23 +1,44 @@
- name: Back up 4 OS-provided WiFi firmware files (or symlinks) to /lib/firmware/brcm/*.orig # 2023-02-25: MONITOR FIRMWARE UPDATES in 3 places especially...
copy: #
src: /lib/firmware/brcm/{{ item }} # 1. apt changelog firmware-brcm80211
dest: /lib/firmware/brcm/{{ item }}.orig # https://github.com/RPi-Distro/firmware-nonfree -> debian/config/brcm80211 (brcm, cypress)
# https://archive.raspberrypi.org/debian/dists/bullseye/main/binary-arm64/Packages (1.1MB text file, look inside for summary of latest firmware-brcm80211)
# https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/ -> firmware-brcm80211_* e.g.:
# https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/firmware-brcm80211_20190114-1+rpt11_all.deb from 2021-01-25
# https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/firmware-brcm80211_20210315-3+rpt4_all.deb from 2021-12-06
# https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/firmware-brcm80211_20221012-1~bpo11+1+rpt1_all.deb from 2022-11-17
# 2. apt changelog linux-firmware-raspi
# https://packages.ubuntu.com/search?keywords=linux-firmware-raspi
# 3. https://github.com/moodlebox/moodlebox/blob/main/roles/accesspoint/tasks/main.yml
#- name: Back up 4 OS-provided WiFi firmware files (incl symlink contents) to /lib/firmware/cypress/*.orig
- name: Back up 4 OS-provided WiFi firmware files (replicate any symlinks) to /lib/firmware/cypress/*.orig -- /usr/bin/iiab-check-firmware will later do similar (e.g. as firmware install completes) -- moving 2-or-4 of these to <ORIGINAL FILENAME>.YYYY-MM-DD-HH:MM:SS ("doubly timestamping" to preserve BOTH last-modif & moving date)
# copy:
# src: /lib/firmware/cypress/{{ item }}
# dest: /lib/firmware/cypress/{{ item }}.orig
# #local_follow: False # FAILS TO PRESERVE LINKS (ansible/ansible#74777) e.g. /lib/firmware/cypress/cyfmac43455-sdio.bin -> /etc/alternatives/cyfmac43455-sdio.bin -> ...
# 2023-05-01 CLARIF OF BELOW:
# 1) Even if 'mv' fails, no matter it'll continue to 'cp' below
# 2) 'cp -P' == 'cp --no-dereference' sufficient to replicate these symlinks and files ('cp -d' & 'cp -a' are incrementally stronger, and so probably can't hurt)
shell: |
mv /lib/firmware/cypress/{{ item }}.orig /lib/firmware/cypress/{{ item }}.orig.$(date +%F-%T)
cp -a /lib/firmware/cypress/{{ item }} /lib/firmware/cypress/{{ item }}.orig
with_items: with_items:
- brcmfmac43430-sdio.bin - cyfmac43430-sdio.bin
- brcmfmac43430-sdio.clm_blob - cyfmac43430-sdio.clm_blob
- brcmfmac43455-sdio.bin - cyfmac43455-sdio.bin
- brcmfmac43455-sdio.clm_blob - cyfmac43455-sdio.clm_blob
ignore_errors: yes #ignore_errors: yes # 2023-02-25: Let's INTENTIONALLY surface any errors, e.g. if any future RasPiOS or Ubuntu-on-Rpi lack some of the above 4 files/links?
- name: Download higher-capacity firmwares (for RPi internal WiFi, per https://github.com/iiab/iiab/issues/823#issuecomment-662285202 and https://github.com/iiab/iiab/issues/2853) - name: Download higher-capacity firmwares (for RPi internal WiFi, per https://github.com/iiab/iiab/issues/823#issuecomment-662285202 and https://github.com/iiab/iiab/issues/2853)
get_url: get_url:
url: "{{ iiab_download_url }}/{{ item }}" url: "{{ iiab_download_url }}/{{ item }}"
dest: /lib/firmware/brcm/ dest: /lib/firmware/cypress/
timeout: "{{ download_timeout }}" timeout: "{{ download_timeout }}"
with_items: with_items:
- brcmfmac43455-sdio.bin_2021-11-30_minimal # 19 -- from https://github.com/RPi-Distro/firmware-nonfree/blob/feeeda21e930c2e182484e8e1269b61cca2a8451/debian/config/brcm80211/cypress/cyfmac43455-sdio-minimal.bin - brcmfmac43455-sdio.bin_2021-11-30_minimal # 19 -- SAME AS RASPIOS & UBUNTU'S https://github.com/RPi-Distro/firmware-nonfree/blob/feeeda21e930c2e182484e8e1269b61cca2a8451/debian/config/brcm80211/cypress/cyfmac43455-sdio-minimal.bin
- brcmfmac43455-sdio.bin_2021-10-05_3rd-trial-minimal # 24 -- from https://github.com/iiab/iiab/issues/2853#issuecomment-934293015 - brcmfmac43455-sdio.bin_2021-10-05_3rd-trial-minimal # 24 -- from https://github.com/iiab/iiab/issues/2853#issuecomment-934293015
- brcmfmac43455-sdio.clm_blob_2021-11-17_rpi # Works w/ both above -- from https://github.com/RPi-Distro/firmware-nonfree/blob/dc406650e840705957f8403efeacf71d2d7543b3/debian/config/brcm80211/cypress/cyfmac43455-sdio.clm_blob - brcmfmac43455-sdio.clm_blob_2021-11-17_rpi # Works w/ both above -- SAME AS RASPIOS & UBUNTU'S https://github.com/RPi-Distro/firmware-nonfree/blob/dc406650e840705957f8403efeacf71d2d7543b3/debian/config/brcm80211/cypress/cyfmac43455-sdio.clm_blob
- brcmfmac43455-sdio.bin_2015-03-01_7.45.18.0_ub19.10.1 # 32 -- from https://github.com/iiab/iiab/issues/823#issuecomment-662285202 - brcmfmac43455-sdio.bin_2015-03-01_7.45.18.0_ub19.10.1 # 32 -- from https://github.com/iiab/iiab/issues/823#issuecomment-662285202
- brcmfmac43455-sdio.clm_blob_2018-02-26_rpi - brcmfmac43455-sdio.clm_blob_2018-02-26_rpi
- brcmfmac43430-sdio.bin_2018-09-11_7.45.98.65 # 30 -- from https://github.com/iiab/iiab/issues/823#issuecomment-662285202 - brcmfmac43430-sdio.bin_2018-09-11_7.45.98.65 # 30 -- from https://github.com/iiab/iiab/issues/823#issuecomment-662285202

View file

@ -4,61 +4,69 @@
# Set 2 symlinks for RPi 3 B+ and 4 (43455) # Set 2 symlinks for RPi 3 B+ and 4 (43455)
# COMPARE: update-alternatives --display cyfmac43455-sdio.bin
# https://github.com/moodlebox/moodlebox/blob/main/roles/accesspoint/tasks/main.yml#L3-L6
- name: Populate rpi3bplus_rpi4_wifi_firmwares dictionary (lookup table for operator-chosen .bin and .clm_blob files in /lib/firmware/brcm) - name: Populate rpi3bplus_rpi4_wifi_firmwares dictionary (lookup table for operator-chosen .bin and .clm_blob files in /lib/firmware/cypress)
set_fact: set_fact:
rpi3bplus_rpi4_wifi_firmwares: # Dictionary keys (left side) are always strings, e.g. "19" rpi3bplus_rpi4_wifi_firmwares: # Dictionary keys (left side) are always strings, e.g. "19"
os: os:
- brcmfmac43455-sdio.bin.orig - cyfmac43455-sdio.bin.orig # 2023-02-25: 7.45.241 from 2021-11-01 on Ubuntu 22.04.2 too (cyfmac43455-sdio-standard.bin)
- brcmfmac43455-sdio.clm_blob.orig - cyfmac43455-sdio.clm_blob.orig # On Ubuntu 22.04.2 too (brcmfmac43455-sdio.clm_blob_2021-11-17_rpi)
ub:
- cyfmac43455-sdio.bin.distrib # 2023-02-25: STALE 7.45.234 from 2021-04-15; on Ubuntu 22.04.2 NOT RasPiOS
- cyfmac43455-sdio.clm_blob.distrib # 4.7K instead of 2.7K w/ above "os"
19: 19:
- brcmfmac43455-sdio.bin_2021-11-30_minimal - brcmfmac43455-sdio.bin_2021-11-30_minimal # On Ubuntu 22.04.2 too (cyfmac43455-sdio-minimal.bin)
- brcmfmac43455-sdio.clm_blob_2021-11-17_rpi - brcmfmac43455-sdio.clm_blob_2021-11-17_rpi # On Ubuntu 22.04.2 too (cyfmac43455-sdio.clm_blob)
24: 24:
- brcmfmac43455-sdio.bin_2021-10-05_3rd-trial-minimal - brcmfmac43455-sdio.bin_2021-10-05_3rd-trial-minimal
- brcmfmac43455-sdio.clm_blob_2021-11-17_rpi - brcmfmac43455-sdio.clm_blob_2021-11-17_rpi # On Ubuntu 22.04.2 too (cyfmac43455-sdio.clm_blob)
32: 32:
- brcmfmac43455-sdio.bin_2015-03-01_7.45.18.0_ub19.10.1 - brcmfmac43455-sdio.bin_2015-03-01_7.45.18.0_ub19.10.1
- brcmfmac43455-sdio.clm_blob_2018-02-26_rpi - brcmfmac43455-sdio.clm_blob_2018-02-26_rpi # 14K instead of 2.7K w/ above "os"
- name: Symlink /lib/firmware/brcm/brcmfmac43455-sdio.bin.iiab -> {{ rpi3bplus_rpi4_wifi_firmwares[rpi3bplus_rpi4_wifi_firmware][0] }} (as rpi3bplus_rpi4_wifi_firmware is "{{ rpi3bplus_rpi4_wifi_firmware }}") - name: Symlink /lib/firmware/cypress/cyfmac43455-sdio.bin.iiab -> {{ rpi3bplus_rpi4_wifi_firmwares[rpi3bplus_rpi4_wifi_firmware][0] }} (as rpi3bplus_rpi4_wifi_firmware is "{{ rpi3bplus_rpi4_wifi_firmware }}")
file: file:
src: "{{ rpi3bplus_rpi4_wifi_firmwares[rpi3bplus_rpi4_wifi_firmware][0] }}" src: "{{ rpi3bplus_rpi4_wifi_firmwares[rpi3bplus_rpi4_wifi_firmware][0] }}"
path: /lib/firmware/brcm/brcmfmac43455-sdio.bin.iiab path: /lib/firmware/cypress/cyfmac43455-sdio.bin.iiab
state: link state: link
force: yes force: yes
- name: Symlink /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob.iiab -> {{ rpi3bplus_rpi4_wifi_firmwares[rpi3bplus_rpi4_wifi_firmware][1] }} (as rpi3bplus_rpi4_wifi_firmware is "{{ rpi3bplus_rpi4_wifi_firmware }}") - name: Symlink /lib/firmware/cypress/cyfmac43455-sdio.clm_blob.iiab -> {{ rpi3bplus_rpi4_wifi_firmwares[rpi3bplus_rpi4_wifi_firmware][1] }} (as rpi3bplus_rpi4_wifi_firmware is "{{ rpi3bplus_rpi4_wifi_firmware }}")
file: file:
src: "{{ rpi3bplus_rpi4_wifi_firmwares[rpi3bplus_rpi4_wifi_firmware][1] }}" src: "{{ rpi3bplus_rpi4_wifi_firmwares[rpi3bplus_rpi4_wifi_firmware][1] }}"
path: /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob.iiab path: /lib/firmware/cypress/cyfmac43455-sdio.clm_blob.iiab
state: link state: link
force: yes force: yes
# Set 2 symlinks for RPi Zero W and 3 (43430) # Set 2 symlinks for RPi Zero W and 3 (43430)
- name: Populate rpizerow_rpi3_wifi_firmwares dictionary (lookup table for operator-chosen .bin and .clm_blob files in /lib/firmware/brcm) - name: Populate rpizerow_rpi3_wifi_firmwares dictionary (lookup table for operator-chosen .bin and .clm_blob files in /lib/firmware/cypress)
set_fact: set_fact:
rpizerow_rpi3_wifi_firmwares: rpizerow_rpi3_wifi_firmwares:
os: os:
- brcmfmac43430-sdio.bin.orig - cyfmac43430-sdio.bin.orig # 2023-02-25: 7.45.98 from 2021-07-19 on Ubuntu 22.04.2 too
- brcmfmac43430-sdio.clm_blob.orig - cyfmac43430-sdio.clm_blob.orig # On Ubuntu 22.04.2 too
ub:
- cyfmac43430-sdio.bin.distrib # 2023-02-25: STALE 7.45.98.118 from 2021-03-30; on Ubuntu 22.04.2 NOT RasPiOS
- cyfmac43430-sdio.clm_blob.distrib # Identical to above 4.7K cyfmac43430-sdio.clm_blob
30: 30:
- brcmfmac43430-sdio.bin_2018-09-11_7.45.98.65 - brcmfmac43430-sdio.bin_2018-09-11_7.45.98.65
- brcmfmac43430-sdio.clm_blob_2018-09-11_7.45.98.65 - brcmfmac43430-sdio.clm_blob_2018-09-11_7.45.98.65 # 14K instead of 4.7K w/ above "os" & "ub"
- name: Symlink /lib/firmware/brcm/brcmfmac43430-sdio.bin.iiab -> {{ rpizerow_rpi3_wifi_firmwares[rpizerow_rpi3_wifi_firmware][0] }} (as rpizerow_rpi3_wifi_firmware is "{{ rpizerow_rpi3_wifi_firmware }}") - name: Symlink /lib/firmware/cypress/cyfmac43430-sdio.bin.iiab -> {{ rpizerow_rpi3_wifi_firmwares[rpizerow_rpi3_wifi_firmware][0] }} (as rpizerow_rpi3_wifi_firmware is "{{ rpizerow_rpi3_wifi_firmware }}")
file: file:
src: "{{ rpizerow_rpi3_wifi_firmwares[rpizerow_rpi3_wifi_firmware][0] }}" src: "{{ rpizerow_rpi3_wifi_firmwares[rpizerow_rpi3_wifi_firmware][0] }}"
path: /lib/firmware/brcm/brcmfmac43430-sdio.bin.iiab path: /lib/firmware/cypress/cyfmac43430-sdio.bin.iiab
state: link state: link
force: yes force: yes
- name: Symlink /lib/firmware/brcm/brcmfmac43430-sdio.clm_blob.iiab -> {{ rpizerow_rpi3_wifi_firmwares[rpizerow_rpi3_wifi_firmware][1] }} (as rpizerow_rpi3_wifi_firmware is "{{ rpizerow_rpi3_wifi_firmware }}") - name: Symlink /lib/firmware/cypress/cyfmac43430-sdio.clm_blob.iiab -> {{ rpizerow_rpi3_wifi_firmwares[rpizerow_rpi3_wifi_firmware][1] }} (as rpizerow_rpi3_wifi_firmware is "{{ rpizerow_rpi3_wifi_firmware }}")
file: file:
src: "{{ rpizerow_rpi3_wifi_firmwares[rpizerow_rpi3_wifi_firmware][1] }}" src: "{{ rpizerow_rpi3_wifi_firmwares[rpizerow_rpi3_wifi_firmware][1] }}"
path: /lib/firmware/brcm/brcmfmac43430-sdio.clm_blob.iiab path: /lib/firmware/cypress/cyfmac43430-sdio.clm_blob.iiab
state: link state: link
force: yes force: yes
@ -73,7 +81,7 @@
- { src: 'iiab-check-firmware.service', dest: '/etc/systemd/system/', mode: '0644' } - { src: 'iiab-check-firmware.service', dest: '/etc/systemd/system/', mode: '0644' }
- { src: 'iiab-firmware-warn.sh', dest: '/etc/profile.d/', mode: '0644' } - { src: 'iiab-firmware-warn.sh', dest: '/etc/profile.d/', mode: '0644' }
- name: Enable & (Re)Start iiab-check-firmware.service (also runs on each boot) - name: Enable & (Re)Start iiab-check-firmware.service (also runs on each boot) -- finalizing 2-or-4 symlink chains e.g. /lib/firmware/cypress/X.{bin|blob} -> /lib/firmware/cypress/X.{bin|blob}.iiab -> CHOSEN-FIRMWARE-FILE-OR-LINK
systemd: systemd:
name: iiab-check-firmware.service name: iiab-check-firmware.service
daemon_reload: yes daemon_reload: yes

View file

@ -3,19 +3,23 @@
# client devices that can access your Raspberry Pi's internal WiFi hotspot. # client devices that can access your Raspberry Pi's internal WiFi hotspot.
# If IIAB's already installed, you should then run 'cd /opt/iiab/iiab' and # If IIAB's already installed, you should then run 'cd /opt/iiab/iiab' and
# then 'sudo ./runrole firmware' (do run iiab-check-firmware for more tips!) # then 'sudo ./runrole firmware' (DO RUN iiab-check-firmware FOR MORE TIPS!)
# BACKGROUND AS OF 2022-01-10: # 2018-2023 Background & Progress:
#
# Raspberry Pi 3 used to support 32 WiFi connections but is now limited to [4-10]
# https://github.com/iiab/iiab/issues/823#issuecomment-662285202 # https://github.com/iiab/iiab/issues/823#issuecomment-662285202
# Opinions about Pi 4B/3B+ WiFi features [practical AP firmware for schools!]
# https://github.com/iiab/iiab/issues/2853#issuecomment-957836892 # https://github.com/iiab/iiab/issues/2853#issuecomment-957836892
# RPi WiFi hotspot firmware reliability fix, incl new/better choices for 3B+ & 4
# https://github.com/iiab/iiab/pull/3103 # https://github.com/iiab/iiab/pull/3103
# https://github.com/RPi-Distro/firmware-nonfree/tree/bullseye/debian/config/brcm80211 (brcm, cypress) # Set WiFi firmware in /lib/firmware/cypress due to RasPiOS & Ubuntu changes
# https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/firmware-brcm80211_20190114-1+rpt11_all.deb from 2021-01-25 # https://github.com/iiab/iiab/pull/3482
# https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/firmware-brcm80211_20210315-3+rpt4_all.deb from 2021-12-06
# RISK: What USB 3.0 stick/drive patterns degrade a Raspberry Pi's 2.4GHz WiFi? # RISK: What USB 3.0 stick/drive patterns degrade a Raspberry Pi's 2.4GHz WiFi?
# https://github.com/iiab/iiab/issues/2638 # https://github.com/iiab/iiab/issues/2638
# ► SEE "MONITOR FIRMWARE UPDATES in 3 places especially" in tasks/download.yml ◄
- name: Install firmware (for RPi internal WiFi) - name: Install firmware (for RPi internal WiFi)
include_tasks: install.yml include_tasks: install.yml
when: firmware_installed is undefined when: firmware_installed is undefined

View file

@ -1,11 +1,25 @@
#!/bin/bash #!/bin/bash
# 2021-08-18: bash scripts using default_vars.yml &/or local_vars.yml # The 1st time /usr/bin/iiab-check-firmware runs (at the end of
# firmware/tasks/install.yml) 2-4 lynchpin top links are put in place,
# finalizing symlink chains like:
#
# /lib/firmware/cypress/X.{bin|blob} ->
# /lib/firmware/cypress/X.{bin|blob}.iiab ->
# CHOSEN-FIRMWARE-FILE-OR-LINK
#
# Also backing up top-of-chain originals (file or link!) by moving these to:
#
# /lib/firmware/cypress/<ORIGINAL FILENAME>.YYYY-MM-DD-HH:MM:SS
#
# NOTE these are "doubly timestamped" to preserve BOTH last-modif & moving date.
# 2023-02-25: bash scripts using default_vars.yml &/or local_vars.yml
# https://github.com/iiab/iiab-factory/blob/master/iiab # https://github.com/iiab/iiab-factory/blob/master/iiab
# https://github.com/iiab/iiab/blob/master/roles/firmware/templates/iiab-check-firmware#L10-14 # https://github.com/iiab/iiab/blob/master/roles/firmware/templates/iiab-check-firmware#L10-14
# https://github.com/iiab/iiab/blob/master/roles/network/templates/gateway/iiab-gen-iptables#L48-L52 # https://github.com/iiab/iiab/blob/master/roles/network/templates/gateway/iiab-gen-iptables#L48-L52
# https://github.com/iiab/maps/blob/master/osm-source/pages/viewer/scripts/iiab-install-map-region#L25-L34 # https://github.com/iiab/maps/blob/master/osm-source/pages/viewer/scripts/iiab-install-map-region#L23-L39
# https://github.com/iiab/iiab/blob/master/roles/openvpn/templates/iiab-support READS AND WRITES, INCL NON-BOOLEAN # https://github.com/iiab/iiab/blob/master/roles/0-DEPRECATED-ROLES/openvpn/templates/iiab-support READS AND WRITES, INCL NON-BOOLEAN
iiab_var_value() { iiab_var_value() {
v1=$(grep "^$1:\s" /opt/iiab/iiab/vars/default_vars.yml | tail -1 | sed "s/^$1:\s\+//; s/#.*//; s/\s*$//; s/^\(['\"]\)\(.*\)\1$/\2/") v1=$(grep "^$1:\s" /opt/iiab/iiab/vars/default_vars.yml | tail -1 | sed "s/^$1:\s\+//; s/#.*//; s/\s*$//; s/^\(['\"]\)\(.*\)\1$/\2/")
@ -14,29 +28,29 @@ iiab_var_value() {
} }
link_fw() { link_fw() {
if [[ $(readlink /lib/firmware/brcm/$1) != $1.iiab ]] ; then if [[ $(readlink /lib/firmware/cypress/$1) != $1.iiab ]] ; then
echo echo
mv /lib/firmware/brcm/$1 /lib/firmware/brcm/$1.$(date +%F-%T) mv /lib/firmware/cypress/$1 /lib/firmware/cypress/$1.$(date +%F-%T)
ln -s $1.iiab /lib/firmware/brcm/$1 ln -s $1.iiab /lib/firmware/cypress/$1
echo -e "\e[1mSymlinked /lib/firmware/brcm/$1 -> $1.iiab\e[0m" echo -e "\e[1mSymlinked /lib/firmware/cypress/$1 -> $1.iiab\e[0m"
touch /tmp/.fw_modified touch /tmp/.fw_modified
fi fi
} }
if [[ $(iiab_var_value rpi3bplus_rpi4_wifi_firmware) != "os" ]] ; then if [[ $(iiab_var_value rpi3bplus_rpi4_wifi_firmware) != "os" ]] ; then
link_fw brcmfmac43455-sdio.bin link_fw cyfmac43455-sdio.bin
link_fw brcmfmac43455-sdio.clm_blob link_fw cyfmac43455-sdio.clm_blob
fi fi
if [[ $(iiab_var_value rpizerow_rpi3_wifi_firmware) != "os" ]] ; then if [[ $(iiab_var_value rpizerow_rpi3_wifi_firmware) != "os" ]] ; then
link_fw brcmfmac43430-sdio.bin link_fw cyfmac43430-sdio.bin
link_fw brcmfmac43430-sdio.clm_blob link_fw cyfmac43430-sdio.clm_blob
fi fi
if [ -f /tmp/.fw_modified ]; then if [ -f /tmp/.fw_modified ]; then
bash /etc/profile.d/iiab-firmware-warn.sh bash /etc/profile.d/iiab-firmware-warn.sh
else else
echo -e "\n\e[1mWiFi Firmware links in /lib/firmware/brcm appear \e[92mCORRECT\e[0m\e[1m, per iiab/iiab#2853.\e[0m" echo -e "\n\e[1mWiFi Firmware links in /lib/firmware/cypress appear \e[92mCORRECT\e[0m\e[1m, per iiab/iiab#3482\e[0m"
echo echo
echo -e "\e[100;1m(No reboot appears necessary!)\e[0m" echo -e "\e[100;1m(No reboot appears necessary!)\e[0m"
echo echo
@ -46,7 +60,7 @@ else
echo -e " cd /opt/iiab/iiab" echo -e " cd /opt/iiab/iiab"
echo -e " sudo iiab-hotspot-off # NO LONGER NEC? eg to restore 'wifi_up_down: True'" echo -e " sudo iiab-hotspot-off # NO LONGER NEC? eg to restore 'wifi_up_down: True'"
echo -e " sudo ./runrole --reinstall firmware" echo -e " sudo ./runrole --reinstall firmware"
echo -e " sudo ./iiab-network # SOMETIMES NECESSARY" echo -e " sudo iiab-network # SOMETIMES NECESSARY"
echo -e " sudo iiab-hotspot-on # NO LONGER NEC? eg to restore 'wifi_up_down: True'" echo -e " sudo iiab-hotspot-on # NO LONGER NEC? eg to restore 'wifi_up_down: True'"
echo -e " sudo reboot\n" echo -e " sudo reboot\n"
#echo #echo

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if [ -f /tmp/.fw_modified ]; then if [ -f /tmp/.fw_modified ]; then
echo -e "\n\e[41;1mWiFi Firmware link(s) modified, per iiab/iiab#2853: PLEASE REBOOT!\e[0m" echo -e "\n\e[41;1mWiFi Firmware link(s) modified, per iiab/iiab#3482: PLEASE REBOOT!\e[0m"
echo echo
echo -e "If you want this warning to stop, reboot to remove /tmp/.fw_modified\n" echo -e "If you want this warning to stop, reboot to remove /tmp/.fw_modified\n"
fi fi

View file

@ -9,7 +9,7 @@
# Info needed to install Gitea: # Info needed to install Gitea:
gitea_version: 1.18 # 2022-01-30: Grabs latest from this MAJOR/MINOR release branch. Rather than exhaustively hard-coding point releases (e.g. 1.14.5) every few weeks. gitea_version: "1.22" # 2022-01-30: Grabs latest from this MAJOR/MINOR release branch. Rather than exhaustively hard-coding point releases (e.g. 1.14.5) every few weeks. Quotes nec if trailing zero.
iset_suffixes: iset_suffixes:
i386: 386 i386: 386
x86_64: amd64 x86_64: amd64
@ -17,9 +17,9 @@ iset_suffixes:
armv6l: arm-6 armv6l: arm-6
armv7l: arm-6 # "arm-7" used to work, but no longer since 2019-04-20's Gitea 1.8.0: https://github.com/iiab/iiab/issues/1673 https://github.com/iiab/iiab/pull/1713 -- 2019-07-31: ARM7 support will return at some point, according to: https://github.com/go-gitea/gitea/pull/7037#issuecomment-516735216 (what about ARM8 support for RPi 4?) armv7l: arm-6 # "arm-7" used to work, but no longer since 2019-04-20's Gitea 1.8.0: https://github.com/iiab/iiab/issues/1673 https://github.com/iiab/iiab/pull/1713 -- 2019-07-31: ARM7 support will return at some point, according to: https://github.com/go-gitea/gitea/pull/7037#issuecomment-516735216 (what about ARM8 support for RPi 4?)
gitea_iset_suffix: "{{ iset_suffixes[ansible_architecture] | default('unknown') }}" gitea_iset_suffix: "{{ iset_suffixes[ansible_machine] | default('unknown') }}" # A bit safer than ansible_architecture (see kiwix/defaults/main.yml)
gitea_download_url: "https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_iset_suffix }}" gitea_download_url: "https://dl.gitea.com/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_iset_suffix }}"
gitea_integrity_url: "{{ gitea_download_url }}.asc" gitea_integrity_url: "{{ gitea_download_url }}.asc"
gitea_root_directory: "{{ content_base }}/gitea" # /library/gitea gitea_root_directory: "{{ content_base }}/gitea" # /library/gitea

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
# 1. Prepare to install Gitea: create user and directory structure # 1. Prepare to install Gitea: create user and directory structure
- name: Shut down existing Gitea instance (if we're reinstalling) - name: Shut down existing Gitea instance (if we're reinstalling)
@ -43,10 +48,10 @@
msg: "Could not find a binary for the CPU architecture \"{{ ansible_architecture }}\"" msg: "Could not find a binary for the CPU architecture \"{{ ansible_architecture }}\""
when: gitea_iset_suffix == "unknown" when: gitea_iset_suffix == "unknown"
- name: Download Gitea binary {{ gitea_download_url }} to {{ gitea_install_path }} (0775, ~108 MB, SLOW DOWNLOAD CAN TAKE ~15 MIN) - name: Download Gitea binary {{ gitea_download_url }} to {{ gitea_install_path }} (0775, ~134 MB, SLOW DOWNLOAD CAN TAKE ~15 MIN)
get_url: get_url:
url: "{{ gitea_download_url }}" url: "{{ gitea_download_url }}"
dest: "{{ gitea_install_path }}" # e.g. /library/gitea/bin/gitea-1.16 dest: "{{ gitea_install_path }}" # e.g. /library/gitea/bin/gitea-1.21
mode: 0775 mode: 0775
timeout: "{{ download_timeout }}" timeout: "{{ download_timeout }}"
@ -56,9 +61,9 @@
dest: "{{ gitea_checksum_path }}" dest: "{{ gitea_checksum_path }}"
timeout: "{{ download_timeout }}" timeout: "{{ download_timeout }}"
- name: Verify Gitea binary with GPG signature - name: Verify Gitea binary with GPG signature ("BAD signature" FALSE ALARMS continue as of 2023-07-16, despite their claims at https://docs.gitea.com/installation/install-from-binary#verify-gpg-signature)
shell: | shell: |
gpg --keyserver pgp.mit.edu --recv {{ gitea_gpg_key }} gpg --keyserver keys.openpgp.org --recv {{ gitea_gpg_key }}
gpg --verify {{ gitea_checksum_path }} {{ gitea_install_path }} gpg --verify {{ gitea_checksum_path }} {{ gitea_install_path }}
ignore_errors: yes ignore_errors: yes
@ -105,6 +110,17 @@
# 5. RECORD Gitea AS INSTALLED # 5. RECORD Gitea AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'gitea_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: gitea
option: gitea_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'gitea_installed: True'" - name: "Set 'gitea_installed: True'"
set_fact: set_fact:
gitea_installed: True gitea_installed: True

View file

@ -27,7 +27,7 @@
- include_tasks: enable-or-disable.yml - include_tasks: enable-or-disable.yml
- name: Add 'gitea' to list of services at {{ iiab_ini_file }} - name: Add 'gitea' variable values to {{ iiab_ini_file }}
ini_file: ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: gitea section: gitea

View file

@ -2,7 +2,8 @@
; Copy required sections to your own app.ini (default is custom/conf/app.ini) ; Copy required sections to your own app.ini (default is custom/conf/app.ini)
; and modify as needed. ; and modify as needed.
; see https://docs.gitea.io/en-us/config-cheat-sheet/ for additional documentation. ; see https://docs.gitea.com/administration/config-cheat-sheet for additional documentation.
; https://docs.gitea.com/next/administration/config-cheat-sheet
; App name that shows in every page title ; App name that shows in every page title
APP_NAME = {{ gitea_display_name }} APP_NAME = {{ gitea_display_name }}
@ -23,9 +24,11 @@ DEFAULT_PRIVATE = last
; Global limit of repositories per user, applied at creation time. -1 means no limit ; Global limit of repositories per user, applied at creation time. -1 means no limit
MAX_CREATION_LIMIT = -1 MAX_CREATION_LIMIT = -1
; Mirror sync queue length, increase if mirror syncing starts hanging ; Mirror sync queue length, increase if mirror syncing starts hanging
MIRROR_QUEUE_LENGTH = 1000 ; 2023-07-16 ERROR: MIRROR_QUEUE_LENGTH = 1000
; `[repository].MIRROR_QUEUE_LENGTH`. Use new options in `[queue.mirror]`
; Patch test queue length, increase if pull request patch testing starts hanging ; Patch test queue length, increase if pull request patch testing starts hanging
PULL_REQUEST_QUEUE_LENGTH = 1000 ; 2023-07-16 ERROR: PULL_REQUEST_QUEUE_LENGTH = 1000
; `[repository].PULL_REQUEST_QUEUE_LENGTH`. Use new options in `[queue.pr_patch_checker]`
; Preferred Licenses to place at the top of the List ; Preferred Licenses to place at the top of the List
; The name here must match the filename in conf/license or custom/conf/license ; The name here must match the filename in conf/license or custom/conf/license
PREFERRED_LICENSES = Apache License 2.0,MIT License PREFERRED_LICENSES = Apache License 2.0,MIT License
@ -201,13 +204,22 @@ PPROF_DATA_PATH = data/tmp/pprof
LANDING_PAGE = home LANDING_PAGE = home
; Enables git-lfs support. true or false, default is false. ; Enables git-lfs support. true or false, default is false.
LFS_START_SERVER = false LFS_START_SERVER = false
; Where your lfs files reside, default is data/lfs.
LFS_CONTENT_PATH = {{ gitea_lfs_root }}
; LFS authentication secret, change this yourself ; LFS authentication secret, change this yourself
LFS_JWT_SECRET = LFS_JWT_SECRET =
; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail. ; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail.
LFS_HTTP_AUTH_EXPIRY = 20m LFS_HTTP_AUTH_EXPIRY = 20m
; lfs [Large File Storage] storage will override storage
;
[lfs]
;STORAGE_TYPE = local
;
; Where your lfs files reside, default is data/lfs.
PATH = {{ gitea_lfs_root }}
;
; override the minio base path if storage type is minio
;MINIO_BASE_PATH = lfs/
; Define allowed algorithms and their minimum key length (use -1 to disable a type) ; Define allowed algorithms and their minimum key length (use -1 to disable a type)
[ssh.minimum_key_sizes] [ssh.minimum_key_sizes]
ED25519 = 256 ED25519 = 256
@ -240,7 +252,8 @@ ISSUE_INDEXER_PATH = indexers/issues.bleve
; repo indexer by default disabled, since it uses a lot of disk space ; repo indexer by default disabled, since it uses a lot of disk space
REPO_INDEXER_ENABLED = false REPO_INDEXER_ENABLED = false
REPO_INDEXER_PATH = indexers/repos.bleve REPO_INDEXER_PATH = indexers/repos.bleve
UPDATE_BUFFER_LEN = 20 ; 2023-07-16 ERROR: UPDATE_BUFFER_LEN = 20
; `[indexer].UPDATE_BUFFER_LEN`. Use new options in `[queue.issue_indexer]`
MAX_FILE_SIZE = 1048576 MAX_FILE_SIZE = 1048576
[admin] [admin]
@ -360,7 +373,8 @@ PAGING_NUM = 10
[mailer] [mailer]
ENABLED = false ENABLED = false
; Buffer length of channel, keep it as it is if you don't know what it is. ; Buffer length of channel, keep it as it is if you don't know what it is.
SEND_BUFFER_LEN = 100 ; 2023-07-16 ERROR: SEND_BUFFER_LEN = 100
; `[mailer].SEND_BUFFER_LEN`. Use new options in `[queue.mailer]`
; Name displayed in mail title ; Name displayed in mail title
SUBJECT = %(APP_NAME)s SUBJECT = %(APP_NAME)s
; Mail server ; Mail server

View file

@ -36,7 +36,7 @@ Security
#. ``iiab-admin`` (specified by ``admin_console_group`` in `/opt/iiab/iiab/vars/default_vars.yml <../../vars/default_vars.yml>`_ and `/opt/iiab/iiab-admin-console/vars/default_vars.yml <https://github.com/iiab/iiab-admin-console/blob/master/vars/default_vars.yml>`_) #. ``iiab-admin`` (specified by ``admin_console_group`` in `/opt/iiab/iiab/vars/default_vars.yml <../../vars/default_vars.yml>`_ and `/opt/iiab/iiab-admin-console/vars/default_vars.yml <https://github.com/iiab/iiab-admin-console/blob/master/vars/default_vars.yml>`_)
#. ``sudo`` #. ``sudo``
* Please read much more about what escalated (root) actions are authorized when you log into IIAB's Admin Console, and how this works: https://github.com/iiab/iiab-admin-console/blob/master/Authentication.md * Please read much more about what escalated (root) actions are authorized when you log into IIAB's Admin Console, and how this works: https://github.com/iiab/iiab-admin-console/blob/master/Authentication.md
* If your IIAB includes OpenVPN, ``/root/.ssh/authorized_keys`` should be installed by `roles/openvpn/tasks/install.yml <../openvpn/tasks/install.yml>`_ to facilitate remote community support. Feel free to remove this as mentioned here: https://wiki.iiab.io/go/Security * If your IIAB includes Tailscale (VPN), ``/root/.ssh/authorized_keys`` should be installed by `roles/tailscale/tasks/install.yml <../tailscale/tasks/install.yml>`_ to facilitate remote community support. Feel free to remove this as mentioned here: https://wiki.iiab.io/go/Security
* Auto-checking for the default/published password (as specified by ``iiab_admin_published_pwd`` in `/opt/iiab/iiab/vars/default_vars.yml <../../vars/default_vars.yml>`_) is implemented in `/etc/profile.d <templates/sshpwd-profile-iiab.sh>`_ (and `/etc/xdg/lxsession/LXDE-pi <templates/sshpwd-lxde-iiab.sh>`_ when it exists, i.e. on Raspberry Pi OS with desktop). * Auto-checking for the default/published password (as specified by ``iiab_admin_published_pwd`` in `/opt/iiab/iiab/vars/default_vars.yml <../../vars/default_vars.yml>`_) is implemented in `/etc/profile.d <templates/sshpwd-profile-iiab.sh>`_ (and `/etc/xdg/lxsession/LXDE-pi <templates/sshpwd-lxde-iiab.sh>`_ when it exists, i.e. on Raspberry Pi OS with desktop).
Example Example
@ -56,16 +56,16 @@ Historical Notes
Remote Support Tools Remote Support Tools
-------------------- --------------------
The `iiab-diagnostics <../../scripts/iiab-diagnostics.README.md>`_ and `OpenVPN <https://en.wikipedia.org/wiki/OpenVPN>`_ options mentioned above can greatly help you empower your community, typically during the implementation phase of your project, even if Linux is new to you. The `iiab-diagnostics <../../scripts/iiab-diagnostics.README.md>`_ and `Tailscale (VPN) <https://en.wikipedia.org/wiki/Tailscale>`_ options mentioned above can greatly help you empower your community, typically during the implementation phase of your project, even if Linux is new to you.
Similarly, `access.yml <tasks/access.yml>`_ adds a couple text mode tools — extremely helpful over expensive / low-bandwidth connections: Similarly, `tasks/main.yml <tasks/main.yml>`_ adds a couple text mode tools — extremely helpful over expensive / low-bandwidth connections:
* `lynx <https://en.wikipedia.org/wiki/Lynx_(web_browser)>`_ * `lynx <https://en.wikipedia.org/wiki/Lynx_(web_browser)>`_
* `screen <https://linuxize.com/post/how-to-use-linux-screen/>`_ * `screen <https://linuxize.com/post/how-to-use-linux-screen/>`_
*More great tools to help you jumpstart community action at a distance:* *More great tools to help you jumpstart community action at a distance:*
* http://FAQ.IIAB.IO > "How can I remotely manage my Internet-in-a-Box?" * `FAQ.IIAB.IO <https://wiki.iiab.io/go/FAQ>`_ > "How can I remotely manage my Internet-in-a-Box?"
Admin Console Admin Console
------------- -------------

View file

@ -2,6 +2,11 @@
# https://github.com/iiab/iiab/blob/master/roles/iiab-admin/README.rst # https://github.com/iiab/iiab/blob/master/roles/iiab-admin/README.rst
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: "Install text-mode packages, useful during remote access: lynx, screen" - name: "Install text-mode packages, useful during remote access: lynx, screen"
package: package:
name: name:
@ -35,6 +40,17 @@
# RECORD iiab-admin AS INSTALLED # RECORD iiab-admin AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'iiab_admin_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: iiab-admin
option: iiab_admin_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'iiab_admin_installed: True'" - name: "Set 'iiab_admin_installed: True'"
set_fact: set_fact:
iiab_admin_installed: True iiab_admin_installed: True

View file

@ -2,34 +2,35 @@
# AND roles/network/tasks/netwarn.yml FOR iiab-network # AND roles/network/tasks/netwarn.yml FOR iiab-network
- name: Install /etc/profile.d/sshpwd-profile-iiab.sh from template, to issue warnings (during shell/ssh logins) if iiab-admin password is the default - name: Install /etc/profile.d/iiab-pwdwarn-profile.sh from template, to issue warnings (during shell/ssh logins) if iiab-admin password is the default
template: template:
src: sshpwd-profile-iiab.sh.j2 src: iiab-pwdwarn-profile.sh.j2
dest: /etc/profile.d/sshpwd-profile-iiab.sh dest: /etc/profile.d/iiab-pwdwarn-profile.sh
mode: '0644' mode: '0644'
- name: Is /etc/xdg/lxsession/LXDE-pi a directory? - name: Does directory /home/{{ iiab_admin_user }}/.config/labwc/ exist?
stat: stat:
path: /etc/xdg/lxsession/LXDE-pi path: /home/{{ iiab_admin_user }}/.config/labwc/
register: lx register: labwc_dir
- name: "If so, install from template: /etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh" - name: "If so, install from template: /usr/local/sbin/iiab-pwdwarn-labwc"
template: template:
src: sshpwd-lxde-iiab.sh.j2 src: iiab-pwdwarn-labwc.j2
dest: /etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh dest: /usr/local/sbin/iiab-pwdwarn-labwc
mode: '0755' mode: '0755'
when: lx.stat.isdir is defined and lx.stat.isdir # and is_raspbian when: labwc_dir.stat.exists and labwc_dir.stat.isdir
# 2019-03-07: This popup (/etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh) does # 2019-03-07: This pop-up (/etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh) did
# not actually appear when triggered by /etc/xdg/autostart/pprompt-iiab.desktop # not actually appear when triggered by /etc/xdg/autostart/pprompt-iiab.desktop
# (or pprompt.desktop as Raspbian has working since 2018-11-13!) Too bad as it # (or pprompt.desktop as Raspbian has working since 2018-11-13!) Too bad as it
# would be really nice to standardize this popup across Ubermix & all distros.. # would be really nice to standardize pop-ups across Ubermix & all distros...
# Is this a permissions/security issue presumably? Official autostart spec is: # Is this a permissions/security issue presumably? Official autostart spec is:
# https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html # https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html
# Raspbian's 2016-2018 evolution here: https://github.com/iiab/iiab/issues/1537 # Raspbian's 2016-2018 evolution here: https://github.com/iiab/iiab/issues/1537
- name: ...and put a line in /etc/xdg/lxsession/LXDE-pi/autostart to trigger popups - name: ...and put a line in /home/{{ iiab_admin_user }}/.config/labwc/autostart to trigger iiab-pwdwarn-labwc (& pop-up as nec)
lineinfile: lineinfile:
path: /etc/xdg/lxsession/LXDE-pi/autostart path: /home/{{ iiab_admin_user }}/.config/labwc/autostart # iiab-admin
line: "@/etc/xdg/lxsession/LXDE-pi/sshpwd-lxde-iiab.sh" create: yes
when: lx.stat.isdir is defined and lx.stat.isdir # and is_raspbian line: '/usr/local/sbin/iiab-pwdwarn-labwc &'
when: labwc_dir.stat.exists and labwc_dir.stat.isdir

View file

@ -1,6 +1,6 @@
- name: 'Install package: sudo' - name: 'Install package: sudo'
package: package:
name: sudo # (1) Should be installed prior to installing IIAB, (2) Can also be installed by roles/1-prep's roles/openvpn/tasks/install.yml, (3) Is definitely installed by 1-prep here, (4) Used to be installed by roles/2-common/tasks/packages.yml (but that's too late!) name: sudo # (1) Should be installed prior to installing IIAB, (2) Can be installed by 1-prep's roles/tailscale/tasks/install.yml, (3) Can be installed by 1-prep's roles/iiab-admin/tasks/sudo-prereqs.yml here, (4) Used to be installed by roles/2-common/tasks/packages.yml (but that's too late!)
- name: Temporarily make file /etc/sudoers editable (0640) - name: Temporarily make file /etc/sudoers editable (0640)
file: file:

View file

@ -9,10 +9,10 @@
include_role: include_role:
name: nodejs name: nodejs
- name: Assert that 10.x <= nodejs_version ({{ nodejs_version }}) <= 18.x - name: Assert that 10.x <= nodejs_version ({{ nodejs_version }}) <= 22.x
assert: assert:
that: nodejs_version is version('10.x', '>=') and nodejs_version is version('18.x', '<=') that: nodejs_version is version('10.x', '>=') and nodejs_version is version('22.x', '<=')
fail_msg: "Internet Archive install cannot proceed, as it currently requires Node.js 10.x - 18.x, and your nodejs_version is set to {{ nodejs_version }}. Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml and possibly also /etc/iiab/local_vars.yml" fail_msg: "Internet Archive install cannot proceed, as it currently requires Node.js 10.x - 22.x, and your nodejs_version is set to {{ nodejs_version }}. Please check the value of nodejs_version in /opt/iiab/iiab/vars/default_vars.yml and possibly also /etc/iiab/local_vars.yml"
quiet: yes quiet: yes
- name: "Set 'yarn_install: True' and 'yarn_enabled: True'" - name: "Set 'yarn_install: True' and 'yarn_enabled: True'"
@ -30,6 +30,11 @@
state: present state: present
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
# 2. CREATE 2 DIRS, WIPE /opt/iiab/internetarchive/node_modules & RUN YARN # 2. CREATE 2 DIRS, WIPE /opt/iiab/internetarchive/node_modules & RUN YARN
- name: mkdir {{ internetarchive_dir }} - name: mkdir {{ internetarchive_dir }}
@ -64,6 +69,17 @@
# 4. RECORD Internet Archive AS INSTALLED # 4. RECORD Internet Archive AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'internetarchive_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: internetarchive
option: internetarchive_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'internetarchive_installed: True'" - name: "Set 'internetarchive_installed: True'"
set_fact: set_fact:
internetarchive_installed: True internetarchive_installed: True

View file

@ -1,5 +1,7 @@
## JupyterHub programming environment with student Notebooks ## JupyterHub programming environment with student Notebooks
### CAUTION: Internet-in-a-Box (IIAB) does not support JupyterHub on 32-bit OS's, where installation will likely fail ([#3639](https://github.com/iiab/iiab/issues/3639)).
#### Secondary schools may want to consider JupyterHub to integrate coding with dynamic interactive graphing — A New Way to Think About Programming — allowing students to integrate science experiment results and program output within their own blog-like "Jupyter Notebooks." #### Secondary schools may want to consider JupyterHub to integrate coding with dynamic interactive graphing — A New Way to Think About Programming — allowing students to integrate science experiment results and program output within their own blog-like "Jupyter Notebooks."
* Jupyter Notebooks are widely used in the scientific community: * Jupyter Notebooks are widely used in the scientific community:
@ -9,10 +11,11 @@
* [JupyterHub changelog](https://jupyterhub.readthedocs.io/en/stable/changelog.html#changelog) * [JupyterHub changelog](https://jupyterhub.readthedocs.io/en/stable/changelog.html#changelog)
* Students create their own accounts on first use — e.g. at http://box.lan/jupyterhub — just as if they're logging in regularly (unfortunately the login screen doesn't make that clear, but the teacher _does not_ need to be involved!) * Students create their own accounts on first use — e.g. at http://box.lan/jupyterhub — just as if they're logging in regularly (unfortunately the login screen doesn't make that clear, but the teacher _does not_ need to be involved!)
* A student can then sign in with their username and password, to gain access to their files (Jupyter Notebooks). * A student can then sign in with their username and password, to gain access to their files (Jupyter Notebooks).
* The teacher should set and protect JupyterHub's overall `Admin` password, just in case. As with student accounts, the login screen doesn't make that clear — so just log in with username `Admin` — using any password that you want to become permanent. * The teacher should set and protect JupyterHub's overall `Admin` password, just in case. As with student accounts, the login screen unfortunately doesn't make that clear — so just log in with username `Admin` — using any password that you want to become permanent.
* Individual student folders are created in `/var/lib/private/` on the Internet-in-a-Box (IIAB) server: * Individual student folders are created in `/var/lib/private/` on your Internet-in-a-Box (IIAB) server:
* A student will only be able to see their own work — they do not have privileges outside of their own folder. * A student will only be able to see their own work — they do not have privileges outside of their own folder.
* Students may upload Jupyter Notebooks to the IIAB server, and download the current state of their work via a normal browser. * Students may upload Jupyter Notebooks to the IIAB server, and download the current state of their work via a normal browser.
* Linux administrators can read more about JupyterHub's [Local Users](https://github.com/jupyterhub/systemdspawner#local-users) and [c.SystemdSpawner.dynamic_users = True](https://github.com/jupyterhub/systemdspawner#dynamic_users)
### Settings ### Settings
@ -26,10 +29,11 @@ In some rare circumstances, it may be necessary to restart JupyterHub's systemd
sudo systemctl restart jupyterhub sudo systemctl restart jupyterhub
``` ```
FYI `/opt/iiab/jupyterhub` is a Python 3 virtual environment, that can be activated with the usual formula: FYI `/opt/iiab/jupyterhub` is a Python 3 virtual environment, that can be activated (and deactivated) with the usual:
``` ```
source /opt/iiab/jupyterhub/bin/activate source /opt/iiab/jupyterhub/bin/activate
(jupyterhub) root@box:~# deactivate
``` ```
Passwords are hashed using 4096 rounds of the latest Blowfish (bcrypt's $2b$ algorithm) and stored in: Passwords are hashed using 4096 rounds of the latest Blowfish (bcrypt's $2b$ algorithm) and stored in:
@ -42,19 +46,19 @@ Passwords are hashed using 4096 rounds of the latest Blowfish (bcrypt's $2b$ alg
Users can change their password by logging in, and then visiting URL: http://box.lan/jupyterhub/auth/change-password Users can change their password by logging in, and then visiting URL: http://box.lan/jupyterhub/auth/change-password
NOTE: This is the only way to change the password for user 'Admin', because Control Panel > Admin (below) does not permit deletion of this account. NOTE: This is the only way to change the password for user `Admin`, because **File > Hub Control Panel > Admin** (below) does not permit deletion of this account.
### Control Panel > Admin page, to manage other accounts ### File > Hub Control Panel > Admin, to manage accounts
The `Admin` user (and any users given `Admin` privilege) can reset user passwords by deleting the user from JupyterHub's **Admin** page (below). This logs the user out, but does not remove any of their data or home directories. The user can then set a new password in the usual way — simply by logging in. Example: The `Admin` user (and any users given `Admin` privilege) can reset user passwords by deleting the user from JupyterHub's **Admin** page (below). This logs the user out, but does not remove any of their data or home directories. The user can then set a new password in the usual way — simply by logging in. Example:
1. As a user with `Admin` privilege, click **Control Panel** in the top right of your JupyterHub: 1. As a user with `Admin` privilege, click **File > Hub Control Panel** in your JupyterHub:
![Control panel button in notebook, top right](control-panel-button1.png) ![image](https://user-images.githubusercontent.com/2458907/217602766-ab6a9d3c-9f92-496e-a0e8-6c18a084e960.png)
2. In the Control Panel, open the **Admin** link in the top left: 2. At the top of the Control Panel, click **Admin**:
![Admin button in control panel, top left](admin-access-button1.png) ![image](https://user-images.githubusercontent.com/2458907/217602473-f4f9fd40-b4c1-45e1-88c5-54c6d4b604ff.png)
This opens up the JupyterHub Admin page, where you can add / delete users, start / stop peoples servers and see who is online. This opens up the JupyterHub Admin page, where you can add / delete users, start / stop peoples servers and see who is online.
@ -70,6 +74,20 @@ The `Admin` user (and any users given `Admin` privilege) can reset user password
_WARNING: If on login users see "500 : Internal Server Error", you may need to remove ALL files of the form_ `/run/jupyter-johndoe-singleuser` _WARNING: If on login users see "500 : Internal Server Error", you may need to remove ALL files of the form_ `/run/jupyter-johndoe-singleuser`
### Logging
To see JupyterHub's (typically very long!) log, run:
```
journalctl -u jupyterhub
```
Sometimes other logs might also be available, e.g.:
```
journalctl -u jupyter-admin-singleuser
```
### PAWS/Jupyter Notebooks for Python Beginners ### PAWS/Jupyter Notebooks for Python Beginners
While PAWS is a little bit off topic, if you have an interest in Wikipedia, please do see this 23m 42s video ["Intro to PAWS/Jupyter notebooks for Python beginners"](https://www.youtube.com/watch?v=AUZkioRI-aA&list=PLeoTcBlDanyNQXBqI1rVXUqUTSSiuSIXN&index=8) by Chico Venancio, from 2021-06-01. While PAWS is a little bit off topic, if you have an interest in Wikipedia, please do see this 23m 42s video ["Intro to PAWS/Jupyter notebooks for Python beginners"](https://www.youtube.com/watch?v=AUZkioRI-aA&list=PLeoTcBlDanyNQXBqI1rVXUqUTSSiuSIXN&index=8) by Chico Venancio, from 2021-06-01.

View file

@ -13,10 +13,20 @@
when: nodejs_installed is undefined when: nodejs_installed is undefined
- name: "Install package: python3-venv" - name: Record (initial) disk space used
package: shell: df -B1 --output=used / | tail -1
name: python3-venv register: df1
state: present
# 2025-02-16
#- name: "Install package: python3-psutil"
# package:
# name: python3-psutil
# state: present
- name: Remove previous virtual environment {{ jupyterhub_venv }}
file:
path: "{{ jupyterhub_venv }}"
state: absent
- name: Make 3 directories to hold JupyterHub config - name: Make 3 directories to hold JupyterHub config
file: file:
@ -33,17 +43,18 @@
global: yes global: yes
state: latest state: latest
- name: "pip install 3 packages into virtual environment: {{ jupyterhub_venv }} (~271 MB total, after 2 Ansible calls)" - name: "pip install 3 packages into virtual environment: {{ jupyterhub_venv }} (~316 MB total, after 2 Ansible calls)"
pip: pip:
name: name:
- pip - pip
- wheel - wheel
- jupyterhub - jupyterhub
virtualenv: "{{ jupyterhub_venv }}" # /opt/iiab/jupyterhub virtualenv: "{{ jupyterhub_venv }}" # /opt/iiab/jupyterhub
virtualenv_site_packages: no #virtualenv_site_packages: no
virtualenv_command: python3 -m venv "{{ jupyterhub_venv }}" # 2021-07-29: This works on RasPiOS 10, Debian 11, Ubuntu 20.04 and Mint 20 -- however if you absolutely must use the older Debian 10 -- you can work around errors "can't find Rust compiler" and "This package requires Rust >=1.41.0" if you (1) revert this line to 'virtualenv_command: virtualenv' AND (2) uncomment the line just below virtualenv_command: python3 -m venv "{{ jupyterhub_venv }}" # 2025-02-16
#virtualenv_command: python3 -m venv --system-site-packages "{{ jupyterhub_venv }}" # 2021-07-29: This works on RasPiOS 10, Debian 11, Ubuntu 20.04 and Mint 20 -- however if you absolutely must use the older Debian 10 -- you can work around errors "can't find Rust compiler" and "This package requires Rust >=1.41.0" if you (1) revert this line to 'virtualenv_command: virtualenv' AND (2) uncomment the line just below
#virtualenv_python: python3 # 2021-07-29: Was needed when above line was 'virtualenv_command: virtualenv' (generally for Python 2) #virtualenv_python: python3 # 2021-07-29: Was needed when above line was 'virtualenv_command: virtualenv' (generally for Python 2)
extra_args: "--no-cache-dir" # 2021-11-30, 2022-07-07: The "--pre" flag had earlier been needed, for beta-like pre-releases of JupyterHub 2.0.0 extra_args: "--no-cache-dir --prefer-binary" # 2021-11-30, 2022-07-07: The "--pre" flag had earlier been needed, for beta-like pre-releases of JupyterHub 2.0.0
# 2022-07-07: Attempting to "pip install" all 7 together (3 above + 4 below) # 2022-07-07: Attempting to "pip install" all 7 together (3 above + 4 below)
# fails on OS's like 64-bit RasPiOS (but interestingly works on Ubuntu 22.04!) # fails on OS's like 64-bit RasPiOS (but interestingly works on Ubuntu 22.04!)
@ -57,9 +68,10 @@
- jupyterhub-systemdspawner - jupyterhub-systemdspawner
- ipywidgets - ipywidgets
virtualenv: "{{ jupyterhub_venv }}" virtualenv: "{{ jupyterhub_venv }}"
virtualenv_site_packages: no #virtualenv_site_packages: no
virtualenv_command: python3 -m venv "{{ jupyterhub_venv }}" virtualenv_command: python3 -m venv "{{ jupyterhub_venv }}" # 2025-02-16
extra_args: "--no-cache-dir" #virtualenv_command: python3 -m venv --system-site-packages "{{ jupyterhub_venv }}"
extra_args: "--no-cache-dir --prefer-binary" # 2023-10-01: Lifesaver when recent wheels (e.g. piwheels.org) are inevitably not yet built! SEE #3560
- name: "Install from template: {{ jupyterhub_venv }}/etc/jupyterhub/jupyterhub_config.py" - name: "Install from template: {{ jupyterhub_venv }}/etc/jupyterhub/jupyterhub_config.py"
template: template:
@ -99,6 +111,17 @@
# RECORD JupyterHub AS INSTALLED # RECORD JupyterHub AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'jupyterhub_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: jupyterhub
option: jupyterhub_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'jupyterhub_installed: True'" - name: "Set 'jupyterhub_installed: True'"
set_fact: set_fact:
jupyterhub_installed: True jupyterhub_installed: True

View file

@ -1,5 +1,18 @@
# 2023-02-10 /opt/iiab/jupyterhub/etc/jupyterhub/jupyterhub_config.py update:
# https://jupyterhub.readthedocs.io/en/stable/getting-started/config-basics.html
#
# 1) To generate this 1500+ line stub, I first ran JupyterHub 3.1.1's:
# /opt/iiab/jupyterhub/bin/jupyterhub --generate-config
# 2) Then I manually inserted 8 of IIAB's 10 legacy custom lines below, from:
# grep ^c /opt/iiab/iiab/roles/jupyterhub/templates/jupyterhub_config.py.j2
# 3) Finally I added the following line on @jvonau's suggestion: (#3475)
# c.ConfigurableHTTPProxy.pid_file = "/run/jupyterhub-proxy.pid"
# Configuration file for jupyterhub. # Configuration file for jupyterhub.
c = get_config() #noqa
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration # Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
@ -18,6 +31,53 @@
# Default: 30 # Default: 30
# c.Application.log_level = 30 # c.Application.log_level = 30
## Configure additional log handlers.
#
# The default stderr logs handler is configured by the log_level, log_datefmt
# and log_format settings.
#
# This configuration can be used to configure additional handlers (e.g. to
# output the log to a file) or for finer control over the default handlers.
#
# If provided this should be a logging configuration dictionary, for more
# information see:
# https://docs.python.org/3/library/logging.config.html#logging-config-
# dictschema
#
# This dictionary is merged with the base logging configuration which defines
# the following:
#
# * A logging formatter intended for interactive use called
# ``console``.
# * A logging handler that writes to stderr called
# ``console`` which uses the formatter ``console``.
# * A logger with the name of this application set to ``DEBUG``
# level.
#
# This example adds a new handler that writes to a file:
#
# .. code-block:: python
#
# c.Application.logging_config = {
# 'handlers': {
# 'file': {
# 'class': 'logging.FileHandler',
# 'level': 'DEBUG',
# 'filename': '<path/to/file>',
# }
# },
# 'loggers': {
# '<application-name>': {
# 'level': 'DEBUG',
# # NOTE: if you don't list the default "console"
# # handler here then it will be disabled
# 'handlers': ['console', 'file'],
# },
# }
# }
# Default: {}
# c.Application.logging_config = {}
## Instead of starting the Application, dump configuration to stdout ## Instead of starting the Application, dump configuration to stdout
# Default: False # Default: False
# c.Application.show_config = False # c.Application.show_config = False
@ -60,11 +120,13 @@
# Default: 30 # Default: 30
# c.JupyterHub.activity_resolution = 30 # c.JupyterHub.activity_resolution = 30
## Grant admin users permission to access single-user servers. ## DEPRECATED since version 2.0.0.
# #
# Users should be properly informed if this is enabled. # The default admin role has full permissions, use custom RBAC scopes instead to
# create restricted administrator roles.
# https://jupyterhub.readthedocs.io/en/stable/rbac/index.html
# Default: False # Default: False
c.JupyterHub.admin_access = True # c.JupyterHub.admin_access = False
## DEPRECATED since version 0.7.2, use Authenticator.admin_users instead. ## DEPRECATED since version 0.7.2, use Authenticator.admin_users instead.
# Default: set() # Default: set()
@ -78,14 +140,23 @@ c.JupyterHub.admin_access = True
# Default: False # Default: False
# c.JupyterHub.answer_yes = False # c.JupyterHub.answer_yes = False
## The default amount of records returned by a paginated endpoint
# Default: 50
# c.JupyterHub.api_page_default_limit = 50
## The maximum amount of records that can be returned at once
# Default: 200
# c.JupyterHub.api_page_max_limit = 200
## PENDING DEPRECATION: consider using services ## PENDING DEPRECATION: consider using services
# #
# Dict of token:username to be loaded into the database. # Dict of token:username to be loaded into the database.
# #
# Allows ahead-of-time generation of API tokens for use by externally managed # Allows ahead-of-time generation of API tokens for use by externally managed services,
# services, which authenticate as JupyterHub users. # which authenticate as JupyterHub users.
# #
# Consider using services for general services that talk to the JupyterHub API. # Consider using services for general services that talk to the
# JupyterHub API.
# Default: {} # Default: {}
# c.JupyterHub.api_tokens = {} # c.JupyterHub.api_tokens = {}
@ -112,30 +183,34 @@ c.JupyterHub.admin_access = True
# Currently installed: # Currently installed:
# - default: jupyterhub.auth.PAMAuthenticator # - default: jupyterhub.auth.PAMAuthenticator
# - dummy: jupyterhub.auth.DummyAuthenticator # - dummy: jupyterhub.auth.DummyAuthenticator
# - null: jupyterhub.auth.NullAuthenticator
# - pam: jupyterhub.auth.PAMAuthenticator # - pam: jupyterhub.auth.PAMAuthenticator
# Default: 'jupyterhub.auth.PAMAuthenticator' # Default: 'jupyterhub.auth.PAMAuthenticator'
# c.JupyterHub.authenticator_class = 'jupyterhub.auth.PAMAuthenticator'
c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator' c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator'
## The base URL of the entire application. ## The base URL of the entire application.
# #
# Add this to the beginning of all JupyterHub URLs. Use base_url to run # Add this to the beginning of all JupyterHub URLs.
# JupyterHub within an existing website. # Use base_url to run JupyterHub within an existing website.
# #
# .. deprecated: 0.9 # .. deprecated: 0.9
# Use JupyterHub.bind_url # Use JupyterHub.bind_url
# Default: '/' # Default: '/'
# c.JupyterHub.base_url = '/'
c.JupyterHub.base_url = '/jupyterhub' c.JupyterHub.base_url = '/jupyterhub'
## The public facing URL of the whole JupyterHub application. ## The public facing URL of the whole JupyterHub application.
# #
# This is the address on which the proxy will bind. Sets protocol, ip, base_url # This is the address on which the proxy will bind.
# Sets protocol, ip, base_url
# Default: 'http://:8000' # Default: 'http://:8000'
# c.JupyterHub.bind_url = 'http://:8000' # c.JupyterHub.bind_url = 'http://:8000'
## Whether to shutdown the proxy when the Hub shuts down. ## Whether to shutdown the proxy when the Hub shuts down.
# #
# Disable if you want to be able to teardown the Hub while leaving the proxy # Disable if you want to be able to teardown the Hub while leaving the
# running. # proxy running.
# #
# Only valid if the proxy was starting by the Hub process. # Only valid if the proxy was starting by the Hub process.
# #
@ -148,11 +223,11 @@ c.JupyterHub.base_url = '/jupyterhub'
## Whether to shutdown single-user servers when the Hub shuts down. ## Whether to shutdown single-user servers when the Hub shuts down.
# #
# Disable if you want to be able to teardown the Hub while leaving the single- # Disable if you want to be able to teardown the Hub while leaving the
# user servers running. # single-user servers running.
# #
# If both this and cleanup_proxy are False, sending SIGINT to the Hub will only # If both this and cleanup_proxy are False, sending SIGINT to the Hub will
# shutdown the Hub, leaving everything else running. # only shutdown the Hub, leaving everything else running.
# #
# The Hub should be able to resume from database state. # The Hub should be able to resume from database state.
# Default: True # Default: True
@ -184,7 +259,8 @@ c.JupyterHub.base_url = '/jupyterhub'
# Default: False # Default: False
# c.JupyterHub.confirm_no_ssl = False # c.JupyterHub.confirm_no_ssl = False
## Number of days for a login cookie to be valid. Default is two weeks. ## Number of days for a login cookie to be valid.
# Default is two weeks.
# Default: 14 # Default: 14
# c.JupyterHub.cookie_max_age_days = 14 # c.JupyterHub.cookie_max_age_days = 14
@ -193,24 +269,44 @@ c.JupyterHub.base_url = '/jupyterhub'
# Loaded from the JPY_COOKIE_SECRET env variable by default. # Loaded from the JPY_COOKIE_SECRET env variable by default.
# #
# Should be exactly 256 bits (32 bytes). # Should be exactly 256 bits (32 bytes).
# Default: b'' # Default: traitlets.Undefined
# c.JupyterHub.cookie_secret = traitlets.Undefined
c.JupyterHub.cookie_secret = b'helloiiabitsrainingb123456789012' c.JupyterHub.cookie_secret = b'helloiiabitsrainingb123456789012'
## File in which to store the cookie secret. ## File in which to store the cookie secret.
# Default: 'jupyterhub_cookie_secret' # Default: 'jupyterhub_cookie_secret'
# c.JupyterHub.cookie_secret_file = 'jupyterhub_cookie_secret' # c.JupyterHub.cookie_secret_file = 'jupyterhub_cookie_secret'
## The location of jupyterhub data files (e.g. /usr/local/share/jupyterhub) ## Custom scopes to define.
# Default: '/opt/iiab/jupyter/share/jupyterhub' #
# c.JupyterHub.data_files_path = '/opt/iiab/jupyter/share/jupyterhub' # For use when defining custom roles,
# to grant users granular permissions
#
# All custom scopes must have a description,
# and must start with the prefix `custom:`.
#
# For example::
#
# custom_scopes = {
# "custom:jupyter_server:read": {
# "description": "read-only access to a single-user server",
# },
# }
# Default: {}
# c.JupyterHub.custom_scopes = {}
## Include any kwargs to pass to the database connection. See ## The location of jupyterhub data files (e.g. /usr/local/share/jupyterhub)
# sqlalchemy.create_engine for details. # Default: '/opt/iiab/jupyterhub/share/jupyterhub'
# c.JupyterHub.data_files_path = '/opt/iiab/jupyterhub/share/jupyterhub'
## Include any kwargs to pass to the database connection.
# See sqlalchemy.create_engine for details.
# Default: {} # Default: {}
# c.JupyterHub.db_kwargs = {} # c.JupyterHub.db_kwargs = {}
## url for the database. e.g. `sqlite:///jupyterhub.sqlite` ## url for the database. e.g. `sqlite:///jupyterhub.sqlite`
# Default: 'sqlite:///jupyterhub.sqlite' # Default: 'sqlite:///jupyterhub.sqlite'
# c.JupyterHub.db_url = 'sqlite:///jupyterhub.sqlite'
c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite' c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
## log all database transactions. This has A LOT of output ## log all database transactions. This has A LOT of output
@ -221,8 +317,13 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# Default: False # Default: False
# c.JupyterHub.debug_proxy = False # c.JupyterHub.debug_proxy = False
## If named servers are enabled, default name of server to spawn or open, e.g. by ## If named servers are enabled, default name of server to spawn or open when no
# user-redirect. # server is specified, e.g. by user-redirect.
#
# Note: This has no effect if named servers are not enabled, and does _not_
# change the existence or behavior of the default server named `''` (the empty
# string). This only affects which named server is launched when no server is
# specified, e.g. by links to `/hub/user-redirect/lab/tree/mynotebook.ipynb`.
# Default: '' # Default: ''
# c.JupyterHub.default_server_name = '' # c.JupyterHub.default_server_name = ''
@ -245,9 +346,9 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# Default: traitlets.Undefined # Default: traitlets.Undefined
# c.JupyterHub.default_url = traitlets.Undefined # c.JupyterHub.default_url = traitlets.Undefined
## Dict authority:dict(files). Specify the key, cert, and/or ca file for an ## Dict authority:dict(files). Specify the key, cert, and/or
# authority. This is useful for externally managed proxies that wish to use # ca file for an authority. This is useful for externally managed
# internal_ssl. # proxies that wish to use internal_ssl.
# #
# The files dict has this format (you must specify at least a cert):: # The files dict has this format (you must specify at least a cert)::
# #
@ -257,18 +358,16 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# 'ca': '/path/to/ca.crt' # 'ca': '/path/to/ca.crt'
# } # }
# #
# The authorities you can override: 'hub-ca', 'notebooks-ca', 'proxy-api-ca', # The authorities you can override: 'hub-ca', 'notebooks-ca',
# 'proxy-client-ca', and 'services-ca'. # 'proxy-api-ca', 'proxy-client-ca', and 'services-ca'.
# #
# Use with internal_ssl # Use with internal_ssl
# Default: {} # Default: {}
# c.JupyterHub.external_ssl_authorities = {} # c.JupyterHub.external_ssl_authorities = {}
## Register extra tornado Handlers for jupyterhub. ## DEPRECATED.
# #
# Should be of the form ``("<regex>", Handler)`` # If you need to register additional HTTP endpoints please use services instead.
#
# The Hub prefix will be added, so `/my-page` will be served at `/hub/my-page`.
# Default: [] # Default: []
# c.JupyterHub.extra_handlers = [] # c.JupyterHub.extra_handlers = []
@ -282,6 +381,14 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# Default: [] # Default: []
# c.JupyterHub.extra_log_handlers = [] # c.JupyterHub.extra_log_handlers = []
## Alternate header to use as the Host (e.g., X-Forwarded-Host)
# when determining whether a request is cross-origin
#
# This may be useful when JupyterHub is running behind a proxy that rewrites
# the Host header.
# Default: ''
# c.JupyterHub.forwarded_host_header = ''
## Generate certs used for internal ssl ## Generate certs used for internal ssl
# Default: False # Default: False
# c.JupyterHub.generate_certs = False # c.JupyterHub.generate_certs = False
@ -303,17 +410,17 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# Default: '' # Default: ''
# c.JupyterHub.hub_bind_url = '' # c.JupyterHub.hub_bind_url = ''
## The ip or hostname for proxies and spawners to use for connecting to the Hub. ## The ip or hostname for proxies and spawners to use
# for connecting to the Hub.
# #
# Use when the bind address (`hub_ip`) is 0.0.0.0, :: or otherwise different # Use when the bind address (`hub_ip`) is 0.0.0.0, :: or otherwise different
# from the connect address. # from the connect address.
# #
# Default: when `hub_ip` is 0.0.0.0 or ::, use `socket.gethostname()`, otherwise # Default: when `hub_ip` is 0.0.0.0 or ::, use `socket.gethostname()`,
# use `hub_ip`. # otherwise use `hub_ip`.
# #
# Note: Some spawners or proxy implementations might not support hostnames. # Note: Some spawners or proxy implementations might not support hostnames. Check your
# Check your spawner or proxy documentation to see if they have extra # spawner or proxy documentation to see if they have extra requirements.
# requirements.
# #
# .. versionadded:: 0.8 # .. versionadded:: 0.8
# Default: '' # Default: ''
@ -346,39 +453,59 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
## The ip address for the Hub process to *bind* to. ## The ip address for the Hub process to *bind* to.
# #
# By default, the hub listens on localhost only. This address must be accessible # By default, the hub listens on localhost only. This address must be accessible from
# from the proxy and user servers. You may need to set this to a public ip or '' # the proxy and user servers. You may need to set this to a public ip or '' for all
# for all interfaces if the proxy or user servers are in containers or on a # interfaces if the proxy or user servers are in containers or on a different host.
# different host.
# #
# See `hub_connect_ip` for cases where the bind and connect address should # See `hub_connect_ip` for cases where the bind and connect address should differ,
# differ, or `hub_bind_url` for setting the full bind URL. # or `hub_bind_url` for setting the full bind URL.
# Default: '127.0.0.1' # Default: '127.0.0.1'
# c.JupyterHub.hub_ip = '127.0.0.1' # c.JupyterHub.hub_ip = '127.0.0.1'
## The internal port for the Hub process. ## The internal port for the Hub process.
# #
# This is the internal port of the hub itself. It should never be accessed # This is the internal port of the hub itself. It should never be accessed directly.
# directly. See JupyterHub.port for the public port to use when accessing # See JupyterHub.port for the public port to use when accessing jupyterhub.
# jupyterhub. It is rare that this port should be set except in cases of port # It is rare that this port should be set except in cases of port conflict.
# conflict.
# #
# See also `hub_ip` for the ip and `hub_bind_url` for setting the full bind URL. # See also `hub_ip` for the ip and `hub_bind_url` for setting the full
# bind URL.
# Default: 8081 # Default: 8081
# c.JupyterHub.hub_port = 8081 # c.JupyterHub.hub_port = 8081
## The routing prefix for the Hub itself.
#
# Override to send only a subset of traffic to the Hub. Default is to use the
# Hub as the default route for all requests.
#
# This is necessary for normal jupyterhub operation, as the Hub must receive
# requests for e.g. `/user/:name` when the user's server is not running.
#
# However, some deployments using only the JupyterHub API may want to handle
# these events themselves, in which case they can register their own default
# target with the proxy and set e.g. `hub_routespec = /hub/` to serve only the
# hub's own pages, or even `/hub/api/` for api-only operation.
#
# Note: hub_routespec must include the base_url, if any.
#
# .. versionadded:: 1.4
# Default: '/'
# c.JupyterHub.hub_routespec = '/'
## Trigger implicit spawns after this many seconds. ## Trigger implicit spawns after this many seconds.
# #
# When a user visits a URL for a server that's not running, they are shown a # When a user visits a URL for a server that's not running,
# page indicating that the requested server is not running with a button to # they are shown a page indicating that the requested server
# spawn the server. # is not running with a button to spawn the server.
# #
# Setting this to a positive value will redirect the user after this many # Setting this to a positive value will redirect the user
# seconds, effectively clicking this button automatically for the users, # after this many seconds, effectively clicking this button
# automatically for the users,
# automatically beginning the spawn process. # automatically beginning the spawn process.
# #
# Warning: this can result in errors and surprising behavior when sharing access # Warning: this can result in errors and surprising behavior
# URLs to actual servers, since the wrong server is likely to be started. # when sharing access URLs to actual servers,
# since the wrong server is likely to be started.
# Default: 0 # Default: 0
# c.JupyterHub.implicit_spawn_seconds = 0 # c.JupyterHub.implicit_spawn_seconds = 0
@ -398,7 +525,8 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# Default: 10 # Default: 10
# c.JupyterHub.init_spawners_timeout = 10 # c.JupyterHub.init_spawners_timeout = 10
## The location to store certificates automatically created by JupyterHub. ## The location to store certificates automatically created by
# JupyterHub.
# #
# Use with internal_ssl # Use with internal_ssl
# Default: 'internal-ssl' # Default: 'internal-ssl'
@ -407,17 +535,17 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
## Enable SSL for all internal communication ## Enable SSL for all internal communication
# #
# This enables end-to-end encryption between all JupyterHub components. # This enables end-to-end encryption between all JupyterHub components.
# JupyterHub will automatically create the necessary certificate authority and # JupyterHub will automatically create the necessary certificate
# sign notebook certificates as they're created. # authority and sign notebook certificates as they're created.
# Default: False # Default: False
# c.JupyterHub.internal_ssl = False # c.JupyterHub.internal_ssl = False
## The public facing ip of the whole JupyterHub application (specifically ## The public facing ip of the whole JupyterHub application
# referred to as the proxy). # (specifically referred to as the proxy).
# #
# This is the address on which the proxy will listen. The default is to listen # This is the address on which the proxy will listen. The default is to
# on all interfaces. This is the only address through which JupyterHub should be # listen on all interfaces. This is the only address through which JupyterHub
# accessed by users. # should be accessed by users.
# #
# .. deprecated: 0.9 # .. deprecated: 0.9
# Use JupyterHub.bind_url # Use JupyterHub.bind_url
@ -436,12 +564,34 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# #
# This strictly *adds* groups and users to groups. # This strictly *adds* groups and users to groups.
# #
# Loading one set of groups, then starting JupyterHub again with a different set # Loading one set of groups, then starting JupyterHub again with a different
# will not remove users or groups from previous launches. That must be done # set will not remove users or groups from previous launches.
# through the API. # That must be done through the API.
# Default: {} # Default: {}
# c.JupyterHub.load_groups = {} # c.JupyterHub.load_groups = {}
## List of predefined role dictionaries to load at startup.
#
# For instance::
#
# load_roles = [
# {
# 'name': 'teacher',
# 'description': 'Access to users' information and group membership',
# 'scopes': ['users', 'groups'],
# 'users': ['cyclops', 'gandalf'],
# 'services': [],
# 'groups': []
# }
# ]
#
# All keys apart from 'name' are optional.
# See all the available scopes in the JupyterHub REST API documentation.
#
# Default roles are defined in roles.py.
# Default: []
# c.JupyterHub.load_roles = []
## The date format used by logging formatters for %(asctime)s ## The date format used by logging formatters for %(asctime)s
# See also: Application.log_datefmt # See also: Application.log_datefmt
# c.JupyterHub.log_datefmt = '%Y-%m-%d %H:%M:%S' # c.JupyterHub.log_datefmt = '%Y-%m-%d %H:%M:%S'
@ -454,6 +604,10 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# See also: Application.log_level # See also: Application.log_level
# c.JupyterHub.log_level = 30 # c.JupyterHub.log_level = 30
##
# See also: Application.logging_config
# c.JupyterHub.logging_config = {}
## Specify path to a logo image to override the Jupyter logo in the banner. ## Specify path to a logo image to override the Jupyter logo in the banner.
# Default: '' # Default: ''
# c.JupyterHub.logo_file = '' # c.JupyterHub.logo_file = ''
@ -464,17 +618,59 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# Setting this can limit the total resources a user can consume. # Setting this can limit the total resources a user can consume.
# #
# If set to 0, no limit is enforced. # If set to 0, no limit is enforced.
#
# Can be an integer or a callable/awaitable based on the handler object:
#
# ::
#
# def named_server_limit_per_user_fn(handler):
# user = handler.current_user
# if user and user.admin:
# return 0
# return 5
#
# c.JupyterHub.named_server_limit_per_user = named_server_limit_per_user_fn
# Default: 0 # Default: 0
# c.JupyterHub.named_server_limit_per_user = 0 # c.JupyterHub.named_server_limit_per_user = 0
## File to write PID Useful for daemonizing JupyterHub. ## Expiry (in seconds) of OAuth access tokens.
#
# The default is to expire when the cookie storing them expires,
# according to `cookie_max_age_days` config.
#
# These are the tokens stored in cookies when you visit
# a single-user server or service.
# When they expire, you must re-authenticate with the Hub,
# even if your Hub authentication is still valid.
# If your Hub authentication is valid,
# logging in may be a transparent redirect as you refresh the page.
#
# This does not affect JupyterHub API tokens in general,
# which do not expire by default.
# Only tokens issued during the oauth flow
# accessing services and single-user servers are affected.
#
# .. versionadded:: 1.4
# OAuth token expires_in was not previously configurable.
# .. versionchanged:: 1.4
# Default now uses cookie_max_age_days so that oauth tokens
# which are generally stored in cookies,
# expire when the cookies storing them expire.
# Previously, it was one hour.
# Default: 0
# c.JupyterHub.oauth_token_expires_in = 0
## File to write PID
# Useful for daemonizing JupyterHub.
# Default: '' # Default: ''
# c.JupyterHub.pid_file = '' # c.JupyterHub.pid_file = ''
c.ConfigurableHTTPProxy.pid_file = "/run/jupyterhub-proxy.pid"
## The public facing port of the proxy. ## The public facing port of the proxy.
# #
# This is the port on which the proxy will listen. This is the only port through # This is the port on which the proxy will listen.
# which JupyterHub should be accessed by users. # This is the only port through which JupyterHub
# should be accessed by users.
# #
# .. deprecated: 0.9 # .. deprecated: 0.9
# Use JupyterHub.bind_url # Use JupyterHub.bind_url
@ -493,9 +689,9 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# Default: '' # Default: ''
# c.JupyterHub.proxy_auth_token = '' # c.JupyterHub.proxy_auth_token = ''
## Interval (in seconds) at which to check if the proxy is running. ## DEPRECATED since version 0.8: Use ConfigurableHTTPProxy.check_running_interval
# Default: 30 # Default: 5
# c.JupyterHub.proxy_check_interval = 30 # c.JupyterHub.proxy_check_interval = 5
## The class to use for configuring the JupyterHub proxy. ## The class to use for configuring the JupyterHub proxy.
# #
@ -538,8 +734,8 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
## Dict of token:servicename to be loaded into the database. ## Dict of token:servicename to be loaded into the database.
# #
# Allows ahead-of-time generation of API tokens for use by externally managed # Allows ahead-of-time generation of API tokens for use by externally
# services. # managed services.
# Default: {} # Default: {}
# c.JupyterHub.service_tokens = {} # c.JupyterHub.service_tokens = {}
@ -585,11 +781,15 @@ c.JupyterHub.db_url = 'sqlite:///{{ jupyterhub_venv }}/jupyterhub.sqlite'
# e.g. `c.JupyterHub.spawner_class = 'localprocess'` # e.g. `c.JupyterHub.spawner_class = 'localprocess'`
# #
# Currently installed: # Currently installed:
# - systemd: systemdspawner.SystemdSpawner
# - systemdspawner: systemdspawner.SystemdSpawner
# - default: jupyterhub.spawner.LocalProcessSpawner # - default: jupyterhub.spawner.LocalProcessSpawner
# - localprocess: jupyterhub.spawner.LocalProcessSpawner # - localprocess: jupyterhub.spawner.LocalProcessSpawner
# - simple: jupyterhub.spawner.SimpleLocalProcessSpawner # - simple: jupyterhub.spawner.SimpleLocalProcessSpawner
# Default: 'jupyterhub.spawner.LocalProcessSpawner' # Default: 'jupyterhub.spawner.LocalProcessSpawner'
# c.JupyterHub.spawner_class = 'jupyterhub.spawner.LocalProcessSpawner'
c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner' c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
c.SystemdSpawner.dynamic_users = True
## Path to SSL certificate file for the public facing interface of the proxy ## Path to SSL certificate file for the public facing interface of the proxy
# #
@ -620,15 +820,16 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
# #
# This should be the full `https://hub.domain.tld[:port]`. # This should be the full `https://hub.domain.tld[:port]`.
# #
# Provides additional cross-site protections for javascript served by single- # Provides additional cross-site protections for javascript served by
# user servers. # single-user servers.
# #
# Requires `<username>.hub.domain.tld` to resolve to the same host as # Requires `<username>.hub.domain.tld` to resolve to the same host as
# `hub.domain.tld`. # `hub.domain.tld`.
# #
# In general, this is most easily achieved with wildcard DNS. # In general, this is most easily achieved with wildcard DNS.
# #
# When using SSL (i.e. always) this also requires a wildcard SSL certificate. # When using SSL (i.e. always) this also requires a wildcard SSL
# certificate.
# Default: '' # Default: ''
# c.JupyterHub.subdomain_host = '' # c.JupyterHub.subdomain_host = ''
@ -644,32 +845,32 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
# Default: {} # Default: {}
# c.JupyterHub.tornado_settings = {} # c.JupyterHub.tornado_settings = {}
## Trust user-provided tokens (via JupyterHub.service_tokens) to have good ## Trust user-provided tokens (via JupyterHub.service_tokens)
# entropy. # to have good entropy.
# #
# If you are not inserting additional tokens via configuration file, this flag # If you are not inserting additional tokens via configuration file,
# has no effect. # this flag has no effect.
# #
# In JupyterHub 0.8, internally generated tokens do not pass through additional # In JupyterHub 0.8, internally generated tokens do not
# hashing because the hashing is costly and does not increase the entropy of # pass through additional hashing because the hashing is costly
# already-good UUIDs. # and does not increase the entropy of already-good UUIDs.
# #
# User-provided tokens, on the other hand, are not trusted to have good entropy # User-provided tokens, on the other hand, are not trusted to have good entropy by default,
# by default, and are passed through many rounds of hashing to stretch the # and are passed through many rounds of hashing to stretch the entropy of the key
# entropy of the key (i.e. user-provided tokens are treated as passwords instead # (i.e. user-provided tokens are treated as passwords instead of random keys).
# of random keys). These keys are more costly to check. # These keys are more costly to check.
# #
# If your inserted tokens are generated by a good-quality mechanism, e.g. # If your inserted tokens are generated by a good-quality mechanism,
# `openssl rand -hex 32`, then you can set this flag to True to reduce the cost # e.g. `openssl rand -hex 32`, then you can set this flag to True
# of checking authentication tokens. # to reduce the cost of checking authentication tokens.
# Default: False # Default: False
# c.JupyterHub.trust_user_provided_tokens = False # c.JupyterHub.trust_user_provided_tokens = False
## Names to include in the subject alternative name. ## Names to include in the subject alternative name.
# #
# These names will be used for server name verification. This is useful if # These names will be used for server name verification. This is useful
# JupyterHub is being run behind a reverse proxy or services using ssl are on # if JupyterHub is being run behind a reverse proxy or services using ssl
# different hosts. # are on different hosts.
# #
# Use with internal_ssl # Use with internal_ssl
# Default: [] # Default: []
@ -677,21 +878,36 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
## Downstream proxy IP addresses to trust. ## Downstream proxy IP addresses to trust.
# #
# This sets the list of IP addresses that are trusted and skipped when # This sets the list of IP addresses that are trusted and skipped when processing
# processing the `X-Forwarded-For` header. For example, if an external proxy is # the `X-Forwarded-For` header. For example, if an external proxy is used for TLS
# used for TLS termination, its IP address should be added to this list to # termination, its IP address should be added to this list to ensure the correct
# ensure the correct client IP addresses are recorded in the logs instead of the # client IP addresses are recorded in the logs instead of the proxy server's IP
# proxy server's IP address. # address.
# Default: [] # Default: []
# c.JupyterHub.trusted_downstream_ips = [] # c.JupyterHub.trusted_downstream_ips = []
## Upgrade the database automatically on start. ## Upgrade the database automatically on start.
# #
# Only safe if database is regularly backed up. Only SQLite databases will be # Only safe if database is regularly backed up.
# backed up to a local file automatically. # Only SQLite databases will be backed up to a local file automatically.
# Default: False # Default: False
# c.JupyterHub.upgrade_db = False # c.JupyterHub.upgrade_db = False
## Return 503 rather than 424 when request comes in for a non-running server.
#
# Prior to JupyterHub 2.0, we returned a 503 when any request came in for a user
# server that was currently not running. By default, JupyterHub 2.0 will return
# a 424 - this makes operational metric dashboards more useful.
#
# JupyterLab < 3.2 expected the 503 to know if the user server is no longer
# running, and prompted the user to start their server. Set this config to true
# to retain the old behavior, so JupyterLab < 3.2 can continue to show the
# appropriate UI when the user server is stopped.
#
# This option will be removed in a future release.
# Default: False
# c.JupyterHub.use_legacy_stopped_server_status_code = False
## Callable to affect behavior of /user-redirect/ ## Callable to affect behavior of /user-redirect/
# #
# Receives 4 parameters: 1. path - URL path that was provided after /user- # Receives 4 parameters: 1. path - URL path that was provided after /user-
@ -711,10 +927,14 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
# #
# Subclass this, and override the following methods: # Subclass this, and override the following methods:
# #
# - load_state - get_state - start - stop - poll # - load_state
# - get_state
# - start
# - stop
# - poll
# #
# As JupyterHub supports multiple users, an instance of the Spawner subclass is # As JupyterHub supports multiple users, an instance of the Spawner subclass
# created for each user. If there are 20 JupyterHub users, there will be 20 # is created for each user. If there are 20 JupyterHub users, there will be 20
# instances of the subclass. # instances of the subclass.
## Extra arguments to be passed to the single-user server. ## Extra arguments to be passed to the single-user server.
@ -862,12 +1082,32 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
# Default: 30 # Default: 30
# c.Spawner.http_timeout = 30 # c.Spawner.http_timeout = 30
## The URL the single-user server should connect to the Hub.
#
# If the Hub URL set in your JupyterHub config is not reachable from spawned
# notebooks, you can set differnt URL by this config.
#
# Is None if you don't need to change the URL.
# Default: None
# c.Spawner.hub_connect_url = None
## The IP address (or hostname) the single-user server should listen on. ## The IP address (or hostname) the single-user server should listen on.
# #
# Usually either '127.0.0.1' (default) or '0.0.0.0'.
#
# The JupyterHub proxy implementation should be able to send packets to this # The JupyterHub proxy implementation should be able to send packets to this
# interface. # interface.
# Default: '' #
# c.Spawner.ip = '' # Subclasses which launch remotely or in containers should override the default
# to '0.0.0.0'.
#
# .. versionchanged:: 2.0
# Default changed to '127.0.0.1', from ''.
# In most cases, this does not result in a change in behavior,
# as '' was interpreted as 'unspecified',
# which used the subprocesses' own default, itself usually '127.0.0.1'.
# Default: '127.0.0.1'
# c.Spawner.ip = '127.0.0.1'
## Minimum number of bytes a single-user notebook server is guaranteed to have ## Minimum number of bytes a single-user notebook server is guaranteed to have
# available. # available.
@ -918,6 +1158,35 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
# Default: '' # Default: ''
# c.Spawner.notebook_dir = '' # c.Spawner.notebook_dir = ''
## Allowed scopes for oauth tokens issued by this server's oauth client.
#
# This sets the maximum and default scopes
# assigned to oauth tokens issued by a single-user server's
# oauth client (i.e. tokens stored in browsers after authenticating with the server),
# defining what actions the server can take on behalf of logged-in users.
#
# Default is an empty list, meaning minimal permissions to identify users,
# no actions can be taken on their behalf.
#
# If callable, will be called with the Spawner as a single argument.
# Callables may be async.
# Default: traitlets.Undefined
# c.Spawner.oauth_client_allowed_scopes = traitlets.Undefined
## Allowed roles for oauth tokens.
#
# Deprecated in 3.0: use oauth_client_allowed_scopes
#
# This sets the maximum and default roles
# assigned to oauth tokens issued by a single-user server's
# oauth client (i.e. tokens stored in browsers after authenticating with the server),
# defining what actions the server can take on behalf of logged-in users.
#
# Default is an empty list, meaning minimal permissions to identify users,
# no actions can be taken on their behalf.
# Default: traitlets.Undefined
# c.Spawner.oauth_roles = traitlets.Undefined
## An HTML form for options a user can specify on launching their server. ## An HTML form for options a user can specify on launching their server.
# #
# The surrounding `<form>` element and the submit button are already provided. # The surrounding `<form>` element and the submit button are already provided.
@ -1021,8 +1290,8 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
## List of SSL alt names ## List of SSL alt names
# #
# May be set in config if all spawners should have the same value(s), or set at # May be set in config if all spawners should have the same value(s),
# runtime by Spawner that know their names. # or set at runtime by Spawner that know their names.
# Default: [] # Default: []
# c.Spawner.ssl_alt_names = [] # c.Spawner.ssl_alt_names = []
@ -1046,6 +1315,9 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
## Set of users that will have admin rights on this JupyterHub. ## Set of users that will have admin rights on this JupyterHub.
# #
# Note: As of JupyterHub 2.0, full admin rights should not be required, and more
# precise permissions can be managed via roles.
#
# Admin users have extra privileges: # Admin users have extra privileges:
# - Use the admin panel to see list of users logged in # - Use the admin panel to see list of users logged in
# - Add / remove users in some authenticators # - Add / remove users in some authenticators
@ -1057,6 +1329,7 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
# #
# Defaults to an empty set, in which case no user has admin access. # Defaults to an empty set, in which case no user has admin access.
# Default: set() # Default: set()
# c.Authenticator.admin_users = set()
c.Authenticator.admin_users = set(['admin']) c.Authenticator.admin_users = set(['admin'])
c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm" c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm"
@ -1064,7 +1337,8 @@ c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm"
# #
# Use this with supported authenticators to restrict which users can log in. # Use this with supported authenticators to restrict which users can log in.
# This is an additional list that further restricts users, beyond whatever # This is an additional list that further restricts users, beyond whatever
# restrictions the authenticator has in place. # restrictions the authenticator has in place. Any user in this list is granted
# the 'user' role on hub startup.
# #
# If empty, does not perform any additional restriction. # If empty, does not perform any additional restriction.
# #
@ -1073,10 +1347,11 @@ c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm"
# Default: set() # Default: set()
# c.Authenticator.allowed_users = set() # c.Authenticator.allowed_users = set()
## The max age (in seconds) of authentication info before forcing a refresh of ## The max age (in seconds) of authentication info
# user auth info. # before forcing a refresh of user auth info.
# #
# Refreshing auth info allows, e.g. requesting/re-validating auth tokens. # Refreshing auth info allows, e.g. requesting/re-validating auth
# tokens.
# #
# See :meth:`.refresh_user` for what happens when user auth info is refreshed # See :meth:`.refresh_user` for what happens when user auth info is refreshed
# (nothing by default). # (nothing by default).
@ -1088,13 +1363,27 @@ c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm"
# rather than starting with a "Login with..." link at `/hub/login` # rather than starting with a "Login with..." link at `/hub/login`
# #
# To work, `.login_url()` must give a URL other than the default `/hub/login`, # To work, `.login_url()` must give a URL other than the default `/hub/login`,
# such as an oauth handler or another automatic login handler, registered with # such as an oauth handler or another automatic login handler,
# `.get_handlers()`. # registered with `.get_handlers()`.
# #
# .. versionadded:: 0.8 # .. versionadded:: 0.8
# Default: False # Default: False
# c.Authenticator.auto_login = False # c.Authenticator.auto_login = False
## Automatically begin login process for OAuth2 authorization requests
#
# When another application is using JupyterHub as OAuth2 provider, it sends
# users to `/hub/api/oauth2/authorize`. If the user isn't logged in already, and
# auto_login is not set, the user will be dumped on the hub's home page, without
# any context on what to do next.
#
# Setting this to true will automatically redirect users to login if they aren't
# logged in *only* on the `/hub/api/oauth2/authorize` endpoint.
#
# .. versionadded:: 1.5
# Default: False
# c.Authenticator.auto_login_oauth2_authorize = False
## Set of usernames that are not allowed to log in. ## Set of usernames that are not allowed to log in.
# #
# Use this with supported authenticators to restrict which users can not log in. # Use this with supported authenticators to restrict which users can not log in.
@ -1112,29 +1401,31 @@ c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm"
## Delete any users from the database that do not pass validation ## Delete any users from the database that do not pass validation
# #
# When JupyterHub starts, `.add_user` will be called on each user in the # When JupyterHub starts, `.add_user` will be called
# database to verify that all users are still valid. # on each user in the database to verify that all users are still valid.
# #
# If `delete_invalid_users` is True, any users that do not pass validation will # If `delete_invalid_users` is True,
# be deleted from the database. Use this if users might be deleted from an # any users that do not pass validation will be deleted from the database.
# external system, such as local user accounts. # Use this if users might be deleted from an external system,
# such as local user accounts.
# #
# If False (default), invalid users remain in the Hub's database and a warning # If False (default), invalid users remain in the Hub's database
# will be issued. This is the default to avoid data loss due to config changes. # and a warning will be issued.
# This is the default to avoid data loss due to config changes.
# Default: False # Default: False
# c.Authenticator.delete_invalid_users = False # c.Authenticator.delete_invalid_users = False
## Enable persisting auth_state (if available). ## Enable persisting auth_state (if available).
# #
# auth_state will be encrypted and stored in the Hub's database. This can # auth_state will be encrypted and stored in the Hub's database.
# include things like authentication tokens, etc. to be passed to Spawners as # This can include things like authentication tokens, etc.
# environment variables. # to be passed to Spawners as environment variables.
# #
# Encrypting auth_state requires the cryptography package. # Encrypting auth_state requires the cryptography package.
# #
# Additionally, the JUPYTERHUB_CRYPT_KEY environment variable must contain one # Additionally, the JUPYTERHUB_CRYPT_KEY environment variable must
# (or more, separated by ;) 32B encryption keys. These can be either base64 or # contain one (or more, separated by ;) 32B encryption keys.
# hex-encoded. # These can be either base64 or hex-encoded.
# #
# If encryption is unavailable, auth_state cannot be persisted. # If encryption is unavailable, auth_state cannot be persisted.
# #
@ -1142,6 +1433,16 @@ c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm"
# Default: False # Default: False
# c.Authenticator.enable_auth_state = False # c.Authenticator.enable_auth_state = False
## Let authenticator manage user groups
#
# If True, Authenticator.authenticate and/or .refresh_user
# may return a list of group names in the 'groups' field,
# which will be assigned to the user.
#
# All group-assignment APIs are disabled if this is True.
# Default: False
# c.Authenticator.manage_groups = False
## An optional hook function that you can implement to do some bootstrapping work ## An optional hook function that you can implement to do some bootstrapping work
# during authentication. For example, loading user account details from an # during authentication. For example, loading user account details from an
# external system. # external system.
@ -1176,14 +1477,14 @@ c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm"
## Force refresh of auth prior to spawn. ## Force refresh of auth prior to spawn.
# #
# This forces :meth:`.refresh_user` to be called prior to launching a server, to # This forces :meth:`.refresh_user` to be called prior to launching
# ensure that auth state is up-to-date. # a server, to ensure that auth state is up-to-date.
# #
# This can be important when e.g. auth tokens that may have expired are passed # This can be important when e.g. auth tokens that may have expired
# to the spawner via environment variables from auth_state. # are passed to the spawner via environment variables from auth_state.
# #
# If refresh_user cannot refresh the user auth data, launch will fail until the # If refresh_user cannot refresh the user auth data,
# user logs in again. # launch will fail until the user logs in again.
# Default: False # Default: False
# c.Authenticator.refresh_pre_spawn = False # c.Authenticator.refresh_pre_spawn = False
@ -1217,23 +1518,5 @@ c.Authenticator.dbm_path = "{{ jupyterhub_venv }}/etc/passwords.dbm"
# c.CryptKeeper.keys = [] # c.CryptKeeper.keys = []
## The number of threads to allocate for encryption ## The number of threads to allocate for encryption
# Default: 4 # Default: 2
# c.CryptKeeper.n_threads = 4 # c.CryptKeeper.n_threads = 2
#------------------------------------------------------------------------------
# Pagination(Configurable) configuration
#------------------------------------------------------------------------------
## Default number of entries per page for paginated results.
# Default: 100
# c.Pagination.default_per_page = 100
## Maximum number of entries per page for paginated results.
# Default: 250
# c.Pagination.max_per_page = 250
#------------------------------------------------------------------------------
# Systemdspawner config
#------------------------------------------------------------------------------
c.SystemdSpawner.dynamic_users = True
c.SystemdSpawner.user_workingdir = '/opt/iiab/notebooks/{USERNAME}'

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: Download {{ kalite_requirements }} to {{ pip_packages_dir }}/kalite.txt - name: Download {{ kalite_requirements }} to {{ pip_packages_dir }}/kalite.txt
get_url: get_url:
url: "{{ kalite_requirements }}" url: "{{ kalite_requirements }}"
@ -10,36 +15,46 @@
# ignore_errors: yes # ignore_errors: yes
# when: is_raspbian # when: is_raspbian
- name: 'Install packages: python2, python-setuptools, virtualenv (for Python 2)' - name: 'Install packages: python2, python-setuptools, virtualenv (for Python 2) -- if Ubuntu 22.04 / Mint 21'
package: package:
name: name:
- python2 - python2
- python-setuptools # Provides setuptools-44 on recent OS's (last version compatible with python2) - python-setuptools # Provides setuptools-44 on recent OS's (last version compatible with python2)
- virtualenv # For Ansible module 'pip' when used with 'virtualenv_command: /usr/bin/virtualenv' and 'virtualenv_python: python2.7' -- compare package 'python3-venv' used by roles {calibre-web, jupyterhub, lokole} - virtualenv # Drags in 'python3-virtualenv' which in turn drags in 'python3-pip' -- for Ansible module 'pip' when used with 'virtualenv_command: /usr/bin/virtualenv' and 'virtualenv_python: python2.7' -- compare package 'python3-venv' used by roles {calibre-web, jupyterhub, lokole}
state: present state: present
#when: not (is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19) when: is_ubuntu_2204 # Also covers is_linuxmint_21
# 2020-03-31: Testing for {is_raspbian_9, is_raspbian_10} is not currently nec, as testing for {is_debian_9, is_debian_10} covers that already.
- name: Use pip to pin setuptools to 44 in {{ kalite_venv }} # WAS: if Raspbian/Debian > 10 or Ubuntu > 19 - name: Run scripts/install_python2.sh to install python2 and virtualenv -- if Debian 12 or RasPiOS 12
command: "{{ iiab_dir }}/scripts/install_python2.sh"
when: is_debian_12 # Also covers is_raspbian_12
- name: Use pip to pin setuptools to 44 in {{ kalite_venv }} -- if Ubuntu 22.04 / Mint 21, Ubuntu 23.10, Debian 12 or RasPiOS 12
pip: pip:
name: setuptools==44 name: setuptools==44
virtualenv: "{{ kalite_venv }}" # /usr/local/kalite/venv virtualenv: "{{ kalite_venv }}" # /usr/local/kalite/venv
virtualenv_site_packages: no virtualenv_site_packages: no
virtualenv_command: /usr/bin/virtualenv virtualenv_command: virtualenv # Traditionally /usr/bin/virtual/env -- but install_python2.sh (for Ubuntu 23.10+) sets up /usr/local/bin/virtualenv
virtualenv_python: python2.7 virtualenv_python: python2.7
extra_args: "--no-use-pep517 --no-cache-dir --no-python-version-warning" extra_args: "--no-use-pep517 --no-cache-dir --no-python-version-warning"
#when: not (is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19) when: is_ubuntu_2204 or is_ubuntu_2310 or is_debian_12 # Also covers is_linuxmint_21 and is_raspbian_12
# long form of (is_debian_11+ or is_ubuntu_20+)
- name: Use pip to install ka-lite-static to {{ kalite_venv }} - name: Use pip to install ka-lite-static to {{ kalite_venv }} -- if Ubuntu 22.04 / Mint 21, Ubuntu 23.10, Debian 12 or RasPiOS 12
pip: pip:
name: ka-lite-static name: ka-lite-static
version: "{{ kalite_version }}" version: "{{ kalite_version }}"
virtualenv: "{{ kalite_venv }}" virtualenv: "{{ kalite_venv }}"
virtualenv_site_packages: no virtualenv_site_packages: no
virtualenv_command: /usr/bin/virtualenv virtualenv_command: virtualenv
virtualenv_python: python2.7 virtualenv_python: python2.7
extra_args: "--no-cache-dir" extra_args: "--no-cache-dir"
when: is_ubuntu_2204 or is_ubuntu_2310 or is_debian_12 # Also covers is_linuxmint_21 and is_raspbian_12
# 2024-04-30: Sadly no longer works with Ubuntu 24.04 LTS final release (#3731).
# So roles/kalite is OS-restricted during initial install, SEE: roles/7-edu-apps/tasks/main.yml
# CLARIF: If install_python2_kalite-venv_u2404.sh proves no longer useful, it will deprecated in coming months.
- name: Run scripts/install_python2_kalite-venv_u2404.sh -- if Ubuntu 24.04+ or Mint 22
command: bash "{{ iiab_dir }}/scripts/install_python2_kalite-venv_u2404.sh"
when: is_ubuntu and not is_linuxmint and os_ver is version('ubuntu-2404', '>=') or is_linuxmint_22
- name: "Install from templates: venv wrapper /usr/bin/kalite, unit file /etc/systemd/system/kalite-serve.service" - name: "Install from templates: venv wrapper /usr/bin/kalite, unit file /etc/systemd/system/kalite-serve.service"
template: template:
@ -50,30 +65,11 @@
- { src: 'kalite.sh.j2', dest: '/usr/bin/kalite', mode: '0755' } - { src: 'kalite.sh.j2', dest: '/usr/bin/kalite', mode: '0755' }
- { src: 'kalite-serve.service.j2', dest: '/etc/systemd/system/kalite-serve.service', mode: '0644' } - { src: 'kalite-serve.service.j2', dest: '/etc/systemd/system/kalite-serve.service', mode: '0644' }
# Useless stanza, for 2 reasons: (1) http://box/kalite was never made to work
# (2) /etc/apache2/sites-available does not exist on many IIAB's w/o Apache
# - name: "Install from template: /etc/{{ apache_conf_dir }}/kalite.conf (useless, as http://box/kalite was never made to work)"
# template:
# src: kalite.conf
# dest: "/etc/{{ apache_conf_dir }}" # apache2/sites-available on debuntu
# when: apache_installed is defined
- name: Fix KA Lite bug in regex parsing ifconfig output (ifcfg/parser.py) for @m-anish's network names that contain dashes # WAS: if Raspbian/Debian > 10 or Ubuntu > 19 - name: Fix KA Lite bug in regex parsing ifconfig output (ifcfg/parser.py) for @m-anish's network names that contain dashes # WAS: if Raspbian/Debian > 10 or Ubuntu > 19
replace: replace:
path: "{{ kalite_venv }}/lib/python2.7/site-packages/kalite/packages/dist/ifcfg/parser.py" # /usr/local/kalite/venv path: "{{ kalite_venv }}/lib/python2.7/site-packages/kalite/packages/dist/ifcfg/parser.py" # /usr/local/kalite/venv
regexp: 'a-zA-Z0-9' regexp: 'a-zA-Z0-9'
replace: 'a-zA-Z0-9\-' replace: 'a-zA-Z0-9\-'
#when: not (is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19)
# 2020-03-31: Testing for {is_raspbian_9, is_raspbian_10} is not currently nec, as testing for {is_debian_9, is_debian_10} covers that already.
# JV: why not just is_ubuntu_20? AH: to make this work on Ubuntu 21+ and ideally Debian/RasPiOS 11+ too?
# - name: Fix KA Lite bug in regex parsing ifconfig output (ifcfg/parser.py) for @m-anish's network names that contain dashes, if Raspbian/Debian < 11 or Ubuntu < 20
# replace:
# path: "{{ kalite_venv }}/local/lib/python2.7/site-packages/kalite/packages/dist/ifcfg/parser.py"
# regexp: 'a-zA-Z0-9'
# replace: 'a-zA-Z0-9\-'
# when: is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19
# # 2020-03-31: Testing for {is_raspbian_9, is_raspbian_10} is not currently nec, as testing for {is_debian_9, is_debian_10} covers that already.
- name: Create dir {{ kalite_root }} - name: Create dir {{ kalite_root }}
file: file:
@ -90,6 +86,17 @@
# RECORD KA Lite AS INSTALLED # RECORD KA Lite AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'kalite_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: kalite
option: kalite_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'kalite_installed: True'" - name: "Set 'kalite_installed: True'"
set_fact: set_fact:
kalite_installed: True kalite_installed: True

View file

@ -14,7 +14,7 @@ Locations
- Your ZIM files go in ``/library/zims/content`` - Your ZIM files go in ``/library/zims/content``
- Your ZIM index files used to go in directories under ``/library/zims/index`` (these index files are increasingly no longer necessary, as most ZIM files produced since 2017 contain an internal search index instead!) - Your ZIM index files used to go in directories under ``/library/zims/index`` (these index files are increasingly no longer necessary, as most ZIM files produced since 2017 contain an internal search index instead!)
- The URL is http://box/kiwix or http://box.lan/kiwix (both proxied for AWStats) - The URL is http://box/kiwix or http://box.lan/kiwix (both proxied for AWStats, Matomo, ETC)
- Use URL http://box:3000/kiwix if you want to avoid the proxy - Use URL http://box:3000/kiwix if you want to avoid the proxy
Your ``/library/zims/library.xml`` (containing essential metadata for the ZIM files you've installed) can be regenerated if necessary, by running: Your ``/library/zims/library.xml`` (containing essential metadata for the ZIM files you've installed) can be regenerated if necessary, by running:

View file

@ -8,11 +8,11 @@
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
# INSTRUCTIONS TO REINSTALL Kiwix: # ONLINE UPGRADE INSTRUCTIONS:
# (1) VERIFY THESE VARS IN /etc/iiab/local_vars.yml # (1) VERIFY VARS IN /etc/iiab/local_vars.yml
# kiwix_install: True # kiwix_install: True
# kiwix_enabled: True # kiwix_enabled: True
# (2) RUN: cd /opt/iiab/iiab; ./runrole --reinstall kiwix # (2) RUN: cd /opt/iiab/iiab; sudo ./runrole --reinstall kiwix
# FYI /library/zims contains 3 important things: # FYI /library/zims contains 3 important things:
@ -25,13 +25,13 @@ kiwix_base_url: https://download.kiwix.org/release/kiwix-tools/
#kiwix_base_url: https://download.kiwix.org/nightly/2022-10-04/ #kiwix_base_url: https://download.kiwix.org/nightly/2022-10-04/
#kiwix_base_url: "{{ iiab_download_url }}/" # e.g. https://download.iiab.io/packages/ #kiwix_base_url: "{{ iiab_download_url }}/" # e.g. https://download.iiab.io/packages/
kiwix_arch_dict: kiwix_arch_dict: # 'dpkg --print-architecture' key would be: (to mitigate #3516 in future, if truly nec?)
#i386: #i386: # ?
i686: i586 i686: i586 # ?
x86_64: x86_64 x86_64: x86_64 # amd64
armv6l: armhf armv6l: armv6 # armhf
armv7l: armhf armv7l: armv8 # armhf BEWARE: armhf version of kiwix-tools suddenly FAILS on 64-bit RasPiOS, since 3.5.0 released 2023-04-28 -- #3574, PR #3576
aarch64: armhf aarch64: aarch64 # arm64 BEWARE: "32-bit" RasPiOS suddenly boots 64-bit kernel since March 2023 -- #3516, explained at https://github.com/iiab/iiab/pull/3422#issuecomment-1533441463
# ansible_architecture might also work, if not quite as well: # ansible_architecture might also work, if not quite as well:
# https://stackoverflow.com/questions/66828315/what-is-the-difference-between-ansible-architecture-and-ansible-machine-on-a/66828837#66828837 # https://stackoverflow.com/questions/66828315/what-is-the-difference-between-ansible-architecture-and-ansible-machine-on-a/66828837#66828837
@ -42,6 +42,7 @@ kiwix_arch: "{{ kiwix_arch_dict[ansible_machine] | default('unsupported') }}"
# Latest official kiwix-tools release, per Kiwix permalink redirects: # Latest official kiwix-tools release, per Kiwix permalink redirects:
# https://www.kiwix.org/en/downloads/kiwix-serve/ # https://www.kiwix.org/en/downloads/kiwix-serve/
# https://github.com/kiwix/container-images/issues/236 # https://github.com/kiwix/container-images/issues/236
# https://github.com/kiwix/kiwix-tools/issues/623
kiwix_tar_gz: "kiwix-tools_linux-{{ kiwix_arch }}.tar.gz" kiwix_tar_gz: "kiwix-tools_linux-{{ kiwix_arch }}.tar.gz"
#kiwix_tar_gz: "kiwix-tools_linux-{{ kiwix_arch }}-3.3.0-1.tar.gz" # Version can be hard-coded if you prefer (as was done til 2022-10-04) #kiwix_tar_gz: "kiwix-tools_linux-{{ kiwix_arch }}-3.3.0-1.tar.gz" # Version can be hard-coded if you prefer (as was done til 2022-10-04)

View file

@ -6,6 +6,11 @@
when: kiwix_arch == "unsupported" when: kiwix_arch == "unsupported"
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
# 1. PUT IN PLACE: /opt/iiab/downloads/kiwix-tools_linux-*.tar.gz, move /opt/iiab/kiwix/bin aside if nec, create essential dirs, and test.zim if nec (library.xml is created later, by enable-or-disable.yml) # 1. PUT IN PLACE: /opt/iiab/downloads/kiwix-tools_linux-*.tar.gz, move /opt/iiab/kiwix/bin aside if nec, create essential dirs, and test.zim if nec (library.xml is created later, by enable-or-disable.yml)
# 2022-10-04: get_url might be removed in future (unarchive below can handle # 2022-10-04: get_url might be removed in future (unarchive below can handle
@ -19,6 +24,24 @@
timeout: "{{ download_timeout }}" timeout: "{{ download_timeout }}"
register: kiwix_dl # PATH /opt/iiab/downloads + ACTUAL filename put in kiwix_dl.dest, for unarchive ~28 lines below register: kiwix_dl # PATH /opt/iiab/downloads + ACTUAL filename put in kiwix_dl.dest, for unarchive ~28 lines below
# - name: "2023-05-14: TEMPORARY PATCH REVERTING TO KIWIX-TOOLS 3.4.0 IF BUGGY 32-BIT (armhf) VERSION 3.5.0 IS DETECTED -- #3574"
# get_url:
# url: https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-armhf-3.4.0.tar.gz
# dest: "{{ downloads_dir }}"
# timeout: "{{ download_timeout }}"
# #register: kiwix_dl # CLOBBERS kiwix_dl.dest WHEN THIS STANZA DOES NOT RUN :/
# when: kiwix_dl.dest == "/opt/iiab/downloads/kiwix-tools_linux-armhf-3.5.0.tar.gz"
#
# # Ansible does not allow changing individuals subfields in a dictionary, but
# # this crude hack works, overwriting the entire kiwix_dl dictionary var with
# # the single (needed) key/value pair. (Or "register: tmp_dl" could be set
# # above, if its other [subfields, key/value pairs, etc] really mattered...)
# - name: "2023-05-15: TEMPORARY PATCH REVERTING TO KIWIX-TOOLS 3.4.0 IF BUGGY 32-BIT (armhf) VERSION 3.5.0 IS DETECTED -- #3574"
# set_fact:
# kiwix_dl:
# dest: /opt/iiab/downloads/kiwix-tools_linux-armhf-3.4.0.tar.gz
# when: kiwix_dl.dest == "/opt/iiab/downloads/kiwix-tools_linux-armhf-3.5.0.tar.gz"
- name: Does {{ kiwix_path }}/bin already exist? (as a directory, symlink or file) - name: Does {{ kiwix_path }}/bin already exist? (as a directory, symlink or file)
stat: stat:
path: "{{ kiwix_path }}/bin" # /opt/iiab/kiwix path: "{{ kiwix_path }}/bin" # /opt/iiab/kiwix
@ -58,6 +81,8 @@
src: "{{ kiwix_dl.dest }}" # See ~28 lines above, e.g. /opt/iiab/downloads/kiwix-tools_linux-x86_64-3.3.0-1.tar.gz src: "{{ kiwix_dl.dest }}" # See ~28 lines above, e.g. /opt/iiab/downloads/kiwix-tools_linux-x86_64-3.3.0-1.tar.gz
dest: "{{ kiwix_path }}/bin" dest: "{{ kiwix_path }}/bin"
extra_opts: --strip-components=1 extra_opts: --strip-components=1
owner: root # 2023-05-14: When unpacking let's avoid bogus owner/group,
group: root # arising from UID/GID on Kiwix's build machine.
# 3. ENABLE MODS FOR APACHE PROXY IF DEBUNTU # 3. ENABLE MODS FOR APACHE PROXY IF DEBUNTU
@ -98,6 +123,17 @@
# 5. RECORD Kiwix AS INSTALLED # 5. RECORD Kiwix AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'kiwix_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: kiwix
option: kiwix_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'kiwix_installed: True'" - name: "Set 'kiwix_installed: True'"
set_fact: set_fact:
kiwix_installed: True kiwix_installed: True

View file

@ -24,7 +24,7 @@ Please look in `/opt/iiab/iiab/roles/kolibri/defaults/main.yml <defaults/main.ym
Automatic Device Provisioning Automatic Device Provisioning
----------------------------- -----------------------------
When kolibri_provision is enabled (e.g. in `/etc/iiab/local_vars.yml <http://FAQ.IIAB.IO#What_is_local_vars.yml_and_how_do_I_customize_it.3F>`_) the installation will set up the following defaults:: When kolibri_provision is enabled (e.g. in `/etc/iiab/local_vars.yml <http://FAQ.IIAB.IO#What_is_local_vars.yml_and_how_do_I_customize_it%3F>`_) the installation will set up the following defaults::
kolibri_facility: Kolibri-in-a-Box kolibri_facility: Kolibri-in-a-Box
kolibri_language: en # See KOLIBRI_SUPPORTED_LANGUAGES at the bottom of https://github.com/learningequality/kolibri/blob/develop/kolibri/utils/i18n.py kolibri_language: en # See KOLIBRI_SUPPORTED_LANGUAGES at the bottom of https://github.com/learningequality/kolibri/blob/develop/kolibri/utils/i18n.py

View file

@ -3,11 +3,21 @@
# kolibri_language: en # See KOLIBRI_SUPPORTED_LANGUAGES at the bottom of https://github.com/learningequality/kolibri/blob/develop/kolibri/utils/i18n.py # kolibri_language: en # See KOLIBRI_SUPPORTED_LANGUAGES at the bottom of https://github.com/learningequality/kolibri/blob/develop/kolibri/utils/i18n.py
# Kolibri folder to store its data and configuration files.
# kolibri_home: "{{ content_base }}/kolibri" # /library/kolibri
# kolibri_user: kolibri # Whereas a vanilla install of Kolibri auto-identifies
# and saves a 'desktop-like' user like {iiab-admin, pi} to /etc/kolibri/username
# (generally the user with lowest UID >= 1000) to allow access to USB devices:
# https://kolibri.readthedocs.io/en/latest/install/ubuntu-debian.html#changing-the-owner-of-kolibri-system-service
# https://github.com/learningequality/kolibri-installer-debian/issues/115
# kolibri_http_port: 8009 # kolibri_http_port: 8009
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml # All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
# 2019-09-27: Pinning to a particular version is unfortunately NOT supported # 2019-09-27: Pinning to a particular version is unfortunately NOT supported
# with our new apt approach (.deb installer) at this time. # with our new apt approach (.deb installer) at this time.
# 2019-06-21: Uncomment this pinning line if you want a particular version of # 2019-06-21: Uncomment this pinning line if you want a particular version of
@ -16,8 +26,12 @@
# https://github.com/iiab/iiab/issues/1675 # https://github.com/iiab/iiab/issues/1675
# https://github.com/learningequality/kolibri/issues/5664 # https://github.com/learningequality/kolibri/issues/5664
# 2022-07-30: UNCOMMENT THE FOLLOWING LINE TO TEST A PARTICULAR .deb INSTALL # 2024-04-08: Kolibri 0.16.1+ restores install via apt
# https://github.com/learningequality/kolibri/issues/11892#issuecomment-2043073998
# 2022-07-30: UNCOMMENT ONE OF THE FOLLOWING LINES TO TEST A PARTICULAR .deb INSTALL
# kolibri_deb_url: https://learningequality.org/r/kolibri-deb-latest # kolibri_deb_url: https://learningequality.org/r/kolibri-deb-latest
# 2024-02-17: https://github.com/learningequality/kolibri/issues/11892
# kolibri_deb_url: https://learningequality.org/r/kolibri-deb-next
# 2019-11-21 issue #2045 - above URL had redirected to this broken Kolibri 0.12.9 release: # 2019-11-21 issue #2045 - above URL had redirected to this broken Kolibri 0.12.9 release:
# https://storage.googleapis.com/le-releases/downloads/kolibri/v0.12.9/kolibri_0.12.9-0ubuntu1_all.deb # https://storage.googleapis.com/le-releases/downloads/kolibri/v0.12.9/kolibri_0.12.9-0ubuntu1_all.deb
# #
@ -30,19 +44,11 @@
# Corresponding to: # Corresponding to:
# https://launchpad.net/~learningequality/+archive/ubuntu/kolibri # https://launchpad.net/~learningequality/+archive/ubuntu/kolibri
# Kolibri folder to store its data and configuration files.
kolibri_home: "{{ content_base }}/kolibri" # /library/kolibri
kolibri_url_without_slash: /kolibri kolibri_url_without_slash: /kolibri
kolibri_url: "{{ kolibri_url_without_slash }}/" # /kolibri/ kolibri_url: "{{ kolibri_url_without_slash }}/" # /kolibri/
kolibri_exec_path: /usr/bin/kolibri kolibri_exec_path: /usr/bin/kolibri
kolibri_user: kolibri # Whereas a vanilla install of Kolibri auto-identifies
# and saves a 'desktop' user like {iiab-admin, pi} to /etc/kolibri/username,
# towards guaranteeing access to USB devices, per:
# https://kolibri.readthedocs.io/en/latest/install.html#changing-the-owner-of-kolibri-system-service
# To populate /library/kolibri with essential/minimum files and dirs. This # To populate /library/kolibri with essential/minimum files and dirs. This
# provisions Kolibri with facility name, admin acnt / password, preset type, # provisions Kolibri with facility name, admin acnt / password, preset type,
# and language. You can set this to 'False' when reinstalling Kolibri: # and language. You can set this to 'False' when reinstalling Kolibri:

View file

@ -4,16 +4,40 @@
# https://github.com/learningequality/pi-gen/blob/master/stage2/04-hostapd/offline.yml # https://github.com/learningequality/pi-gen/blob/master/stage2/04-hostapd/offline.yml
# https://github.com/learningequality/pi-gen/blob/master/stage2/04-hostapd/online.yml # https://github.com/learningequality/pi-gen/blob/master/stage2/04-hostapd/online.yml
# Install Kolibri » Debian/Ubuntu
# https://kolibri.readthedocs.io/en/latest/install/ubuntu-debian.html
# Advanced management
# https://kolibri.readthedocs.io/en/latest/manage/advanced.html
# Working with Kolibri from the command line
# https://kolibri.readthedocs.io/en/latest/manage/command_line.html
# Customize Kolibri settings with the [ /library/kolibri/options.ini ] file
# https://kolibri.readthedocs.io/en/latest/manage/options_ini.html
# Test Kolibri server performance
# https://kolibri.readthedocs.io/en/latest/manage/performance.html
# Provisioning many servers
# https://kolibri.readthedocs.io/en/latest/install/provision.html
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: Create Linux user {{ kolibri_user }} and add it to groups {{ apache_user }}, disk - name: Create Linux user {{ kolibri_user }} and add it to groups {{ apache_user }}, disk
user: user:
name: "{{ kolibri_user }}" name: "{{ kolibri_user }}"
groups: groups: "{{ apache_user }}" # 2023-03-29: Not really necessary (Kolibri is demonstrated to work without group 'www-data'). But it likely doesn't hurt.
- "{{ apache_user }}" #- disk # 2023-03-29: Tested to be unnec with USB sticks (with 64-bit RasPiOS). FWIW group 'disk' is "Mostly equivalent to root access" according to https://wiki.debian.org/SystemGroups
- disk
state: present state: present
shell: /bin/false shell: /bin/false
system: yes system: yes
create_home: no create_home: no
home: "{{ kolibri_home }}"
- name: Create directory {{ kolibri_home }} for Kolibri content, configuration, sqlite3 databases ({{ kolibri_user }}:{{ apache_user }}, by default 0755) - name: Create directory {{ kolibri_home }} for Kolibri content, configuration, sqlite3 databases ({{ kolibri_user }}:{{ apache_user }}, by default 0755)
file: file:
@ -38,22 +62,13 @@
dest: /etc/kolibri/daemon.conf dest: /etc/kolibri/daemon.conf
- name: apt install latest Kolibri .deb from {{ kolibri_deb_url }} (populates {{ kolibri_home }}, migrates database) # i.e. /library/kolibri # https://kolibri.readthedocs.io/en/latest/install/ubuntu-debian.html claims:
apt:
deb: "{{ kolibri_deb_url }}" # https://learningequality.org/r/kolibri-deb-latest
environment:
KOLIBRI_HOME: "{{ kolibri_home }}" # These don't do a thing for now but
KOLIBRI_USER: "{{ kolibri_user }}" # both can't hurt & Might Help Later
when: kolibri_deb_url is defined
- block: # ELSE...
# https://kolibri.readthedocs.io/en/latest/install/ubuntu-debian.html says:
# "When you use the PPA installation method, upgrades to newer versions # "When you use the PPA installation method, upgrades to newer versions
# will be automatic, provided there is internet access available." # will be automatic, provided there is internet access available."
# #
# IN REALITY: apt upgrading Kolibri is risky, as 3 pink/blue screens prompt # IN REALITY: apt upgrading Kolibri is messy, as up-to-5 debconf screens prompt
# PPL WHO DON'T KNOW TO TYPE IN things like Linux username 'kolibri' :/ #3356 # PPL WHO DON'T KNOW with the wrong default username, instead of 'kolibri' :/
# https://github.com/learningequality/kolibri-installer-debian/pull/117
# 2022-08-31: keyring /etc/apt/trusted.gpg DEPRECATED as detailed on #3343 # 2022-08-31: keyring /etc/apt/trusted.gpg DEPRECATED as detailed on #3343
- name: Download Kolibri's apt key to /usr/share/keyrings/learningequality-kolibri.gpg - name: Download Kolibri's apt key to /usr/share/keyrings/learningequality-kolibri.gpg
@ -61,17 +76,20 @@
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys DC5BAA93F9E4AE4F0411F97C74F88ADB3194DD81 gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys DC5BAA93F9E4AE4F0411F97C74F88ADB3194DD81
gpg --yes --output /usr/share/keyrings/learningequality-kolibri.gpg --export DC5BAA93F9E4AE4F0411F97C74F88ADB3194DD81 gpg --yes --output /usr/share/keyrings/learningequality-kolibri.gpg --export DC5BAA93F9E4AE4F0411F97C74F88ADB3194DD81
- name: Add signed Kolibri PPA 'jammy' (if Ubuntu 22.04+ or Mint 21 or Debian 12) # 2024-06-25: Strongly consider PPA "kolibri-proposed" in future...
# https://github.com/learningequality/kolibri/issues/11892
# https://kolibri.readthedocs.io/en/latest/install/ubuntu-debian.html
- name: Add signed Kolibri PPA 'jammy'
apt_repository: apt_repository:
repo: "deb [signed-by=/usr/share/keyrings/learningequality-kolibri.gpg] http://ppa.launchpad.net/learningequality/kolibri/ubuntu jammy main" repo: "deb [signed-by=/usr/share/keyrings/learningequality-kolibri.gpg] http://ppa.launchpad.net/learningequality/kolibri/ubuntu jammy main"
when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_linuxmint_21 or is_debian_12 # when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_linuxmint_21 or is_debian_12
#when: is_ubuntu_2204 or is_ubuntu_2210 or is_debian_12 # MINT 21 COVERED BY is_ubuntu_2204 # #when: is_ubuntu_2204 or is_ubuntu_2210 or is_debian_12 # MINT 21 COVERED BY is_ubuntu_2204
- name: Add signed Kolibri PPA 'focal' (if other/older OS's) # - name: Add signed Kolibri PPA 'focal' (if other/older OS's)
apt_repository: # apt_repository:
repo: "deb [signed-by=/usr/share/keyrings/learningequality-kolibri.gpg] http://ppa.launchpad.net/learningequality/kolibri/ubuntu focal main" # repo: "deb [signed-by=/usr/share/keyrings/learningequality-kolibri.gpg] http://ppa.launchpad.net/learningequality/kolibri/ubuntu focal main"
when: not (is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_linuxmint_21 or is_debian_12) # when: not (is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_linuxmint_21 or is_debian_12)
#when: not (is_ubuntu_2204 or is_ubuntu_2210 or is_debian_12) # #when: not (is_ubuntu_2204 or is_ubuntu_2210 or is_debian_12)
# - name: Add Kolibri PPA repo 'ppa:learningequality/kolibri' (if is_ubuntu and not is_linuxmint) # - name: Add Kolibri PPA repo 'ppa:learningequality/kolibri' (if is_ubuntu and not is_linuxmint)
# apt_repository: # apt_repository:
@ -106,15 +124,36 @@
# codename: focal # UPDATE THIS TO 'jammy' AFTER "RasPiOS Bookworm" (based on Debian 12) IS RELEASED! (ETA Q3 2023) # codename: focal # UPDATE THIS TO 'jammy' AFTER "RasPiOS Bookworm" (based on Debian 12) IS RELEASED! (ETA Q3 2023)
# when: is_debian or is_linuxmint_20 # when: is_debian or is_linuxmint_20
- name: apt install kolibri (populates {{ kolibri_home }}, migrates database) # i.e. /library/kolibri
# 2024-08-07: Hack no longer needed! As Kolibri 0.17.0 now installs via "kolibri" PPA (https://launchpad.net/~learningequality/+archive/ubuntu/kolibri).
# Hopefully "kolibri-proposed" PPA will install 0.18 pre-releases soon, on Python 3.13 too! https://github.com/learningequality/kolibri/issues/11892
# - name: '2024-06-25 TEMPORARY HACK: Hard code kolibri_deb_url to Kolibri 0.17.x (pre-release or final release) if Python >= 3.12 -- kolibri-proposed PPA should do this automatically in future!'
# set_fact:
# kolibri_deb_url: https://github.com/learningequality/kolibri/releases/download/v0.17.0/kolibri_0.17.0-0ubuntu1_all.deb
# when: python_version is version('3.12', '>=') # For Ubuntu 24.04, Mint 22, pre-releases of Ubuntu 24.10, and Debian 13 (even if/when "Trixie" changes from Python 3.12 to 3.13!) Regarding PPA kolibri-proposed not quite being ready yet, see: learningequality/kolibri#11316 -> learningequality/kolibri#11892
- name: apt install kolibri (using apt source specified above, if kolibri_deb_url ISN'T defined)
apt: apt:
name: kolibri name: kolibri
environment:
KOLIBRI_HOME: "{{ kolibri_home }}" # These don't do a thing for now but
KOLIBRI_USER: "{{ kolibri_user }}" # both can't hurt & Might Help Later
when: kolibri_deb_url is undefined when: kolibri_deb_url is undefined
# environment:
# KOLIBRI_HOME: "{{ kolibri_home }}" # 2023-03-27: These don't do a thing
# KOLIBRI_USER: "{{ kolibri_user }}" # for now.
- name: apt install {{ kolibri_deb_url }} (if kolibri_deb_url IS defined)
apt:
deb: "{{ kolibri_deb_url }}" # e.g. https://learningequality.org/r/kolibri-deb-latest
when: kolibri_deb_url is defined
# environment:
# KOLIBRI_HOME: "{{ kolibri_home }}" # 2023-03-27: These don't do a thing
# KOLIBRI_USER: "{{ kolibri_user }}" # for now.
- name: Run 'rm -rf /root/.kolibri' to remove "unavoidable" pollution created above
file:
state: absent
path: /root/.kolibri
- name: 'Install from template: /etc/systemd/system/kolibri.service' - name: 'Install from template: /etc/systemd/system/kolibri.service'
template: template:
@ -123,8 +162,8 @@
- name: Stop 'kolibri' systemd service, for Kolibri provisioning (after daemon_reload) - name: Stop 'kolibri' systemd service, for Kolibri provisioning (after daemon_reload)
systemd: systemd:
name: kolibri
daemon_reload: yes daemon_reload: yes
name: kolibri
state: stopped state: stopped
@ -145,9 +184,13 @@
# become_user: "{{ kolibri_user }}" # become_user: "{{ kolibri_user }}"
# when: kolibri_provision # when: kolibri_provision
# Run "kolibri manage help provisiondevice" to see CLI options, e.g.:
# --facility_settings FACILITY_SETTINGS
# JSON file containing facility settings
# --device_settings DEVICE_SETTINGS
# JSON file containing device settings
- name: 'Provision Kolibri, while setting: facility name, admin acnt / password, preset type, and language' - name: 'Provision Kolibri, while setting: facility name, admin acnt / password, preset type, and language'
shell: > shell: >
export KOLIBRI_HOME="{{ kolibri_home }}" &&
"{{ kolibri_exec_path }}" manage provisiondevice --facility "{{ kolibri_facility }}" "{{ kolibri_exec_path }}" manage provisiondevice --facility "{{ kolibri_facility }}"
--superusername "{{ kolibri_admin_user }}" --superuserpassword "{{ kolibri_admin_password }}" --superusername "{{ kolibri_admin_user }}" --superuserpassword "{{ kolibri_admin_password }}"
--preset "{{ kolibri_preset }}" --language_id "{{ kolibri_language }}" --preset "{{ kolibri_preset }}" --language_id "{{ kolibri_language }}"
@ -156,15 +199,22 @@
become: yes become: yes
become_user: "{{ kolibri_user }}" become_user: "{{ kolibri_user }}"
when: kolibri_provision when: kolibri_provision
environment:
KOLIBRI_HOME: "{{ kolibri_home }}" # 2023-03-27: Required!
#KOLIBRI_USER: "{{ kolibri_user }}" # 2023-03-27: Not nec due to /etc/kolibri/username ?
- name: chown -R {{ kolibri_user }}:{{ apache_user }} {{ kolibri_home }} for good measure?
file:
path: "{{ kolibri_home }}" # /library/kolibri
owner: "{{ kolibri_user }}" # kolibri
group: "{{ apache_user }}" # www-data (on Debian/Ubuntu/Raspbian)
recurse: yes
when: kolibri_provision
# 2023-03-25: Likely overkill (let's strongly consider removing this stanza?)
# Certainly, setting owner (recursively) is advised when moving /library/kolibri :
# https://kolibri.readthedocs.io/en/latest/install/ubuntu-debian.html#changing-the-owner-of-kolibri-system-service
# 2023-03-27: Commented out on a provisional basis (Spring Cleaning)
# - name: chown -R {{ kolibri_user }}:{{ apache_user }} {{ kolibri_home }} for good measure?
# file:
# path: "{{ kolibri_home }}" # /library/kolibri
# owner: "{{ kolibri_user }}" # kolibri
# group: "{{ apache_user }}" # www-data (on Debian/Ubuntu/Raspbian)
# recurse: yes
# when: kolibri_provision
# 2019-10-07: Moved to roles/httpd/tasks/main.yml # 2019-10-07: Moved to roles/httpd/tasks/main.yml
# 2019-09-29: roles/kiwix/tasks/kiwix_install.yml installs 4 Apache modules # 2019-09-29: roles/kiwix/tasks/kiwix_install.yml installs 4 Apache modules
@ -176,6 +226,17 @@
# RECORD Kolibri AS INSTALLED # RECORD Kolibri AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'kolibri_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: kolibri
option: kolibri_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'kolibri_installed: True'" - name: "Set 'kolibri_installed: True'"
set_fact: set_fact:
kolibri_installed: True kolibri_installed: True

View file

@ -2,12 +2,16 @@
# https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52 # https://github.com/iiab/iiab/blob/master/roles/www_base/templates/iiab-refresh-wiki-docs.sh#L51-L52
- name: Install 14 packages for Lokole - name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: Install 12 packages for Lokole
apt: apt:
name: name:
#- python3 # 2022-12-21: IIAB pre-req, see scripts/local_facts.fact #- python3 # 2022-12-21: IIAB pre-req, see scripts/local_facts.fact
- python3-pip #- python3-pip
- python3-venv
- python3-dev - python3-dev
- python3-bcrypt # 2019-10-14: Should work across modern Linux OS's - python3-bcrypt # 2019-10-14: Should work across modern Linux OS's
#- bcrypt does not exist on Ubuntu 19.10 #- bcrypt does not exist on Ubuntu 19.10
@ -134,6 +138,17 @@
# RECORD Lokole AS INSTALLED # RECORD Lokole AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'lokole_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: lokole
option: lokole_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'lokole_installed: True'" - name: "Set 'lokole_installed: True'"
set_fact: set_fact:
lokole_installed: True lokole_installed: True

View file

@ -4,7 +4,7 @@ https://matomo.org/[Matomo] is a web analytics alternative to Google Analytics,
== Install it == Install it
Prior to installing Matomo with IIAB, the default URL (http://box.lan/matomo) can be customized in https://wiki.iiab.io/go/FAQ#What_is_local_vars.yml_and_how_do_I_customize_it.3F[/etc/iiab/local_vars.yml] Prior to installing Matomo with IIAB, the default URL (http://box.lan/matomo) can be customized in https://wiki.iiab.io/go/FAQ#What_is_local_vars.yml_and_how_do_I_customize_it%3F[/etc/iiab/local_vars.yml]
One way to do that is by changing these 2 lines: One way to do that is by changing these 2 lines:

View file

@ -12,6 +12,26 @@
# fatal: [127.0.0.1]: FAILED! => {"cache_control": "private, no-cache, no-store", "changed": false, "connection": "close", "content_type": "text/html; charset=utf-8", "date": "Wed, 15 Jun 2022 05:07:41 GMT", "elapsed": 0, "expires": "Thu, 19 Nov 1981 08:52:00 GMT", "msg": "Status code was 500 and not [200]: HTTP Error 500: Internal Server Error", "pragma": "no-cache", "redirected": false, "server": "nginx/1.18.0 (Ubuntu)", "set_cookie": "MATOMO_SESSID=psak3aem27vrdrt8t2f016600f; path=/; HttpOnly; SameSite=Lax", "status": 500, "transfer_encoding": "chunked", "url": "http://box.lan/matomo/index.php?action=welcome", "x_matomo_request_id": "fbfd2"} # fatal: [127.0.0.1]: FAILED! => {"cache_control": "private, no-cache, no-store", "changed": false, "connection": "close", "content_type": "text/html; charset=utf-8", "date": "Wed, 15 Jun 2022 05:07:41 GMT", "elapsed": 0, "expires": "Thu, 19 Nov 1981 08:52:00 GMT", "msg": "Status code was 500 and not [200]: HTTP Error 500: Internal Server Error", "pragma": "no-cache", "redirected": false, "server": "nginx/1.18.0 (Ubuntu)", "set_cookie": "MATOMO_SESSID=psak3aem27vrdrt8t2f016600f; path=/; HttpOnly; SameSite=Lax", "status": 500, "transfer_encoding": "chunked", "url": "http://box.lan/matomo/index.php?action=welcome", "x_matomo_request_id": "fbfd2"}
- name: "Set 'mysql_install: True' and 'mysql_enabled: True'"
set_fact:
mysql_install: True
mysql_enabled: True
- name: MYSQL - run 'mysql' role (attempt to install & enable MySQL / MariaDB)
include_role:
name: mysql
- name: FAIL (STOP THE INSTALL) IF 'mysql_installed is undefined'
fail:
msg: "Matomo install cannot proceed, as MySQL / MariaDB is not installed."
when: mysql_installed is undefined
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
# https://matomo.org/faq/on-premise/matomo-requirements/ # https://matomo.org/faq/on-premise/matomo-requirements/
- name: Install Matomo's recommended PHP extensions - name: Install Matomo's recommended PHP extensions
package: package:
@ -47,7 +67,7 @@
priv: "{{ matomo_db_name }}.*:ALL" priv: "{{ matomo_db_name }}.*:ALL"
#login_unix_socket: /var/run/mysqld/mysqld.sock #login_unix_socket: /var/run/mysqld/mysqld.sock
- name: Download and Extract Matomo (~1 min) - name: Download and Extract Matomo (~3 min)
unarchive: unarchive:
src: "{{ matomo_dl_url }}" # e.g. https://builds.matomo.org/matomo.tar.gz src: "{{ matomo_dl_url }}" # e.g. https://builds.matomo.org/matomo.tar.gz
dest: "{{ matomo_path }}" # e.g. /library/www dest: "{{ matomo_path }}" # e.g. /library/www
@ -239,6 +259,17 @@
# RECORD Matomo AS INSTALLED # RECORD Matomo AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'matomo_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: matomo
option: matomo_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'matomo_installed: True'" - name: "Set 'matomo_installed: True'"
set_fact: set_fact:
matomo_installed: True matomo_installed: True

View file

@ -21,7 +21,7 @@
- block: - block:
- name: Enable/Disable/Reload NGINX for OSM, if nginx_enabled - name: Enable/Disable/Reload NGINX for Matomo
include_tasks: nginx.yml include_tasks: nginx.yml
- name: Install Matomo if 'matomo_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml - name: Install Matomo if 'matomo_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml

View file

@ -1,10 +1,10 @@
- name: Enable http://box/maps & http://box/matomo via NGINX, by installing {{ nginx_conf_dir }}/matomo-nginx.conf from template - name: Enable http://box/matomo via NGINX, by installing {{ nginx_conf_dir }}/matomo-nginx.conf from template
template: template:
src: matomo-nginx.conf.j2 src: matomo-nginx.conf.j2
dest: "{{ nginx_conf_dir }}/matomo-nginx.conf" # /etc/nginx/conf.d dest: "{{ nginx_conf_dir }}/matomo-nginx.conf" # /etc/nginx/conf.d
when: matomo_enabled when: matomo_enabled
- name: Disable http://box/maps & http://box/matomo via NGINX, by removing {{ nginx_conf_dir }}/matomo-nginx.conf - name: Disable http://box/matomo via NGINX, by removing {{ nginx_conf_dir }}/matomo-nginx.conf
file: file:
path: "{{ nginx_conf_dir }}/matomo-nginx.conf" # /etc/nginx/conf.d path: "{{ nginx_conf_dir }}/matomo-nginx.conf" # /etc/nginx/conf.d
state: absent state: absent

View file

@ -1,3 +1,5 @@
location ~ ^/matomo/(config|tmp|core|lang) { deny all; return 403; }
location ~ ^/matomo(.*)\.php(.*)$ { location ~ ^/matomo(.*)\.php(.*)$ {
alias /library/www/matomo$1.php$2; # /library/www/matomo alias /library/www/matomo$1.php$2; # /library/www/matomo
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;

View file

@ -4,7 +4,7 @@
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml # All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
mediawiki_major_version: 1.39 # "1.35" also works mediawiki_major_version: "1.43" # "1.40" quotes nec if trailing zero
mediawiki_minor_version: 0 mediawiki_minor_version: 0
mediawiki_version: "{{ mediawiki_major_version }}.{{ mediawiki_minor_version }}" mediawiki_version: "{{ mediawiki_major_version }}.{{ mediawiki_minor_version }}"

View file

@ -1,3 +1,23 @@
- name: "Set 'mysql_install: True' and 'mysql_enabled: True'"
set_fact:
mysql_install: True
mysql_enabled: True
- name: MYSQL - run 'mysql' role (attempt to install & enable MySQL / MariaDB)
include_role:
name: mysql
- name: FAIL (STOP THE INSTALL) IF 'mysql_installed is undefined'
fail:
msg: "MediaWiki install cannot proceed, as MySQL / MariaDB is not installed."
when: mysql_installed is undefined
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
# https://www.mediawiki.org/wiki/Manual:Installation_requirements#PHP # https://www.mediawiki.org/wiki/Manual:Installation_requirements#PHP
- name: 'Install packages: php{{ php_version }}-intl, php{{ php_version }}-mbstring, php{{ php_version }}-xml' - name: 'Install packages: php{{ php_version }}-intl, php{{ php_version }}-mbstring, php{{ php_version }}-xml'
package: package:
@ -95,6 +115,17 @@
# RECORD MediaWiki AS INSTALLED # RECORD MediaWiki AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'mediawiki_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: mediawiki
option: mediawiki_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'mediawiki_installed: True'" - name: "Set 'mediawiki_installed: True'"
set_fact: set_fact:
mediawiki_installed: True mediawiki_installed: True

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: Check for Minetest world file ({{ minetest_world_dir }}/world.mt) - name: Check for Minetest world file ({{ minetest_world_dir }}/world.mt)
stat: stat:
path: "{{ minetest_world_dir }}/world.mt" path: "{{ minetest_world_dir }}/world.mt"
@ -7,9 +12,6 @@
file: file:
state: directory state: directory
path: /library/games path: /library/games
# owner: root
# group: root
# mode: '0755'
- include_tasks: minetest_install.yml - include_tasks: minetest_install.yml
when: not minetest_world.stat.exists when: not minetest_world.stat.exists
@ -35,8 +37,20 @@
url: https://content.minetest.net/packages/sfan5/worldedit/releases/13367/download/ url: https://content.minetest.net/packages/sfan5/worldedit/releases/13367/download/
when: minetest_default_game == "minetest" when: minetest_default_game == "minetest"
# RECORD Minetest AS INSTALLED # RECORD Minetest AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'minetest_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: minetest
option: minetest_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'minetest_installed: True'" - name: "Set 'minetest_installed: True'"
set_fact: set_fact:
minetest_installed: True minetest_installed: True

View file

@ -20,7 +20,18 @@
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml # All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
mongodb_64bit_version: 6.0 # 2022-10-23: 4.4 fails on Debian 12 x86_64: mongodb_arch_dict:
armv6l: unsupported # WAS: 3.0
armv7l: unsupported # WAS: 3.0
aarch64: 5.0
i386: unsupported
x86_64: 6.0
mongodb_version: "{{ mongodb_arch_dict[ansible_machine] | default('unknown') }}" # A bit safer than ansible_architecture (see kiwix/defaults/main.yml)
#mongodb_arm64_version: 5.0 # 2023-02-24: MongoDB 6.0.4 fails to install on
# # 64-bit RasPiOS 11, as it doesn't offer libssl3.
#mongodb_amd64_version: 6.0 # 2022-10-23: 4.4 fails on Debian 12 x86_64:
# "No package matching 'mongodb-org' is available". 5.0+ fail on "pre-2011" # "No package matching 'mongodb-org' is available". 5.0+ fail on "pre-2011"
# CPU's w/o AVX, and on RPi due to MongoDB compiling these for v8.2-A (RPi 4 is # CPU's w/o AVX, and on RPi due to MongoDB compiling these for v8.2-A (RPi 4 is
# ARM v8-A). SO IIAB ALWAYS OVERLAYS andyfelong.com's 5.0.5 IF 5.0+ SPECIFIED. # ARM v8-A). SO IIAB ALWAYS OVERLAYS andyfelong.com's 5.0.5 IF 5.0+ SPECIFIED.

View file

@ -1,8 +1,14 @@
# MongoDB Install Docs: # MongoDB Install Docs:
# https://www.mongodb.com/community/forums/t/installing-mongodb-over-ubuntu-22-04/159931/90
# https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/ # https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/
# https://www.mongodb.com/docs/manual/installation/ # https://www.mongodb.com/docs/manual/installation/
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
# 1. INSTALL MongoDB PACKAGES AND/OR BINARIES # 1. INSTALL MongoDB PACKAGES AND/OR BINARIES
# 2019-02-02: Sugarizer with Node.js 10.x requires MongoDB 2.6+ so # 2019-02-02: Sugarizer with Node.js 10.x requires MongoDB 2.6+ so
@ -15,71 +21,83 @@
# CLARIF: mongodb_stretch_3_0_14_core.zip IS IN FACT 3.0.14 (core) BUT... # CLARIF: mongodb_stretch_3_0_14_core.zip IS IN FACT 3.0.14 (core) BUT...
# mongodb_stretch_3_0_14_tools.zip IS REALLY 3.0.15 (tools) # mongodb_stretch_3_0_14_tools.zip IS REALLY 3.0.15 (tools)
- block: # - debug:
- name: Create dir /tmp/mongodb-3.0.1x (aarch32) # msg: '9-STANZA BLOCK BELOW, RUNS *IF* 32-BIT -- i.e. not (ansible_architecture == "aarch64" or ansible_architecture == "x86_64") -- WILL LIKELY BE REMOVED SOON IN 2023, as MongoDB 3.0.1 is insufficient for Sugarizer Server 1.5.0''s new MongoDB 3.2+ REQUIREMENT: https://github.com/iiab/iiab/pull/3478#issuecomment-1444395170'
file:
path: /tmp/mongodb-3.0.1x
state: directory
- name: Download & unzip 20MB https://download.iiab.io/packages/mongodb_stretch_3_0_14_core.zip to /tmp/mongodb-3.0.1x (aarch32) # - block:
unarchive: # - name: Create dir /tmp/mongodb-3.0.1x (aarch32)
remote_src: yes # file:
src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_core.zip" # https://download.iiab.io/packages # path: /tmp/mongodb-3.0.1x
dest: /tmp/mongodb-3.0.1x # state: directory
- name: Install (move) its 3 CORE binaries from /tmp/mongodb-3.0.1x/core to /usr/bin (aarch32) # - name: Download & unzip 20MB https://download.iiab.io/packages/mongodb_stretch_3_0_14_core.zip to /tmp/mongodb-3.0.1x (aarch32)
shell: mv /tmp/mongodb-3.0.1x/core/* /usr/bin # unarchive:
# remote_src: yes
# src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_core.zip" # https://download.iiab.io/packages
# dest: /tmp/mongodb-3.0.1x
- name: Download & unzip 15MB https://download.iiab.io/packages/mongodb_stretch_3_0_14_tools.zip [IN FACT THIS ONE'S 3.0.15] to /tmp/mongodb-3.0.1x (aarch32) # - name: Install (move) its 3 CORE binaries from /tmp/mongodb-3.0.1x/core to /usr/bin (aarch32)
unarchive: # shell: mv /tmp/mongodb-3.0.1x/core/* /usr/bin
remote_src: yes
src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_tools.zip"
dest: /tmp/mongodb-3.0.1x
- name: Install (move) its 9 TOOLS binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (aarch32) # - name: Download & unzip 15MB https://download.iiab.io/packages/mongodb_stretch_3_0_14_tools.zip [IN FACT THIS ONE'S 3.0.15] to /tmp/mongodb-3.0.1x (aarch32)
shell: mv /tmp/mongodb-3.0.1x/tools/* /usr/bin # unarchive:
# remote_src: yes
# src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_tools.zip"
# dest: /tmp/mongodb-3.0.1x
- name: Create Linux group mongodb (aarch32) # - name: Install (move) its 9 TOOLS binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (aarch32)
group: # shell: mv /tmp/mongodb-3.0.1x/tools/* /usr/bin
name: mongodb
state: present
- name: Create Linux user mongodb (aarch32) # - name: Create Linux group mongodb (aarch32)
user: # group:
name: mongodb # name: mongodb
group: mongodb # primary group # state: present
groups: mongodb
home: /var/lib/mongodb
shell: /usr/sbin/nologin
- name: Install {{ mongodb_conf }} from template (aarch32) # - name: Create Linux user mongodb (aarch32)
template: # user:
src: mongod.conf.j2 # name: mongodb
dest: "{{ mongodb_conf }}" # /etc/mongod.conf # group: mongodb # primary group
# groups: mongodb
# home: /var/lib/mongodb
# shell: /usr/sbin/nologin
- name: 'Create 2 dirs: /var/lib/mongodb, /var/log/mongodb (mongodb:mongodb)' # - name: Install {{ mongodb_conf }} from template (aarch32)
file: # template:
state: directory # src: mongod.conf.j2
path: "{{ item }}" # dest: "{{ mongodb_conf }}" # /etc/mongod.conf
owner: mongodb
group: mongodb
with_items:
- /var/lib/mongodb
- /var/log/mongodb
# end block # - name: 'Create 2 dirs: /var/lib/mongodb, /var/log/mongodb (mongodb:mongodb)'
when: not (ansible_architecture == "x86_64" or ansible_architecture == "aarch64") # file:
# state: directory
# path: "{{ item }}"
# owner: mongodb
# group: mongodb
# with_items:
# - /var/lib/mongodb
# - /var/log/mongodb
# 32-bit OS's are handled above: this should handle aarch32 including 32-bit # # end block
# when: not (ansible_architecture == "x86_64" or ansible_architecture == "aarch64") # ansible_machine is a bit safer than ansible_architecture (see kiwix/defaults/main.yml)
# - debug:
# msg: 9-STANZA BLOCK ABOVE, RAN *IF* 32-BIT -- i.e. not (ansible_architecture == "aarch64" or ansible_architecture == "x86_64")
# 32-bit OS's [WERE] handled above: this should handle aarch32 including 32-bit
# Ubuntu from https://ubuntu.com/download/raspberry-pi but Ubuntu 20.04+ and # Ubuntu from https://ubuntu.com/download/raspberry-pi but Ubuntu 20.04+ and
# 22.04+ 32-bit might fail untested, and 32-bit Intel might puke as this was # 22.04+ 32-bit might fail untested, and 32-bit Intel might puke as this was
# orginally deployed for Raspbian. (Haven't seen bootable 32-bit Intel # orginally deployed for Raspbian. (Haven't seen bootable 32-bit Intel
# installers for a while now.) 64-bit OS's proceed below. # installers for a while now.) 64-bit OS's proceed below.
- block:
- name: Add mongodb.org signing key (only 64-bit support available) for MongoDB version {{ mongodb_64bit_version }} # - debug:
shell: wget -qO - https://www.mongodb.org/static/pgp/server-{{ mongodb_64bit_version }}.asc | apt-key add - # msg: 16-STANZA BLOCK BELOW, RUNS *IF* 64-BIT -- i.e. ansible_architecture == "aarch64" or ansible_architecture == "x86_64"
#shell: wget -qO - https://pgp.mongodb.com/server-{{ mongodb_64bit_version }}.asc | apt-key add -
# - block:
- name: Add mongodb.org signing key (only 64-bit available) for MongoDB version {{ mongodb_version }}
# https://www.mongodb.com/community/forums/t/installing-mongodb-over-ubuntu-22-04/159931/90
shell: wget -qO - https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc | gpg --dearmor > /usr/share/keyrings/mongodb.gpg
#shell: wget -qO - https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc | apt-key add -
#shell: wget -qO - https://pgp.mongodb.com/server-{{ mongodb_version }}.asc | apt-key add -
#args: #args:
# warn: no # warn: no
# Ansible 2.14 ERROR: # Ansible 2.14 ERROR:
@ -87,28 +105,48 @@
# Supported parameters include: removes, strip_empty_ends, _raw_params, # Supported parameters include: removes, strip_empty_ends, _raw_params,
# _uses_shell, stdin_add_newline, creates, chdir, executable, argv, stdin." # _uses_shell, stdin_add_newline, creates, chdir, executable, argv, stdin."
# 2022-10-23: MongoDB only allows auto-install of Debian's x86_64, AND IN ANY # 2023-01-19: MongoDB only offers x86_64 for Debian, AND IN ANY CASE all their
# CASE all their MongoDB 6.0's are ONLY COMPILED FOR ARM v8.2-A i.e. FAIL ON # MongoDB 6.0's are ONLY COMPILED FOR ARM v8.2-A i.e. FAIL ON ARM v8-A RPi 4,
# ARM v8-A RPi 4, LIKE THEIR MongoDB 5.0 tested 2022-06-07 ~120 lines below. # LIKE THEIR MongoDB 5.0 tested 2022-06-07 ~137 lines below. Tested on Deb 11.
# -> CAN THIS ENTIRE STANZA BE *DELETED* -- ALWAYS USING UBUNTU REPO BELOW ? # -> DELETE THIS STANZA AFTER DEBIAN 12 IS SOLID -- USING UBUNTU REPO BELOW ?
- name: Install mongodb-org's Debian bullseye source/repo [ arch=amd64 ] for MongoDB version {{ mongodb_64bit_version }} - name: Install mongodb-org's Debian bullseye source/repo [ arch=amd64 ] for MongoDB version {{ mongodb_version }}, if x86_64 Debian < 12
apt_repository: apt_repository:
# 2020-10-28 and 2022-06-09: https://repo.mongodb.org/apt/debian/dists/ # 2020-10-28 and 2022-06-09: https://repo.mongodb.org/apt/debian/dists/
# supports only {Buster 10, Stretch 9, Jessie 8, Wheezy 7}. So Bullseye # supports only {Buster 10, Stretch 9, Jessie 8, Wheezy 7}. So Bullseye
# 11 and Bookworm 12 (testing branch) revert to buster for now: # 11 and Bookworm 12 (testing branch) revert to buster for now:
# 2022-09-27: Changed from 'buster' to 'bullseye' (i.e. Debian 11) as # 2022-09-27: Changed from 'buster' to 'bullseye' (i.e. Debian 11) as
# this was recently added to https://repo.mongodb.org/apt/debian/dists/ # this was recently added to https://repo.mongodb.org/apt/debian/dists/
repo: deb https://repo.mongodb.org/apt/debian bullseye/mongodb-org/{{ mongodb_64bit_version }} main repo: deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/debian bullseye/mongodb-org/{{ mongodb_version }} main
#repo: deb https://repo.mongodb.org/apt/debian bullseye/mongodb-org/{{ mongodb_version }} main
#repo: deb https://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.4 main #repo: deb https://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.4 main
#filename: mongodb-org #filename: mongodb-org
when: is_debian and ansible_architecture == "x86_64" when: is_debian and os_ver is version('debian-12', '<') and ansible_architecture == "x86_64"
# 2022-10-23: RasPiOS Bullseye *MAY* FAIL when 'focal' changed to 'jammy' ? - name: Install mongodb-org's Ubuntu jammy source/repo [ arch=amd64 ] for MongoDB version {{ mongodb_version }}, if other x86_64 OS
- name: Otherwise install mongodb-org's Ubuntu focal source/repo [ arch=amd64,arm64 ] for MongoDB version {{ mongodb_64bit_version }}
apt_repository: apt_repository:
repo: deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{{ mongodb_64bit_version }} multiverse repo: deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/{{ mongodb_version }} multiverse
when: not (is_debian and os_ver is version('debian-12', '<')) and ansible_architecture == "x86_64"
# 2023-01-19: Tested on x86_64 VM's with Ubuntu 22.04 & Debian 12. Based on
# MongoDB 6.0.3 (released 2022-11-15) instructions here:
# https://www.mongodb.com/community/forums/t/installing-mongodb-over-ubuntu-22-04/159931/90
# WHEREAS 64-bit Raspberry Pi is likely NOT supported for now, as MongoDB 6.0
# IS ONLY COMPILED FOR ARM v8.2-A i.e. FAIL ON ARM v8-A RPi 4 (JUST LIKE THEIR
# MongoDB 5.0, tested 2022-06-07 ~116 lines below). Though MongoDB 6.0.3+ on
# 64-bit Ubuntu on Raspberry Pi hardware (MIGHT) hypothetically be possible:
# https://www.mongodb.com/developer/products/mongodb/mongodb-on-raspberry-pi/
# So IIAB overlays MongoDB 5.0.5 64-bit RPi binaries for now (~141 LINES BELOW!)
- name: Otherwise, install mongodb-org's Ubuntu focal source/repo [ arch=arm64 ] for MongoDB version {{ mongodb_version }}
apt_repository:
repo: deb [ arch=arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{{ mongodb_version }} multiverse
#repo: deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{{ mongodb_version }} multiverse
#repo: deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{{ mongodb_version }} multiverse
#filename: mongodb-org #filename: mongodb-org
when: not (is_debian and ansible_architecture == "x86_64") when: not ansible_architecture == "x86_64"
#when: is_ubuntu or is_debian and os_ver is version('debian-12', '>=')
#when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_linuxmint and os_ver is version('linuxmint-12', '>=') or is_debian and os_ver is version('debian-12', '>=')
#when: not (is_debian and ansible_architecture == "x86_64")
# 2022-10-23: Force-install MongoDB on Ubuntu 22.04+, Mint 21 & Debian 12; # 2022-10-23: Force-install MongoDB on Ubuntu 22.04+, Mint 21 & Debian 12;
# as each includes libssl3 not libssl1.1 (#3190). LATER REMOVE ALL 7 STANZAS # as each includes libssl3 not libssl1.1 (#3190). LATER REMOVE ALL 7 STANZAS
@ -121,48 +159,95 @@
# sudo apt-get install libssl1.1 # sudo apt-get install libssl1.1
# rm /etc/apt/sources.list.d/focal-security.list # rm /etc/apt/sources.list.d/focal-security.list
- name: Install source/repo "deb http://security.ubuntu.com/ubuntu focal-security main" at /etc/apt/sources.list.d/security_ubuntu_com_ubuntu.list if Ubuntu 22.04+ x86_64 or Mint 21 # 2023-02-25: RETROFITTING libssl1.1 STILL NEC on Ubuntu 22.04+ and Debian 12+
apt_repository: # *IF* MongoDB < 6.0 (e.g. RPi, where MongoDB 6.0 is a complete non-starter!)
repo: deb http://security.ubuntu.com/ubuntu focal-security main #
#filename: focal-security # If filename focal-security.list is preferred # Whereas libssl1.1 is thankfully NO LONGER NEC on x86_64, where MongoDB can
when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') and ansible_architecture == "x86_64" or is_linuxmint_21 # finally use libssl3 instead, since 2022-11-15:
# https://www.mongodb.com/community/forums/t/installing-mongodb-over-ubuntu-22-04/159931/90
- name: Install source/repo "deb http://ports.ubuntu.com/ubuntu-ports focal-security main" at /etc/apt/sources.list.d/ports_ubuntu_com_ubuntu_ports.list if ubuntu 22.04+ aarch64 - debug:
msg: 5-STANZA BLOCK FOLLOWS, TO FORCE INSTALL libssl1.1 -- runs *IF* mandated mongodb_version ({{ mongodb_version }}) < 6.0 (i.e. for aarch64/arm64) on Ubuntu 22.04+ or Debian 12+ -- whereas Linux Mint should never need libssl1.1
- block:
- name: Install OLD source/repo "deb http://ports.ubuntu.com/ubuntu-ports focal-security main" at /etc/apt/sources.list.d/ports_ubuntu_com_ubuntu_ports.list if Ubuntu
apt_repository: apt_repository:
repo: deb http://ports.ubuntu.com/ubuntu-ports focal-security main repo: deb http://ports.ubuntu.com/ubuntu-ports focal-security main
when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') and ansible_architecture == "aarch64" when: is_ubuntu
- name: Install source/repo "deb http://security.debian.org/debian-security bullseye-security main" at /etc/apt/sources.list.d/security_debian_org_debian_security.list if Debian 12 - name: Install OLD source/repo "deb http://security.debian.org/debian-security bullseye-security main" at /etc/apt/sources.list.d/security_debian_org_debian_security.list if Debian
apt_repository: apt_repository:
repo: deb http://security.debian.org/debian-security bullseye-security main repo: deb http://security.debian.org/debian-security bullseye-security main
#repo: deb https://deb.debian.org/debian-security bullseye-security main # New way, likely equivalent #repo: deb https://deb.debian.org/debian-security bullseye-security main # New way, likely equivalent
when: is_debian_12 when: is_debian
- name: Install libssl1.1 if Ubuntu 22.04+ or Mint 21 or Debian 12 (required by MongoDB below) - name: Force install libssl1.1
package: package:
name: libssl1.1 name: libssl1.1
state: present state: present
when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_linuxmint_21 or is_debian_12
- name: Remove source/repo "deb http://security.debian.org/debian-security bullseye-security main" at /etc/apt/sources.list.d/security_debian_org_debian_security.list if Debian 12 - name: Remove OLD source/repo "deb http://security.debian.org/debian-security bullseye-security main" at /etc/apt/sources.list.d/security_debian_org_debian_security.list if Debian
apt_repository: apt_repository:
repo: deb http://security.debian.org/debian-security bullseye-security main repo: deb http://security.debian.org/debian-security bullseye-security main
#repo: deb https://deb.debian.org/debian-security bullseye-security main # New way, likely equivalent #repo: deb https://deb.debian.org/debian-security bullseye-security main # New way, likely equivalent
state: absent state: absent
when: is_debian_12 when: is_debian
- name: Remove source/repo "deb http://ports.ubuntu.com/ubuntu-ports focal-security main" at /etc/apt/sources.list.d/ports_ubuntu_com_ubuntu_ports.list if ubuntu 22.04+ aarch64 - name: Remove OLD source/repo "deb http://ports.ubuntu.com/ubuntu-ports focal-security main" at /etc/apt/sources.list.d/ports_ubuntu_com_ubuntu_ports.list if Ubuntu
apt_repository: apt_repository:
repo: deb http://ports.ubuntu.com/ubuntu-ports focal-security main repo: deb http://ports.ubuntu.com/ubuntu-ports focal-security main
state: absent state: absent
when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') and ansible_architecture == "aarch64" when: is_ubuntu
when: mongodb_version is version('6.0', '<') and (is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_debian and os_ver is version('debian-12', '>='))
- debug:
msg: 5-STANZA BLOCK ABOVE, RAN *IF* FORCED INSTALL OF libssl1.1 WAS NEEDED
# - name: Install source/repo "deb http://security.ubuntu.com/ubuntu focal-security main" at /etc/apt/sources.list.d/security_ubuntu_com_ubuntu.list if Ubuntu 22.04+ x86_64 or Mint 21
# apt_repository:
# repo: deb http://security.ubuntu.com/ubuntu focal-security main
# #filename: focal-security # If filename focal-security.list is preferred
# when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') and ansible_architecture == "x86_64" or is_linuxmint_21
# - name: Install source/repo "deb http://ports.ubuntu.com/ubuntu-ports focal-security main" at /etc/apt/sources.list.d/ports_ubuntu_com_ubuntu_ports.list if ubuntu 22.04+ aarch64
# apt_repository:
# repo: deb http://ports.ubuntu.com/ubuntu-ports focal-security main
# when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') and ansible_architecture == "aarch64"
# - name: Install source/repo "deb http://security.debian.org/debian-security bullseye-security main" at /etc/apt/sources.list.d/security_debian_org_debian_security.list if Debian 12
# apt_repository:
# repo: deb http://security.debian.org/debian-security bullseye-security main
# #repo: deb https://deb.debian.org/debian-security bullseye-security main # New way, likely equivalent
# when: is_debian_12
# - name: Install libssl1.1 if Ubuntu 22.04+ or Mint 21 or Debian 12 (required by MongoDB below)
# package:
# name: libssl1.1
# state: present
# when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') or is_linuxmint_21 or is_debian_12
# - name: Remove source/repo "deb http://security.debian.org/debian-security bullseye-security main" at /etc/apt/sources.list.d/security_debian_org_debian_security.list if Debian 12
# apt_repository:
# repo: deb http://security.debian.org/debian-security bullseye-security main
# #repo: deb https://deb.debian.org/debian-security bullseye-security main # New way, likely equivalent
# state: absent
# when: is_debian_12
# - name: Remove source/repo "deb http://ports.ubuntu.com/ubuntu-ports focal-security main" at /etc/apt/sources.list.d/ports_ubuntu_com_ubuntu_ports.list if ubuntu 22.04+ aarch64
# apt_repository:
# repo: deb http://ports.ubuntu.com/ubuntu-ports focal-security main
# state: absent
# when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') and ansible_architecture == "aarch64"
# - name: Remove source/repo "deb http://security.ubuntu.com/ubuntu focal-security main" at /etc/apt/sources.list.d/security_ubuntu_com_ubuntu.list if Ubuntu 22.04+ x86_64 or Mint 21
# apt_repository:
# repo: deb http://security.ubuntu.com/ubuntu focal-security main
# state: absent
# #filename: focal-security # 100% IGNORED during repo deletion
# when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') and ansible_architecture == "x86_64" or is_linuxmint_21
- name: Remove source/repo "deb http://security.ubuntu.com/ubuntu focal-security main" at /etc/apt/sources.list.d/security_ubuntu_com_ubuntu.list if Ubuntu 22.04+ x86_64 or Mint 21
apt_repository:
repo: deb http://security.ubuntu.com/ubuntu focal-security main
state: absent
#filename: focal-security # 100% IGNORED during repo deletion
when: is_ubuntu and os_ver is version('ubuntu-2204', '>=') and ansible_architecture == "x86_64" or is_linuxmint_21
# # Debian 10 aarch64 might work below but is blocked in main.yml # # Debian 10 aarch64 might work below but is blocked in main.yml
# - name: Use mongodb-org's Ubuntu focal repo for RasPiOS-aarch64 # - name: Use mongodb-org's Ubuntu focal repo for RasPiOS-aarch64
@ -187,6 +272,7 @@
# filename: mongodb-org # filename: mongodb-org
# when: is_ubuntu and not is_linuxmint # when: is_ubuntu and not is_linuxmint
- name: "Install packages: mongodb-org, mongodb-org-server" - name: "Install packages: mongodb-org, mongodb-org-server"
package: package:
name: name:
@ -207,6 +293,7 @@
regexp: '^\s*port:' regexp: '^\s*port:'
line: " port: {{ mongodb_port }}" # 27017 line: " port: {{ mongodb_port }}" # 27017
# 2022-06-07 #3236 MongoDB 5.0.9 "Illegal instruction" on RPi 4... # 2022-06-07 #3236 MongoDB 5.0.9 "Illegal instruction" on RPi 4...
# https://www.mongodb.com/community/forums/t/core-dump-on-mongodb-5-0-on-rpi-4/115291/14 # https://www.mongodb.com/community/forums/t/core-dump-on-mongodb-5-0-on-rpi-4/115291/14
# ...as ARM v8-A < ARM v8.2-A ...also reveals: # ...as ARM v8-A < ARM v8.2-A ...also reveals:
@ -228,19 +315,22 @@
# https://andyfelong.com/downloads/raspbian_mongodb_5.0.5.gz # https://andyfelong.com/downloads/raspbian_mongodb_5.0.5.gz
# https://andyfelong.com/2021/08/mongodb-4-4-under-raspberry-pi-os-64-bit-raspbian64/ # https://andyfelong.com/2021/08/mongodb-4-4-under-raspberry-pi-os-64-bit-raspbian64/
- name: If hardware is Raspberry Pi and mongodb_64bit_version >= 5.0, run 'apt-mark hold mongodb-org mongodb-org-server' -- so MongoDB 5.0.5 binaries {mongo, mongod, mongos} can be installed without apt interfering in future - name: If hardware is Raspberry Pi and mongodb_version >= 5.0, run 'apt-mark hold mongodb-org mongodb-org-server' -- so MongoDB 5.0.5 binaries {mongo, mongod, mongos} can be installed without apt interfering in future
command: apt-mark hold mongodb-org mongodb-org-server command: apt-mark hold mongodb-org mongodb-org-server
when: rpi_model != "none" and mongodb_64bit_version is version('5.0', '>=') when: rpi_model != "none" and mongodb_version is version('5.0', '>=')
- name: If hardware is Raspberry Pi and mongodb_64bit_version >= 5.0, unarchive 76MB {{ iiab_download_url }}//packages/raspbian_mongodb_5.0.5.gz OVERWRITING 5.0.9+ {mongo, mongod, mongos} in /usr/bin - name: If hardware is Raspberry Pi and mongodb_version >= 5.0, unarchive 76MB {{ iiab_download_url }}//packages/raspbian_mongodb_5.0.5.gz OVERWRITING 5.0.9+ {mongo, mongod, mongos} in /usr/bin
unarchive: unarchive:
remote_src: yes remote_src: yes
src: "{{ iiab_download_url }}/raspbian_mongodb_5.0.5.gz" src: "{{ iiab_download_url }}/raspbian_mongodb_5.0.5.gz"
dest: /usr/bin dest: /usr/bin
when: rpi_model != "none" and mongodb_64bit_version is version('5.0', '>=') when: rpi_model != "none" and mongodb_version is version('5.0', '>=')
# end block # # end block
when: ansible_architecture == "aarch64" or ansible_architecture == "x86_64" # when: ansible_architecture == "aarch64" or ansible_architecture == "x86_64"
# - debug:
# msg: 16-STANZA BLOCK ABOVE, RAN *IF* 64-BIT -- i.e. ansible_architecture == "aarch64" or ansible_architecture == "x86_64" # ansible_machine is a bit safer than ansible_architecture (see kiwix/defaults/main.yml)
# 2. CONFIGURE MongoDB FOR IIAB # 2. CONFIGURE MongoDB FOR IIAB
@ -282,6 +372,17 @@
# 3. RECORD MongoDB AS INSTALLED # 3. RECORD MongoDB AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'mongodb_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: mongodb
option: mongodb_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'mongodb_installed: True'" - name: "Set 'mongodb_installed: True'"
set_fact: set_fact:
mongodb_installed: True mongodb_installed: True

View file

@ -34,19 +34,25 @@
var: is_debian var: is_debian
- debug: - debug:
var: is_raspbian var: is_raspbian
- debug:
var: mongodb_version
# # might be able to lift this once we know using bionic would work # WARNING: Since March 2023, 32-bit RasPiOS can act as 64-bit on RPi 4 and
# - name: EXIT 'mongodb' ROLE & CONTINUE, IF 'is_debian_10 and aarch64 and not is_raspbian' i.e. TRUE DEBIAN with arch64 # RPi 400 (unlike RPi 3!) SEE: https://github.com/iiab/iiab/pull/3422 and #3516
# fail: # FORCE IT RED THIS ONCE! - name: Run command 'dpkg --print-architecture' to identify OS architecture (CPU arch as revealed by ansible_architecture ~= ansible_machine is NO LONGER enough!)
# msg: ATTEMPTED MongoDB INSTALLATION WITH (TRUE) DEBIAN aarch64, which is not supported upstream. Nevertheless IIAB will continue (consider this a warning!) command: dpkg --print-architecture
# when: (ansible_architecture == "aarch64") and is_debian_10 and not is_raspbian register: dpkg_arch
# ignore_errors: yes - debug:
msg: "'dpkg --print-architecture' output: {{ dpkg_arch.stdout }}"
# ELSE...
- block: - block:
- name: EXIT 'mongodb' ROLE, if 'dpkg --print-architecture' appears to be 32-bit (i.e. does not contain "64") or mongodb_version == "unsupported" or ansible_machine not found
fail: # FORCE IT RED THIS ONCE!
msg: MongoDB 3.2+ (as needed by Sugarizer Server 1.5.0) is NO LONGER SUPPORTED on 32-bit Raspberry Pi OS.
when: not dpkg_arch.stdout is search("64") or mongodb_version == "unsupported" or mongodb_version == "unknown"
#when: dpkg_arch.stdout == "armhf" or mongodb_version == "unsupported" or mongodb_version == "unknown"
- name: Install MongoDB if 'mongodb_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml - name: Install MongoDB if 'mongodb_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
include_tasks: install.yml include_tasks: install.yml
when: mongodb_installed is undefined when: mongodb_installed is undefined

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: Install 'monit' package - name: Install 'monit' package
package: package:
name: monit name: monit
@ -35,6 +40,17 @@
# RECORD Monit AS INSTALLED # RECORD Monit AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'monit_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: monit
option: monit_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'monit_installed: True'" - name: "Set 'monit_installed: True'"
set_fact: set_fact:
monit_installed: True monit_installed: True

View file

@ -8,11 +8,11 @@
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
# 2022-11-27: Currently testing Moodle's master branch is mandatory if your # October 2024: Currently testing Moodle's main branch is mandatory if your
# OS PHP >= 8.2, see moodle/tasks/install.yml for detail! OR, *IF* your # OS PHP >= 8.4, see moodle/tasks/install.yml for detail! OR, *IF* your
# OS PHP < 8.2, then {{ moodle_version }} will be attempted: # OS PHP < 8.4, then {{ moodle_version }} will be attempted:
moodle_version: MOODLE_401_STABLE # Moodle 4.1 LTS moodle_version: MOODLE_405_STABLE # Moodle 4.5
#moodle_version: master # e.g. to try Moodle's "weekly" 4.2dev pre-release *EVEN IF* OS PHP < 8.2 #moodle_version: main # e.g. to try Moodle's "weekly" 5.0dev pre-release *EVEN IF* OS PHP < 8.4
moodle_repo_url: https://github.com/moodle/moodle moodle_repo_url: https://github.com/moodle/moodle
#moodle_repo_url: git://git.moodle.org/moodle.git # 2020-10-16: VERY Slow! #moodle_repo_url: git://git.moodle.org/moodle.git # 2020-10-16: VERY Slow!

View file

@ -6,6 +6,20 @@
# 2021-06-28: This ALSO now happens in /etc/php/{{ php_version }}/cli/php.ini # 2021-06-28: This ALSO now happens in /etc/php/{{ php_version }}/cli/php.ini
# (as required by Moodle's CLI installer, DESPITE it using fpm/php.ini later!) # (as required by Moodle's CLI installer, DESPITE it using fpm/php.ini later!)
# 2023-12-17: Upgrade instructions via CLI
# https://docs.moodle.org/en/Administration_via_command_line
#
# EXAMPLE:
# cd /opt/iiab/moodle
# sudo -u www-data /usr/bin/php admin/cli/maintenance.php --enable
# cd /opt/iiab
# mv moodle moodle.bkp
# git clone https://github.com/moodle/moodle -b MOODLE_403_STABLE --depth 1 # As a regular 'git pull' will likely fail, due to original clone's '--depth 1' -- but no worries: total clone download is just ~100 MB, which expands to ~400 MB
# cp moodle.bkp/config.php moodle/
# cd moodle
# sudo -u www-data /usr/bin/php admin/cli/upgrade.php # Or later log in to Moodle, to complete the upgrade (i.e. click "Continue" 4-5 times)
# sudo -u www-data /usr/bin/php admin/cli/maintenance.php --disable
- name: "Set 'postgresql_install: True' and 'postgresql_enabled: True'" - name: "Set 'postgresql_install: True' and 'postgresql_enabled: True'"
set_fact: set_fact:
@ -17,6 +31,11 @@
name: postgresql name: postgresql
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
# 2021-07-02: Let's monitor & learn from these 2 pages year-by-year: # 2021-07-02: Let's monitor & learn from these 2 pages year-by-year:
# https://docs.moodle.org/19/en/PHP_settings_by_Moodle_version#PHP_Extensions_and_libraries # https://docs.moodle.org/19/en/PHP_settings_by_Moodle_version#PHP_Extensions_and_libraries
# https://github.com/moodlebox/moodlebox/blob/master/roles/packages/vars/main.yml # https://github.com/moodlebox/moodlebox/blob/master/roles/packages/vars/main.yml
@ -30,7 +49,7 @@
#- php{{ php_version }}-common # 2021-06-27: Auto-installed as an apt dependency. REGARDLESS: php{{ php_version }}-common superset php{{ php_version }}-cli is auto-installed by php{{ php_version }}-fpm in nginx/tasks/install.yml #- php{{ php_version }}-common # 2021-06-27: Auto-installed as an apt dependency. REGARDLESS: php{{ php_version }}-common superset php{{ php_version }}-cli is auto-installed by php{{ php_version }}-fpm in nginx/tasks/install.yml
#- php{{ php_version }}-cli # 2021-06-27: Compare to php{{ php_version }}-common just above! 2020-06-15: In the past this included (below) mbstring? However this is not true on Ubuntu Server 20.04 LTS. #- php{{ php_version }}-cli # 2021-06-27: Compare to php{{ php_version }}-common just above! 2020-06-15: In the past this included (below) mbstring? However this is not true on Ubuntu Server 20.04 LTS.
- php{{ php_version }}-curl # 2021-06-27: Likewise installed in nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml, wordpress/tasks/install.yml - php{{ php_version }}-curl # 2021-06-27: Likewise installed in nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml, wordpress/tasks/install.yml
#- php{{ php_version }}-exif # 2022-11-27: Recommended by Moodle 4.1, required by Moodle 4.2 (for image metadata, rotation, etc?) apt package(s) NOT REQUIRED as it's somehow already installed with PHP's core, as confirmed by 'php -m' & 'php -i' on Ubuntu 22.04 and RasPiOS. #- php{{ php_version }}-exif # 2022-11-27: Recommended by Moodle 4.1, possibly required by Moodle 4.2 (for image metadata, rotation, etc?) apt package(s) NOT REQUIRED as it's somehow already installed with PHP's core, as confirmed by 'php -m' & 'php -i' on Ubuntu 22.04 and RasPiOS.
- php{{ php_version }}-gd # 2021-06-27: Likewise installed in nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml - php{{ php_version }}-gd # 2021-06-27: Likewise installed in nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml
- php{{ php_version }}-intl # 2020-12-03: Required by Moodle 3.10+ -- Likewise installed in mediawiki/tasks/install.yml, nextcloud/tasks/install.yml, wordpress/tasks/install.yml - php{{ php_version }}-intl # 2020-12-03: Required by Moodle 3.10+ -- Likewise installed in mediawiki/tasks/install.yml, nextcloud/tasks/install.yml, wordpress/tasks/install.yml
- php{{ php_version }}-mbstring # 2020-06-15: Required by Moodle 3.9+ -- Likewise installed in mediawiki/tasks/install.yml, nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml, wordpress/tasks/install.yml - php{{ php_version }}-mbstring # 2020-06-15: Required by Moodle 3.9+ -- Likewise installed in mediawiki/tasks/install.yml, nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml, wordpress/tasks/install.yml
@ -49,21 +68,49 @@
when: php_settings_done is undefined when: php_settings_done is undefined
- name: "MOODLE PRE-RELEASE TESTING: Download (clone) {{ moodle_repo_url }} branch 'master' to {{ moodle_base }} (~389 MB initially, ~416 MB later) if OS PHP {{ php_version }} >= 8.2" - name: Does /opt/iiab/moodle exist?
git: stat:
repo: "{{ moodle_repo_url }}" # https://github.com/moodle/moodle path: /opt/iiab/moodle
dest: "{{ moodle_base }}" # /opt/iiab/moodle register: opt_iiab_moodle
depth: 1
version: master # For "weekly" Moodle pre-releases: https://download.moodle.org/releases/development/ (e.g. 3.5beta+ in May 2018, 4.1dev in Sept 2022, 4.2dev in Dec 2022)
when: php_version is version('8.2', '>=')
- name: Download (clone) {{ moodle_repo_url }} branch '{{ moodle_version }}' to {{ moodle_base }} (~389 MB initially, ~416 MB later) if OS PHP {{ php_version }} < 8.2 # 2023-04-30: Allows re-running (e.g. 'sudo iiab') if git clone was already
# begun, avoiding this error: (arises from 'www-data' ownership)
# "Failed to set a new url https://github.com/moodle/moodle for origin:
# fatal: detected dubious ownership in repository at '/opt/iiab/moodle'
# To add an exception for this directory, call:
# git config --global --add safe.directory /opt/iiab/moodle"
- name: If /opt/iiab/moodle exists, move it to /tmp/opt-iiab-moodle.old (TO BE DELETED ON NEXT BOOT) -- allows re-running if git clone (below) was already begun
shell: rm -rf /tmp/opt-iiab-moodle.old && mv /opt/iiab/moodle /tmp/opt-iiab-moodle.old
when: opt_iiab_moodle.stat.exists
# WARNING: Since March 2023, 32-bit RasPiOS can act as 64-bit on RPi 4 and
# RPi 400 (unlike RPi 3!) SEE: https://github.com/iiab/iiab/pull/3516
- name: Run command 'dpkg --print-architecture' to identify OS architecture (CPU arch as revealed by ansible_architecture ~= ansible_machine is NO LONGER enough!)
command: dpkg --print-architecture
register: dpkg_arch
- name: "2023-04-30: MOODLE 4.2+ REQUIRES PHP 8 AND *FULL* 64-BIT OPERATION -- SO WE REVERT TO TRYING THE OLDER MOODLE 4.1 LTS WHEN NECESSARY -- NOTE PHP 7.x END-OF-LIFE WAS NOVEMBER 2022"
set_fact:
moodle_version: MOODLE_401_STABLE # i.e. Moodle 4.1 LTS
when: php_version is version('8.0', '<') or not dpkg_arch.stdout is search("64")
- name: Download (clone) {{ moodle_repo_url }} branch '{{ moodle_version }}' to {{ moodle_base }} (~476 MB initially, ~504 MB later) if OS PHP {{ php_version }} < 8.4
git: git:
repo: "{{ moodle_repo_url }}" # https://github.com/moodle/moodle repo: "{{ moodle_repo_url }}" # https://github.com/moodle/moodle
dest: "{{ moodle_base }}" # /opt/iiab/moodle dest: "{{ moodle_base }}" # /opt/iiab/moodle
depth: 1 depth: 1
version: "{{ moodle_version }}" # e.g. MOODLE_401_STABLE (Moodle 4.1) version: "{{ moodle_version }}" # e.g. MOODLE_404_STABLE (Moodle 4.4)
when: php_version is version('8.2', '<') when: php_version is version('8.4', '<')
- name: "MOODLE PRE-RELEASE TESTING: Download (clone) {{ moodle_repo_url }} branch 'main' to {{ moodle_base }} (~476 MB initially, ~504 MB later) if OS PHP {{ php_version }} >= 8.4"
git:
repo: "{{ moodle_repo_url }}"
dest: "{{ moodle_base }}"
depth: 1
version: main # For "weekly" Moodle pre-releases: https://download.moodle.org/releases/development/ (e.g. 3.5beta+ in May 2018, 4.1dev in Sept 2022, 4.2dev in Dec 2022, 4.3dev in May 2023, 4.4dev in Oct 2023, 4.5dev in Apr 2024, 5.0dev in Oct 2024)
when: php_version is version('8.4', '>=')
- name: chown -R {{ apache_user }}:{{ apache_user }} {{ moodle_base }} (by default dirs 755 & files 644) - name: chown -R {{ apache_user }}:{{ apache_user }} {{ moodle_base }} (by default dirs 755 & files 644)
file: file:
@ -141,7 +188,7 @@
# 2021-11-19: Resolves Moodle error https://github.com/iiab/iiab/issues/3024 # 2021-11-19: Resolves Moodle error https://github.com/iiab/iiab/issues/3024
- name: Set cron job to run /opt/iiab/moodle/admin/cli/cron.php every minute (* * * * *) in /var/spool/cron/crontabs/www-data -- per https://docs.moodle.org/310/en/Cron - name: Set cron job to run /opt/iiab/moodle/admin/cli/cron.php every minute (* * * * *) in /var/spool/cron/crontabs/www-data -- per https://docs.moodle.org/310/en/Cron
cron: cron:
name: https://docs.moodle.org/310/en/Cron name: https://docs.moodle.org/en/Cron
user: www-data user: www-data
job: "/usr/bin/php /opt/iiab/moodle/admin/cli/cron.php >/dev/null" job: "/usr/bin/php /opt/iiab/moodle/admin/cli/cron.php >/dev/null"
@ -167,6 +214,17 @@
# RECORD Moodle AS INSTALLED # RECORD Moodle AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'moodle_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: moodle
option: moodle_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'moodle_installed: True'" - name: "Set 'moodle_installed: True'"
set_fact: set_fact:
moodle_installed: True moodle_installed: True

View file

@ -29,7 +29,7 @@ location ~ ^/moodle(.*)\.php(.*)$ {
# Uncomment to override /etc/php/<VERSION>/fpm/php.ini -- FYI Stage 4's # Uncomment to override /etc/php/<VERSION>/fpm/php.ini -- FYI Stage 4's
# roles/www_options/tasks/main.yml FORCES these same settings and more # roles/www_options/tasks/main.yml FORCES these same settings and more
# (equivalent to 'nginx_high_php_limits: True') when 'moodle_install: True' # (equivalent to 'nginx_high_php_limits: True') when 'moodle_install: True'
#fastcgi_param PHP_VALUE "max_execution_time=300\n upload_max_filesize=500M\n post_max_size=500M\n max_input_vars=5000"; #fastcgi_param PHP_VALUE "max_execution_time=300\n upload_max_filesize=10000M\n post_max_size=10000M\n max_input_vars=5000";
} }
location ~ ^/moodle { location ~ ^/moodle {

View file

@ -1,3 +1,8 @@
- name: Record (initial) disk space used
shell: df -B1 --output=used / | tail -1
register: df1
- name: "Install packages: mosquitto, mosquitto-clients" - name: "Install packages: mosquitto, mosquitto-clients"
package: package:
name: "{{ item }}" name: "{{ item }}"
@ -32,6 +37,17 @@
# RECORD Mosquitto AS INSTALLED # RECORD Mosquitto AS INSTALLED
- name: Record (final) disk space used
shell: df -B1 --output=used / | tail -1
register: df2
- name: Add 'mosquitto_disk_usage = {{ df2.stdout|int - df1.stdout|int }}' to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section: mosquitto
option: mosquitto_disk_usage
value: "{{ df2.stdout|int - df1.stdout|int }}"
- name: "Set 'mosquitto_installed: True'" - name: "Set 'mosquitto_installed: True'"
set_fact: set_fact:
mosquitto_installed: True mosquitto_installed: True

View file

@ -1,3 +1,9 @@
# SEE ALSO roles/network/tasks/install.yml
- name: TEMPORARILY REVERT net.ipv6.conf.all.disable_ipv6 to 0 in /etc/sysctl.conf for #3434
sysctl:
name: net.ipv6.conf.all.disable_ipv6
value: 0
- name: Enable & Start 'munin-node' systemd service - name: Enable & Start 'munin-node' systemd service
systemd: systemd:
name: munin-node name: munin-node
@ -6,6 +12,12 @@
state: started state: started
when: munin_enabled when: munin_enabled
# SEE ALSO roles/network/tasks/install.yml
- name: RESTORE net.ipv6.conf.all.disable_ipv6 to 1 in /etc/sysctl.conf for #3434
sysctl:
name: net.ipv6.conf.all.disable_ipv6
value: 1
- name: Disable & Stop 'munin-node' systemd service - name: Disable & Stop 'munin-node' systemd service
systemd: systemd:
name: munin-node name: munin-node

Some files were not shown because too many files have changed in this diff Show more