mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
If local_vars.yml missing, supply a medium number of services (#220)
* use published local_vars_big as test vars for both centos, and debian * if local_vars missing, make best guess
This commit is contained in:
parent
9489099ac7
commit
108fd52f7e
4 changed files with 163 additions and 73 deletions
18
runansible
18
runansible
|
@ -15,23 +15,11 @@ if [ ! -f ./vars/local_vars.yml ]; then
|
||||||
OLPC)
|
OLPC)
|
||||||
cp ./vars/olpc.localvars ./vars/local_vars.yml
|
cp ./vars/olpc.localvars ./vars/local_vars.yml
|
||||||
;;
|
;;
|
||||||
fedora)
|
centos | debian | ubuntu | raspbian)
|
||||||
cp ./vars/olpc.localvars ./vars/local_vars.yml
|
cp ./vars/medium.localvars ./vars/local_vars.yml
|
||||||
;;
|
|
||||||
centos)
|
|
||||||
cp ./vars/centos.localvars ./vars/local_vars.yml
|
|
||||||
;;
|
|
||||||
debian)
|
|
||||||
cp ./vars/debian.localvars ./vars/local_vars.yml
|
|
||||||
;;
|
|
||||||
ubuntu)
|
|
||||||
cp ./vars/debian.localvars ./vars/local_vars.yml
|
|
||||||
;;
|
|
||||||
raspbian)
|
|
||||||
cp ./vars/debian.localvars ./vars/local_vars.yml
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown OS -- no matching os.localvars -- exiting now..."
|
echo "IIAB supports raspbian, debian, ubuntu, centos, and OLPC - exiting now..."
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
# Put variables for your installation that override defaults here
|
|
||||||
# Better still, put this file in a branch of https://github.com/XSCE/iiab-local for your deployment
|
|
||||||
|
|
||||||
#iiab_admin_user: iiab-admin
|
|
||||||
|
|
||||||
# obtain a password hash with - python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
|
|
||||||
#iiab_admin_passw_hash:
|
|
||||||
varible: value
|
|
||||||
# 4-server-options
|
|
||||||
authserver_install: False
|
|
||||||
authserver_enabled: False
|
|
||||||
# 5-xoservices
|
|
||||||
xo_services_install: True
|
|
||||||
ejabberd_install: False
|
|
||||||
ejabberd_enabled: False
|
|
||||||
idmgr_install: True
|
|
||||||
debian_schooltool_install: False
|
|
||||||
# 6-generic-aps
|
|
||||||
# 7-edu-aps
|
|
||||||
pathagar_install: False
|
|
||||||
# 8-mgmat-tools
|
|
||||||
sugar_stats_install: False
|
|
||||||
ajenti_install: False
|
|
||||||
monit_install: True
|
|
||||||
xovis_install: False
|
|
||||||
teamviewer_install: False
|
|
||||||
activity_server_enabled: True
|
|
||||||
|
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
# Put variables for your installation that override defaults here
|
|
||||||
# Better still, put this file in a branch of https://github.com/XSCE/iiab-local for your deployment
|
|
||||||
|
|
||||||
#iiab_admin_user: iiab-admin
|
|
||||||
|
|
||||||
# obtain a password hash with - python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
|
|
||||||
#iiab_admin_passw_hash:
|
|
||||||
varible: value
|
|
||||||
# 4-server-options
|
|
||||||
authserver_install: False
|
|
||||||
authserver_enabled: False
|
|
||||||
# 5-xoservices
|
|
||||||
xo_services_install: True
|
|
||||||
ejabberd_install: False
|
|
||||||
ejabberd_enabled: False
|
|
||||||
idmgr_install: False
|
|
||||||
debian_schooltool_install: False
|
|
||||||
# 6-generic-aps
|
|
||||||
# 7-edu-aps
|
|
||||||
pathagar_install: False
|
|
||||||
# 8-mgmat-tools
|
|
||||||
sugar_stats_install: False
|
|
||||||
ajenti_install: False
|
|
||||||
monit_install: True
|
|
||||||
xovis_install: False
|
|
||||||
teamviewer_install: False
|
|
||||||
activity_server_enabled: True
|
|
||||||
|
|
||||||
|
|
160
vars/medium.localvars
Normal file
160
vars/medium.localvars
Normal file
|
@ -0,0 +1,160 @@
|
||||||
|
# Put variables here to override /opt/iiab/iiab/vars/default_vars.yml
|
||||||
|
|
||||||
|
# PLEASE READ http://wiki.laptop.org/go/IIAB/local_vars.yml
|
||||||
|
# SEE EXAMPLE http://download.iiab.io/6.4/rpi/local_vars_big.yml
|
||||||
|
# SEE EXAMPLE http://download.iiab.io/6.4/rpi/local_vars_min.yml
|
||||||
|
|
||||||
|
# Original Idea: branch github.com/xsce/xsce-local for your deployment
|
||||||
|
|
||||||
|
iiab_admin_user: iiab-admin
|
||||||
|
|
||||||
|
# Obtain a password hash with: python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
|
||||||
|
# iiab_admin_passw_hash:
|
||||||
|
|
||||||
|
iiab_hostname: box
|
||||||
|
iiab_domain: lan
|
||||||
|
|
||||||
|
iiab_home_url: /home
|
||||||
|
host_ssid: "Internet in a Box"
|
||||||
|
host_wifi_mode: g
|
||||||
|
host_channel: 6
|
||||||
|
hostapd_secure: False
|
||||||
|
hostapd_password: changeme
|
||||||
|
|
||||||
|
dns_jail_enabled: False
|
||||||
|
|
||||||
|
# Enables "campus access" to kiwix (3000), kalite (8008) & calibre (8010 or
|
||||||
|
# 8080) on WAN side of server. See network/templates/gateway/iiab-gen-iptables
|
||||||
|
# within github.com/iiab/iiab/blob/master/roles/
|
||||||
|
services_externally_visible: True
|
||||||
|
|
||||||
|
# Make this True if client machines should have access to WAN/Internet:
|
||||||
|
iiab_gateway_enabled: False
|
||||||
|
|
||||||
|
# Make this True if you want http://box/common/services/power_off.php to work:
|
||||||
|
allow_apache_sudo: False
|
||||||
|
|
||||||
|
# 3-BASE
|
||||||
|
|
||||||
|
squid_install: False
|
||||||
|
squid_enabled: False
|
||||||
|
|
||||||
|
dansguardian_install: False
|
||||||
|
dansguardian_enabled: False
|
||||||
|
|
||||||
|
wondershaper_install: False
|
||||||
|
wondershaper_enabled: False
|
||||||
|
|
||||||
|
# 4-SERVER-OPTIONS
|
||||||
|
|
||||||
|
# SECURITY WARNING: See http://wiki.laptop.org/go/IIAB/Security
|
||||||
|
openvpn_install: True
|
||||||
|
openvpn_enabled: False
|
||||||
|
# The following seems necessary on CentOS:
|
||||||
|
# openvpn_cron_enabled: True
|
||||||
|
# If changing the above, remember to run "cd /opt/iiab/iiab; ./runtags openvpn"
|
||||||
|
|
||||||
|
# WARNING: Josh Dennis [April 2017] warned that CUPS printing can block Ansible
|
||||||
|
cups_install: True
|
||||||
|
cups_enabled: False
|
||||||
|
|
||||||
|
# At Your Own Risk: take a security audit seriously before deploying this
|
||||||
|
samba_install: False
|
||||||
|
samba_enabled: False
|
||||||
|
|
||||||
|
# Handy for maintaining tables, but DANGEROUS if not locked down
|
||||||
|
phpmyadmin_install: False
|
||||||
|
phpmyadmin_enabled: False
|
||||||
|
|
||||||
|
# 5-XO-SERVICES
|
||||||
|
|
||||||
|
# Legacy XO services have been removed but are recoverable. Please contact
|
||||||
|
# http://lists.laptop.org/pipermail/server-devel/ if you're able to help test.
|
||||||
|
|
||||||
|
# authserver_install: False
|
||||||
|
# authserver_enabled: False
|
||||||
|
|
||||||
|
# activity_server_install: False
|
||||||
|
# activity_server_enabled: False
|
||||||
|
|
||||||
|
# Change calibre_port from 8080 to 8010 below, if you enable idmgr
|
||||||
|
# idmgr_install: False
|
||||||
|
# idmgr_enabled: False
|
||||||
|
|
||||||
|
# ejabberd_install: False
|
||||||
|
# ejabberd_enabled: False
|
||||||
|
|
||||||
|
# xo_services_install: False
|
||||||
|
# xo_services_enabled: False
|
||||||
|
|
||||||
|
# sugar_stats_install: False
|
||||||
|
# sugar_stats_enabled: False
|
||||||
|
|
||||||
|
# xovis_install: False
|
||||||
|
# xovis_enabled: False
|
||||||
|
|
||||||
|
# 6-GENERIC-APPS
|
||||||
|
|
||||||
|
nextcloud_install: True
|
||||||
|
nextcloud_enabled: True
|
||||||
|
|
||||||
|
wordpress_install: True
|
||||||
|
wordpress_enabled: True
|
||||||
|
|
||||||
|
elgg_install: True
|
||||||
|
elgg_enabled: False
|
||||||
|
|
||||||
|
dokuwiki_install: False
|
||||||
|
dokuwiki_enabled: False
|
||||||
|
|
||||||
|
# 7-EDU-APPS
|
||||||
|
|
||||||
|
# OpenStreetMap: renamed from {iiab_install, iiab_enabled} in June 2017
|
||||||
|
osm_install: True
|
||||||
|
osm_enabled: True
|
||||||
|
|
||||||
|
kiwix_serve_install: True
|
||||||
|
kiwix_serve_enabled: True
|
||||||
|
|
||||||
|
kalite_install: True
|
||||||
|
kalite_enabled: True
|
||||||
|
kalite_cron_enabled: True
|
||||||
|
|
||||||
|
# Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879
|
||||||
|
sugarizer_install: True
|
||||||
|
sugarizer_enabled: True
|
||||||
|
|
||||||
|
calibre_install: True
|
||||||
|
calibre_enabled: True
|
||||||
|
# Change calibre_port to 8010 if you're using XO laptops needing above idmgr
|
||||||
|
calibre_port: 8080
|
||||||
|
|
||||||
|
# Similar to Calibre, but unmaintained
|
||||||
|
pathagar_install: False
|
||||||
|
pathagar_enabled: False
|
||||||
|
|
||||||
|
# Warning: Moodle is a serious LMS, that takes a while to install
|
||||||
|
moodle_install: False
|
||||||
|
moodle_enabled: False
|
||||||
|
|
||||||
|
# 8-MGMT-TOOLS
|
||||||
|
|
||||||
|
munin_install: True
|
||||||
|
munin_enabled: True
|
||||||
|
|
||||||
|
vnstat_install: True
|
||||||
|
vnstat_enabled: True
|
||||||
|
|
||||||
|
awstats_install: True
|
||||||
|
awstats_enabled: True
|
||||||
|
|
||||||
|
monit_install: False
|
||||||
|
monit_enabled: False
|
||||||
|
|
||||||
|
# Unmaintained
|
||||||
|
# schooltool_install: False
|
||||||
|
# schooltool_enabled: False
|
||||||
|
|
||||||
|
# Unmaintained
|
||||||
|
# debian_schooltool_install: False
|
||||||
|
# debian_schooltool_enabled: False
|
Loading…
Add table
Add a link
Reference in a new issue