From ef7a375a1c3bd37976c451308bc7222ce0dc4e7f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 24 Sep 2020 21:28:40 -0400 Subject: [PATCH] Explain better: validate_vars.yml, default_vars.yml --- roles/0-init/tasks/validate_vars.yml | 3 +- vars/default_vars.yml | 51 ++++++++++++++-------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/roles/0-init/tasks/validate_vars.yml b/roles/0-init/tasks/validate_vars.yml index 32eb77ffd..bdcd15ea9 100644 --- a/roles/0-init/tasks/validate_vars.yml +++ b/roles/0-init/tasks/validate_vars.yml @@ -60,7 +60,6 @@ #- mysql # MANDATORY - squid - dansguardian - #- postgresql # Dependency installed on demand, by other apps/services - cups - samba - usb_lib @@ -84,6 +83,7 @@ - kalite - kolibri - kiwix + #- postgresql # Dependency installed on demand, by other apps/services - moodle #- mongodb # Dependency installed on demand, by other apps/services - sugarizer @@ -94,6 +94,7 @@ - munin - phpmyadmin - vnstat + #- yarn # Dependency installed on demand, by other apps/services - internetarchive - minetest - calibre diff --git a/vars/default_vars.yml b/vars/default_vars.yml index 6ae694e47..7cec5d377 100644 --- a/vars/default_vars.yml +++ b/vars/default_vars.yml @@ -273,9 +273,8 @@ apache_allow_sudo: True # See also Apache vars {default_language, language_priority} @ top of this file # -# 2020-05-21: apache_install is completely ignored as Apache is installed on -# demand as a dependency -- by CUPS, Elgg, Lokole, Moodle, Node-RED, PBX and/or -# phpMyAdmin +# 2020-09-24: BOTH VALUES BELOW ARE IGNORED as Apache is installed on demand as +# a dependency -- by CUPS, Elgg, Lokole, Moodle, Node-RED, PBX &/or phpMyAdmin apache_install: False apache_enabled: False # @@ -299,11 +298,6 @@ squid_enabled: False dansguardian_install: False dansguardian_enabled: False -# 2020-02-04: postgresql_install is completely ignored as PostgreSQL is -# installed on demand as a dependency -- by Moodle and/or Pathagar -postgresql_install: False -postgresql_enabled: False - # Common UNIX Printing System (CUPS) cups_install: False cups_enabled: False @@ -352,7 +346,7 @@ idmgr_enabled: False # 2020-01-23: UNUSED # UNMAINTAINED as of September 2020 azuracast_install: False -azuracast_enabled: False # This var is currently IGNORED. +azuracast_enabled: False # This var is currently IGNORED azuracast_http_port: 10080 azuracast_https_port: 10443 # @@ -394,8 +388,8 @@ mosquitto_install: False mosquitto_enabled: False mosquitto_port: 1883 -# 2020-02-04: nodejs_install is completely ignored as Node.js is installed on -# demand as a dependency -- by Node-RED, Sugarizer and/or Internet Archive +# 2020-09-24: BOTH VALUES BELOW ARE IGNORED as Node.js is installed on demand +# as a dependency -- by Node-RED, Sugarizer &/or Internet Archive nodejs_install: False nodejs_enabled: False # Node.js version used by roles/nodejs/tasks/main.yml for 3 roles: @@ -461,23 +455,15 @@ kiwix_incl_apk: False kiwix_apk_url: /software/kiwix kiwix_apk_src: https://download.kiwix.org/release/kiwix-android/kiwix.apk +# 2020-09-24: BOTH VALUES BELOW ARE IGNORED as PostgreSQL is installed on +# demand as a dependency -- by Moodle &/or Pathagar +postgresql_install: False +postgresql_enabled: False + moodle_install: False moodle_enabled: False # If using Moodle intensively, set nginx_high_php_limits further above. -# MongoDB (/library/dbdata/mongodb) greatly enhances the Sugarizer experience. -# This role was formerly installed by roles/sugarizer/meta/main.yml -# -# 2020-02-04: mongodb_install is completely ignored as MongoDB is installed on -# demand as a dependency -- by Sugarizer -mongodb_install: False -# FYI 'mongodb_enabled: False' works when Sugarizer is disabled. Required by -# mongodb/tasks/enable.yml to shut down the service and log status, but that is -# misleading as Sugarizer starts mongodb's systemd service on its own, due to -# 'Requires=mongodb.service' within /etc/systemd/system/sugarizer.service -mongodb_enabled: False -mongodb_port: 27018 - # Regional OSM vector maps use far less disk space than bitmap/raster versions. # Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps osm_vector_maps_install: True @@ -485,6 +471,19 @@ osm_vector_maps_enabled: False iiab_map_url : http://download.iiab.io/content/OSM/vector-tiles/maplist/hidden vector_map_path: "{{ content_base }}/www/osm-vector-maps" # /library/www/osm-vector-maps +# MongoDB (/library/dbdata/mongodb) greatly enhances the Sugarizer experience. +# This role was formerly installed by roles/sugarizer/meta/main.yml +# +# 2020-09-24: BOTH VALUES BELOW ARE IGNORED as MongoDB is installed on demand +# as a dependency -- by Sugarizer +mongodb_install: False +# 'mongodb_enabled: False' MAY work when Sugarizer is disabled. Required by +# mongodb/tasks/enable.yml to shut down the service and log status, but that is +# misleading as Sugarizer starts mongodb's systemd service on its own, due to +# 'Requires=mongodb.service' within /etc/systemd/system/sugarizer.service +mongodb_enabled: False +mongodb_port: 27018 + # roles/sugarizer/meta/main.yml auto-invokes 2 above prereqs: mongodb & nodejs # Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879 # Sugarizer 1.0.1+ strategies to solve? github.com/iiab/iiab/pull/957 @@ -560,8 +559,8 @@ vnstat_enabled: False # 9-LOCAL-ADDONS -# 2020-02-04: yarn_install is completely ignored as the Yarn package manager is -# installed on demand as a dependency -- by Internet Archive +# 2020-09-24: BOTH VALUES BELOW ARE IGNORED as Yarn is installed on demand as a +# dependency -- by Internet Archive yarn_install: False yarn_enabled: False