1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00
iiab/vars/local_vars_min.yml

375 lines
13 KiB
YAML
Raw Normal View History

2018-07-20 08:46:51 +00:00
# This is local_vars_min.yml -- copy it to /etc/iiab/local_vars.yml then...
2018-09-25 18:09:58 +00:00
# modify variables below, to override /opt/iiab/iiab/vars/default_vars.yml
2018-05-14 21:17:11 +00:00
2018-09-25 18:09:58 +00:00
# PLZ READ http://wiki.laptop.org/go/IIAB/local_vars.yml AND http://FAQ.IIAB.IO
2018-05-14 21:17:11 +00:00
# Orig Idea: branch github.com/xsce/xsce-local for your deployment/community
# Ansible's default timeout for "get_url:" downloads (10 seconds) often fails
download_timeout: 200
2018-10-15 07:18:41 +00:00
# Languages (for Apache)
default_language: en
language_priority: en es fr
# Set iiab_admin_user_install: False if you don't want iiab_admin_user & wheel
# group auto-created in roles/iiab-admin/tasks/main.yml (hence disabling sudo-
# checks/warnings of published passwds like pi/raspberry & iiab-admin/g0adm1n).
iiab_admin_user_install: True
# If iiab_admin_user_install: False, set iiab_admin_user (below) to an existing
# Linux user that has sudo access, for login to Admin Console http://box/admin
2018-05-14 21:17:11 +00:00
iiab_admin_user: iiab-admin
2018-10-15 07:18:41 +00:00
# Password hash to be used if Ansible creates the above user:
2018-10-15 07:23:20 +00:00
iiab_admin_pwd_hash: $6$xsce51$D.IrrEeLBYIuJkGDmi27pZUGOwPFp98qpl3hxMwWV4hXigFGmdSvy3s/j7tn6OnyTTLmlV7SsN0lCUAFzxSop.
2018-10-15 07:18:41 +00:00
# Obtain a password hash - NEW MORE SECURE WAY:
# python3 -c 'import crypt; print(crypt.crypt("<plaintext>", crypt.mksalt(crypt.METHOD_SHA512)))'
# Obtain a password hash - OLD WAY:
2018-05-14 21:17:11 +00:00
# python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
iiab_hostname: box
iiab_domain: lan
2019-01-09 22:54:12 +00:00
# Homepage: set to /home or /wordpress or /mediawiki or /wiki (for DokuWiki)
2018-05-14 21:17:11 +00:00
iiab_home_url: /home
2018-07-13 17:33:42 +00:00
# Raspbian requires Wi-Fi country since March 2018. Please set it here:
2018-05-14 21:17:11 +00:00
host_country_code: US
host_ssid: "Internet in a Box"
host_wifi_mode: g
host_channel: 6
hostapd_secure: False
hostapd_password: changeme
2019-09-03 22:11:24 +00:00
# See "How do I set a static IP address?" for Ethernet, in http://FAQ.IIAB.IO
2019-09-02 23:56:46 +00:00
wan_ip: dhcp # wan_ip: 192.168.1.99
wan_netmask: # wan_netmask: 255.255.255.0
wan_gateway: # wan_gateway: 192.168.1.254
wan_nameserver: # wan_nameserver: 192.168.1.254
2019-09-03 18:50:52 +00:00
wan_try_dhcp_before_static_ip: True # Facilitate field updates w/ cablemodems
2019-09-02 23:56:46 +00:00
# Enable "campus access" to ~10 common IIAB services like Kiwix (3000), KA Lite
# (8008) and Calibre (8010 or 8080) etc, on the WAN side of your IIAB server.
# Only 1 of the 6 lines below should be uncommented:
#
#ports_externally_visible: 0 # none
#ports_externally_visible: 1 # ssh only
#ports_externally_visible: 2 # ssh + http-or-https (for Admin Console's box.lan/admin too)
ports_externally_visible: 3 # ssh + http-or-https + common IIAB services
#ports_externally_visible: 4 # ssh + http-or-https + common IIAB services + Samba
#ports_externally_visible: 5 # all but databases
#
# Or further customize your iptables firewall by editing:
# /opt/iiab/iiab/roles/network/templates/gateway/iiab-gen-iptables
# And then run: cd /opt/iiab/iiab; ./iiab-network
2018-05-14 21:17:11 +00:00
# Make this True if client machines should have access to WAN/Internet:
iiab_gateway_enabled: False
2019-01-03 17:57:33 +00:00
dhcpd_install: False
dhcpd_enabled: False
2019-01-03 17:59:45 +00:00
# named (BIND)
2019-01-03 17:57:33 +00:00
named_install: False
named_enabled: False
2019-01-03 17:59:45 +00:00
# dnsmasq - handles DHCP and DNS
2018-07-13 17:33:42 +00:00
dnsmasq_install: True
2018-10-07 13:06:53 +00:00
dnsmasq_enabled: True
2018-07-13 17:33:42 +00:00
2018-07-19 15:20:40 +00:00
# Enable AFTER installing IIAB! Then run "cd /opt/iiab/iiab; ./iiab-network"
2018-07-13 17:33:42 +00:00
dns_jail_enabled: False
2018-10-03 18:31:15 +00:00
# Python-based Captive Portal, that @m-anish & @jvonau experimented with in
# July 2018 (https://github.com/iiab/iiab/pull/870) and that @georgejhunt
2018-12-12 16:43:18 +00:00
# extensively refined later in 2018 (PRs #1179, #1300, #1327).
2019-01-03 18:00:46 +00:00
captive_portal_install: False
captive_portal_enabled: False
2018-12-12 16:38:39 +00:00
# In a pinch, disable Captive Portal using instructions in http://FAQ.IIAB.IO
2018-05-14 21:17:11 +00:00
2019-09-25 18:52:04 +00:00
# Bluetooth PAN access to IIAB server
bluetooth_install: True
bluetooth_enabled: False
bluetooth_term_enabled: False
2018-12-09 16:47:42 +00:00
# Set to "False" if you want to revert to the older Dynamic Menuing system
# (prior to IIAB 6.7, this had used https://github.com/iiab/iiab-menu)
js_menu_install: True
2018-05-14 21:17:11 +00:00
# Unmaintained as of October 2017: https://github.com/iiab/iiab/pull/382
# wondershaper_install: False
# wondershaper_enabled: False
2018-08-30 21:02:02 +00:00
2018-05-14 21:17:11 +00:00
# 1-PREP
2018-10-15 13:23:30 +00:00
# roles/sshd & roles/iiab-admin run here
# SEE IIAB-ADMIN VARIABLES NEAR TOP OF THIS FILE:
# e.g. iiab_admin_user_install, iiab_admin_user, iiab_admin_pwd_hash
# SECURITY WARNING: See http://wiki.laptop.org/go/IIAB/Security
openvpn_install: True
openvpn_enabled: False
# Set /etc/iiab/openvpn_handle in advance here:
2019-05-12 04:02:18 +00:00
openvpn_handle:
2018-10-15 13:23:30 +00:00
# The following seems necessary on CentOS:
# openvpn_cron_enabled: True
2019-08-13 20:13:26 +00:00
# Some prefer 512MB for Zero W, others prefer 2048MB or higher for RPi 3 and 4.
# Please see recommendations at: https://itsfoss.com/swap-size/
2019-08-13 20:19:22 +00:00
pi_swap_file_size: 1024
2019-08-13 20:13:26 +00:00
2018-10-15 14:26:02 +00:00
2018-05-14 21:17:11 +00:00
# 2-COMMON
2018-10-15 14:37:33 +00:00
# exFAT_enabled: True is auto-enabled in roles/2-common/tasks/packages.yml
# as set in 0-init/defaults/main.yml AND 0-init/tasks/main.yml
2018-10-15 14:26:02 +00:00
# /usr/libexec/iiab-startup.sh is much like autoexec.bat & /etc/rc.local
# It's put in place by 2-common/tasks/iiab-startup.yml at the end of Stage 2.
2018-05-14 21:17:11 +00:00
# 3-BASE-SERVER
# See also Apache vars {default_language, language_priority} @ top of this file
#
2019-09-05 01:40:08 +00:00
# For schools that use WordPress/Nextcloud/Moodle intensively: iiab/iiab#1147
apache_high_php_limits: False
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
# SO AFTER INSTALLING IIAB, VERIFY THAT THESE 5 SETTINGS...
# https://github.com/iiab/iiab/blob/master/roles/httpd/tasks/main.yml#L80-L84
# ...ARE SUITABLE FOR YOUR HARDWARE IN /etc/php/<VERSION>/apache2/php.ini
#
2018-07-13 17:33:42 +00:00
# Make this False to disable http://box/common/services/power_off.php button:
2018-09-23 23:06:53 +00:00
apache_allow_sudo: True
2018-07-13 17:33:42 +00:00
2018-05-14 21:17:11 +00:00
# roles/mysql runs here (mandatory)
2018-08-30 21:02:02 +00:00
2018-05-14 21:17:11 +00:00
# 4-SERVER-OPTIONS
2018-10-16 11:49:51 +00:00
# DNS prep (dnsmasq, named &/or dhcpd) run here. The full network stage runs
# after 9-LOCAL-ADDONS (or manually run "cd /opt/iiab/iiab; ./iiab-network")
2018-10-15 14:26:02 +00:00
squid_install: False
squid_enabled: False
2019-01-10 19:17:32 +00:00
# DansGuardian REQUIRES Squid (above) be installed & enabled
2018-10-15 14:26:02 +00:00
dansguardian_install: False
dansguardian_enabled: False
2018-05-14 21:17:11 +00:00
# PostgreSQL - auto-installed by Moodle and/or Pathagar - no need to touch!
postgresql_install: False
postgresql_enabled: False
# Unmaintained
# authserver_install: False
# authserver_enabled: False
2018-10-16 12:57:22 +00:00
# Common UNIX Printing System (CUPS)
2018-05-14 21:17:11 +00:00
cups_install: False
cups_enabled: False
# At Your Own Risk: take a security audit seriously before deploying this
samba_install: False
samba_enabled: False
# Show entire contents of USB sticks/drives (at http://box/usb)
iiab_usb_lib_show_all: True
2018-08-30 21:02:02 +00:00
2018-05-14 21:17:11 +00:00
# 5-XO-SERVICES
# Lesser-supported XO services need additional testing. Please contact
# http://lists.laptop.org/pipermail/server-devel/ if you're able to help test.
# xo_services_install: False
# xo_services_enabled: False
# activity_server_install: False
# activity_server_enabled: False
2018-10-16 11:49:51 +00:00
# Please instead consider 'ejabberd' in Stage 6-GENERIC-APPS below
# ejabberd_xs_install: False
# ejabberd_xs_enabled: False
2018-05-14 21:17:11 +00:00
# Change calibre_port from 8080 to 8010 below, if you enable idmgr
# idmgr_install: False
# idmgr_enabled: False
2018-08-30 20:50:55 +00:00
# 6-GENERIC-APPS
2018-08-27 20:13:45 +00:00
2019-06-13 12:26:26 +00:00
azuracast_install: False
azuracast_enabled: False
2018-05-14 21:17:11 +00:00
dokuwiki_install: False
dokuwiki_enabled: False
mediawiki_install: False
mediawiki_enabled: False
ejabberd_install: False
ejabberd_enabled: False
elgg_install: False
elgg_enabled: False
2019-03-08 06:44:28 +00:00
# Gitea (lightweight self-hosted "GitHub") from https://gitea.io
2019-03-02 08:16:12 +00:00
gitea_install: False
gitea_enabled: False
2019-01-03 19:41:14 +00:00
# Lokole (email for rural communities) from https://ascoderu.ca
2018-11-04 05:26:48 +00:00
lokole_install: False
lokole_enabled: False
2019-01-15 21:23:21 +00:00
# MQTT pub-sub broker for IoT on Raspberry Pi etc
2019-01-15 21:13:26 +00:00
mosquitto_install: False
mosquitto_enabled: False
2019-01-15 21:23:21 +00:00
# Flow-based visual programming for wiring together IoT hardware devices etc
2019-01-15 21:13:26 +00:00
nodered_install: False
nodered_enabled: False
2019-09-04 19:11:20 +00:00
# Store your docs, calendar, contacts & photos on your local server not cloud!
# If using WordPress intensively, set apache_high_php_limits in 3-BASE-SERVER
2018-05-14 21:17:11 +00:00
nextcloud_install: False
nextcloud_enabled: False
2019-09-04 19:11:20 +00:00
nextcloud_allow_public_ips: False
2019-09-05 01:40:08 +00:00
# Configuration tips for IPv4 access controls and tuning RAM/resources:
# https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md
2018-05-14 21:17:11 +00:00
2019-02-09 18:37:43 +00:00
# A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX.
2019-02-14 14:34:44 +00:00
# Works on Ubuntu 18.04, Debian 9. Experimental on Rasp/RPi 3. Uses Node.js 10.x
pbx_install: False
pbx_enabled: False
2019-01-19 07:47:10 +00:00
asterisk_chan_dongle: False
2018-10-16 11:49:51 +00:00
# If using WordPress intensively, set apache_high_php_limits in 3-BASE-SERVER
2018-05-14 21:17:11 +00:00
wordpress_install: False
wordpress_enabled: False
2019-02-02 21:41:12 +00:00
2018-05-14 21:17:11 +00:00
# 7-EDU-APPS
2018-08-29 01:53:17 +00:00
# KA Lite - SEE THE "Transmission" BITTORRENT DOWNLOADER FURTHER BELOW, TO INSTALL THOUSANDS OF VIDEOS
2018-05-14 21:17:11 +00:00
kalite_install: True
kalite_enabled: True
2018-07-12 05:39:35 +00:00
# Unused in 2018; but remains as placeholder for Fedora 18 legacy (XO laptops)
2018-05-14 21:17:11 +00:00
kalite_cron_enabled: True
2018-07-16 16:10:33 +00:00
kolibri_install: False
kolibri_enabled: False
2019-09-30 03:53:34 +00:00
kolibri_language: en # ar,bn-bd,en,es-es,fa,fr-fr,hi-in,mr,nyn,pt-br,sw-tz,ta,te,ur-pk,yo,zu
2018-07-16 16:10:33 +00:00
# kiwix_install: True is REQUIRED, if you install IIAB's Admin Console
2018-05-14 21:17:11 +00:00
kiwix_install: True
kiwix_enabled: True
# Warning: Moodle is a serious LMS, that takes a while to install
moodle_install: False
moodle_enabled: False
2018-10-16 11:49:51 +00:00
# If using Moodle intensively, set apache_high_php_limits in 3-BASE-SERVER
2018-05-14 21:17:11 +00:00
2019-09-27 16:36:48 +00:00
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
2019-05-06 14:23:16 +00:00
osm_vector_maps_install: True
osm_vector_maps_enabled: True
2019-04-16 17:01:41 +00:00
2018-05-14 21:17:11 +00:00
# Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879
2018-07-23 14:41:03 +00:00
# Sugarizer 1.0.1+ strategies to solve? github.com/iiab/iiab/pull/957
# 2019-07-08 WARNING: both vars are IGNORED on Debian 10+ due to MongoDB: github.com/iiab/iiab/issues/1437
2018-05-14 21:17:11 +00:00
sugarizer_install: False
sugarizer_enabled: False
2018-08-30 20:50:55 +00:00
2018-05-14 21:17:11 +00:00
# 8-MGMT-TOOLS
2018-08-31 07:47:00 +00:00
# BitTorrent downloader for large Content Packs etc
transmission_install: False
transmission_enabled: False
2019-03-05 19:21:30 +00:00
# A. UNCOMMENT LANGUAGE(S) TO DOWNLOAD KA Lite VIDEOS TO /library/transmission
2018-08-31 07:47:00 +00:00
# using http://pantry.learningequality.org/downloads/ka-lite/0.17/content/
transmission_kalite_languages:
2018-10-14 00:46:47 +00:00
#- english
2018-08-31 07:47:00 +00:00
#- french
#- hindi
#- portugal-portuguese
#- brazilian-portuguese
#- spanish
#- swahili
# B. Monitor BitTorrent downloads at http://box:9091 using Admin/changeme
# until the download is confirmed complete (can take hours if not days!)
# C. Carefully move all videos/thumbnails into /library/ka-lite/content
# (DO NOT OVERWRITE SUBFOLDERS assessment, locale, srt !)
# D. Log in to KA Lite at http://box:8008/updates/videos/ using Admin/changeme
# then click "Scan content folder for videos" (can take many minutes!)
# E. READ "KA Lite Administration: What tips & tricks exist?" AT http://FAQ.IIAB.IO
2018-05-14 21:17:11 +00:00
awstats_install: True
awstats_enabled: True
# 2019-07-08 WARNING: both vars are IGNORED on Debian 10+ due to: github.com/iiab/iiab/issues/1849
2018-05-14 21:17:11 +00:00
monit_install: False
monit_enabled: False
munin_install: True
munin_enabled: True
# Handy for maintaining tables, but DANGEROUS if not locked down
phpmyadmin_install: False
phpmyadmin_enabled: False
vnstat_install: True
vnstat_enabled: True
2018-08-30 20:50:55 +00:00
# 9-LOCAL-ADDONS
# Calibre E-Book Library
# WARNING: CALIBRE INSTALLS GRAPHICAL LIBRARIES SIMILAR TO X WINDOWS & OPENGL
# ON (HEADLESS, SERVER, LITE) OS'S THAT DON'T ALREADY HAVE THESE INSTALLED.
calibre_install: False
calibre_enabled: False
2018-10-13 18:00:27 +00:00
# Change calibre_port to 8010 if you're using XO laptops needing above idmgr ?
2018-08-30 20:50:55 +00:00
calibre_port: 8080
# Change calibre to XYZ to add your own mnemonic URL like: http://box/XYZ
calibre_web_path: calibre #NEEDS WORK: https://github.com/iiab/iiab/issues/529
2019-07-14 14:54:51 +00:00
# Avoid URL collisions w/ calibreweb_url1, calibreweb_url2, calibreweb_url3 below!
2018-08-30 20:50:55 +00:00
2018-09-12 18:05:59 +00:00
# WARNING: Calibre-Web (below) depends on Calibre's own /usr/bin/ebook-convert
2018-09-12 18:15:14 +00:00
# program, so we recommend you also install Calibre (above!)
2018-09-12 18:05:59 +00:00
2018-08-30 20:50:55 +00:00
# Calibre-Web alternative to Calibre, offers a clean/modern UX
calibreweb_install: False
calibreweb_enabled: False
2019-07-14 14:47:24 +00:00
calibreweb_port: 8083 # PORT VARIABLE HAS NO EFFECT (as of January 2019)
2018-08-30 20:50:55 +00:00
# http://box/books works. Add {box/libros, box/livres, box/livros, box/liv} etc?
2019-07-14 14:47:24 +00:00
calibreweb_url1: /books # For SHORT URL http://box/books (English)
calibreweb_url2: /libros # For SHORT URL http://box/libros (Spanish)
calibreweb_url3: /livres # For SHORT URL http://box/livres (French)
2018-08-30 20:50:55 +00:00
calibreweb_home: "{{ content_base }}/calibre-web" # /library/calibre-web
# Internet Archive Decentralized Web - create your own offline version box:4244
# (or http://box/archive) arising from digital library https://dweb.archive.org
internetarchive_install: False
internetarchive_enabled: False
2019-02-08 00:13:29 +00:00
# Minetest is an open source clone of the Minecraft building blocks game
minetest_install: False
minetest_enabled: False
2018-08-30 20:50:55 +00:00
2019-09-27 16:36:48 +00:00
# CONSIDER THESE NEW OPENSTREETMAP (OSM) APPROACHES INSTEAD:
2018-09-20 00:07:34 +00:00
#
2019-09-27 16:36:48 +00:00
# 2019: https://github.com/iiab/iiab/wiki/IIAB-Maps SEE ABOVE osm_vector_maps_*
# 2018: http://download.iiab.io/content/OSM/vector-tiles/
# 2017: http://oer2go.org/viewmod/en-worldmap-10
2018-09-20 14:22:42 +00:00
#
2019-01-03 20:37:23 +00:00
# Unmaintained
2018-09-20 00:07:34 +00:00
# osm_install: False
# osm_enabled: False
2018-05-14 21:17:11 +00:00
# Unmaintained
2018-08-30 21:21:39 +00:00
# docker_install: False
# docker_enabled: False